zdd-5 task 16: mutant M6 for the fallback checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+3
−2
internal/rollout/testdata/rolloutsim/mutate.sh+2 −1internal/rollout/wakeplan.go+1 −1
diff --git a/internal/rollout/testdata/rolloutsim/mutate.sh b/internal/rollout/testdata/rolloutsim/mutate.sh| index b1bb4a36f..647639655 100755 |
| --- a/internal/rollout/testdata/rolloutsim/mutate.sh |
| +++ b/internal/rollout/testdata/rolloutsim/mutate.sh |
| @@ -70,7 +70,8 @@ MUTANTS='M1|queue.go|I2|s/if q\.running >= q\.concurrency \{/if false \&\& q.run |
| M2|queue.go|I3|s/class := classRecover/class := classAdopt/ |
| M3|queue.go|I1|s/added, err = book\.Record\(rec\)/added, err = true, nil/ |
| M4|queue.go|I4|s/h\.buildRev = q\.nextRev\(\)/_ = q.nextRev()/ |
| -M5|wakeplan.go|I1|s/if hasGood \&\& in\.Book\.Blocks\(/if false \&\& in.Book.Blocks(/' |
| +M5|wakeplan.go|I1|s/if hasGood \&\& in\.Book\.Blocks\(/if false \&\& in.Book.Blocks(/ |
| +M6|wakeplan.go|I1|s/plan\.Fallback = \&good/plan.Fallback = nil/' |
| # run LOG: one go test call against the scratch tree, verbose so that the |
| # test prints its --- PASS or --- FAIL line. |
diff --git a/internal/rollout/wakeplan.go b/internal/rollout/wakeplan.go| index 74b7417ff..aa44d1421 100644 |
| --- a/internal/rollout/wakeplan.go |
| +++ b/internal/rollout/wakeplan.go |
| @@ -78,7 +78,7 @@ func decideWake(in wakeInputs) (activator.WakePlan, error) { |
| plan := activator.WakePlan{Boot: release.StagedIdentity{Version: installed, StagedPath: path, Digest: digest, Demand: demand}, |
| Mode: mode, FirstWake: true} |
| if hasGood && mode == activator.ModeOverlap { |
| - plan.Fallback = &good |
| + plan.Fallback = &good // rolloutsim:M6 |
| } |
| return plan, nil |
| } |