Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing impact warning messages #888

Merged
merged 33 commits into from
Jun 14, 2024
Merged

Conversation

jgaleotti
Copy link
Collaborator

Adding logic to avoid "unexpected handling on Initialization Action after repair" when it is not necessary

…() to avoid warning messages of "unexpected handling on Initialization Action after repair".
@@ -783,6 +784,11 @@ class EvaluatedIndividual<T>(
}
mutatedGenes.addedInitializationGenes.addAll(diff.flatMap { it.seeTopGenes() })

if (addedInsertions!!.flatten().isEmpty()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@man-zhang what would be the case of having ! diff.isEmpty() but then this if is true? ie, the diff is not empty, but addedInsertions is?
would that be a bug in EM?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the difference might be due to db action repair.
here, we aim to keep consistency between genes and their impacts.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @arcuri82
I cannot comment on the code which has been merged.
Please check the line 777,

val diff = individual.seeInitializingActions() .filter { !old.contains(it) && ((it is SqlAction && !it.representExistingData) || it is MongoDbAction) }

I am not sure whether the MongoDbAction should be always considered as diff.
Could you please have a check?

@man-zhang
Copy link
Contributor

hi, @arcuri82 might need some discussion about impacts of MongoDb and DNS actions

@arcuri82
Copy link
Collaborator

hi. @jgaleotti @man-zhang shall we have a meeting to discuss this? @man-zhang you are busy today. I m busy tomorrow (Thursday). Shall we have a meeting the 3 of us on Friday afternoon (Oslo time)?

@jgaleotti
Copy link
Collaborator Author

sound good to me!

@man-zhang
Copy link
Contributor

sounds good to me as well. it works for me before 3pm Oslo time.

@arcuri82
Copy link
Collaborator

arcuri82 commented Feb 1, 2024

thx @man-zhang . @jgaleotti has created a meeting invitation

@arcuri82
Copy link
Collaborator

arcuri82 commented Feb 2, 2024

@man-zhang can you take over this branch? and make sure MongoDB works fine with impact collection?

@jgaleotti
Copy link
Collaborator Author

Any updates on this PR?

@arcuri82
Copy link
Collaborator

@jgaleotti hi. waiting for some more fixes in other branches before resuming work on this one.

# Conflicts:
#	core/src/main/kotlin/org/evomaster/core/problem/rest/service/AbstractRestFitness.kt
#	e2e-tests/spring-rest-openapi-v2/src/test/java/org/evomaster/e2etests/spring/examples/wiremock/service/ExternalServiceMockingEMTest.java
@man-zhang man-zhang requested a review from arcuri82 June 14, 2024 09:21
@arcuri82 arcuri82 merged commit bcd132d into master Jun 14, 2024
11 checks passed
@jgaleotti
Copy link
Collaborator Author

jgaleotti commented Jun 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants