Repository navigation
Add safe Archive.updateUniqueCoveredIndividuals and DB-agnostic minimization pruning for DynamoDB actions - #1940
Open
aschenzle wants to merge 1 commit into
Conversation
jgaleotti
requested changes
Nov 27, 2026
aschenzle
force-pushed
the
feat/archive-update-and-dynamodb-minimizer
branch
from
November 28, 2026 17:45
76b7628 to
7836c35
Compare
aschenzle
force-pushed
the
feat/archive-update-and-dynamodb-minimizer
branch
from
December 2, 2026 06:56
7836c35 to
defdc09
Compare
jgaleotti
approved these changes
Dec 2, 2026
…ization pruning for DynamoDB actions
aschenzle
force-pushed
the
feat/archive-update-and-dynamodb-minimizer
branch
from
December 4, 2026 04:45
defdc09 to
2045a7b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Safe
Archive.updateUniqueCoveredIndividualsand DB-agnostic initialization pruning for DynamoDB actionsSummary
This PR implements two complementary pieces of EvoMaster's post-processing minimization pipeline:
Archive.updateUniqueCoveredIndividuals: Safely applies in-place post-processing updates across unique covered individuals in the archive while preserving shared object identity and preventing coverage regressions.Minimizer: ImplementsMinimizer.pruneNonNeededDatabaseActions()via a generic contract onIndividual/EnterpriseIndividual, starting withINITIALIZATION_DYNAMODB(DynamoDbAction), without couplingMinimizerto DynamoDB-specific types.Motivation & Impact
During search phase, individuals accumulate database setup actions (e.g.,
DynamoDbActioninsertions from random initialization, mutation, or combining individuals) that are not actually needed by the final minimized API calls. Previously,Minimizer.pruneNonNeededDatabaseActions()was an unimplemented//TODO, leaving dead database setup inside generated test suites.Example: Generated Test Before vs. After
Suppose EvoMaster is fuzzing
GET /orders/ord-42, which only reads"ord-42"from theOrdersDynamoDB table, while the evolved individual also carries leftover insertions from earlier mutations.Without this PR
With this PR
In addition, when a single
EvaluatedIndividualcovers multiple targets inArchive, updating targets carelessly can split one shared test into duplicate copies inSolutionor silently drop coverage if a minimized candidate regresses on one target.Archive.updateUniqueCoveredIndividualsprevents both failure modes.