Skip to content

L5 speed: cut the per-case fixed cost of det-mutation runs, and close the one-JVM facade gap (Part of #7954) #8599

Open

Description

@squid-protocol

Part of #7954 (L5 epic #4628). Follow-ups from the 2026-11-18 profile and the all-killed tripwire (PR #8598).

Measured

One fast+one-jvm run, UPDCUST --sample 60 --seed 1 --jobs 2, quiet box, n=1: 74.6 s total. Start-up, scan and translate of 64 scenarios ~20 s; baseline proof of the unmutated port ~19 s; enumerate 690 mutants and compile-check the sample ~19 s; prove 57 mutants ~17 s. Proof time averaged 0.18 s per mutant. About three quarters of a run is fixed overhead per case, so the next speedups are per-case, not per-mutant. The slow --no-one-jvm fallback is what took hours.

Checklist

  • Re-measure on a loaded box and on a full enumeration (--sample 0) so the split is not n=1; record it in docs/language_status/mutation_testing.md.
  • Skip re-translating a case whose port fingerprint is unchanged (perf(l5): det_port keeps a translated port per translate fingerprint (Part of #8599) #8802; measured end to end, see the 2026-11-25 comment) (refresh translated all 64 UPDCUST scenarios for a case-only change).
  • Share the baseline proof and the scan across cases in one refresh / run batch.
  • Early exit at the first kill in the CICS in-process path (it runs every scenario in one session call, then judges); run the scenarios that killed the most mutants first, as the batch path does with fault_ranks. Measure the gain before keeping it.
  • Judge the java-facade runs in the in-process runner, or route survivors in facade-only methods (handleLink, lastLinkBytes) to --no-one-jvm automatically. Today they can survive falsely (ABNDPROC 661ba858a8, COR, line 355: fast survived, --no-one-jvm killed; 14 of 15 sampled agree).
  • Spot-check the 360 survivors auto-triaged in tools(mutation): speedups, triage CLI tools, and 360 auto-triaged survivors #8485 and survivor_attack.py (--no-facades, one-JVM) against the facade gap.
  • Check whether the detmut and ground-truth CI shards re-prove anything a fingerprint says has not changed. (test(l5): pin that no current det_mutation ledger is translated or proven again (Part of #8599) #8814)
    Do not skip the compare gate: validate each change fast vs --no-one-jvm with mutation.py compare --require-agree N before it becomes the default.

Activity

  1. added
    scope:infra
    on Nov 18, 2026
  2. added
    lane:nyx
    and removed on Nov 18, 2026
  3. squid-protocol commented on Nov 18, 2026

    @squid-protocol
    OwnerAuthor

    Taken by nyx (owner hand-off 2026-11-18: melek is not working on this). Working the per-case fixed-cost items first, each validated with mutation.py compare --require-agree.

  4. squid-protocol commented on Nov 18, 2026

    @squid-protocol
    OwnerAuthor

    Draft PR #8637 (nyx): two cuts, 140/140 verdicts identical to main in the same mode. (1) A mutant's javac check compiles only the program's files against the baseline runtime classes: javac phase 41 -> 14 s (UPDCUST, 60 mutants) and 53 -> 15 s (readcust, 80). (2) The in-process proof limit is 5 x a calibration run of the unmutated port, at least 30 s, at most the old limit; that run must survive or the worker falls back. readcust's timeout went from 300 s to 61 s, and the ledgers hold 201 timeouts. Totals on nyx: UPDCUST 141 -> 94 s, readcust 600 -> 312 s.

    Findings for the checklist: translation is already cached (equivalence_cache; a warm translate is ~5 s), so 'skip re-translating' is mostly done. Local runs without GITGALAXY_LICENSE_KEY=COMMUNITY_FREE_TIER sleep 5 s three times per case (CI sets it). Still open: the baseline proof (30-60 s a case), early exit in the CICS in-process path, and the java-facade false survivors.

  5. squid-protocol commented on Nov 19, 2026

    @squid-protocol
    OwnerAuthor

    Java-facade gap: draft PR #8639. The in-process CICS path now runs and judges the facade side (judge_facade, its own class loader) whenever the baseline has one. On cbsa-abndproc's 212 recorded survivors: 8 now die, including 661ba858a8. Those 8 plus 6 survivors, checked with --no-one-jvm: 14/14 agree, same killed_by. None of the 8 was a stated claim. Recorded false survivors in other ledgers stay until those cases are re-run, because the harness fingerprint is INFO: 112 CICS ledgers, 30,800 survivors, about 9-10 h at 2 jobs. Not started, as it needs a box decision.

  6. added a commit that references this issue on Nov 19, 2026
  7. squid-protocol commented on Nov 19, 2026

    @squid-protocol
    OwnerAuthor

    Draft PR #8643: Spring context startup was 93% of a warm mutant run (readcust: 1.05 s of 1.14 s; the program ~0.08 s). Every generated test now starts with lazy JPA repositories and no web layer: readcust run 1.14 -> 0.73 s, UPDCUST run 1.84 -> 1.35 s, verdicts unchanged. Five det_port proofs (batch+faults, CICS, LINK-bytes facades, CALL, CICS WEB) all proven, their Java runs 81.0 -> 62.8 s. The rest of the per-run cost needs a shared context across runs: an isolation-model change (the context binds each run's gitgalaxy.datasets.directory, and the service beans hold program state), not a setting. Also: #8637's red CI was its own test helper missing javac -encoding UTF-8; fixed, now green.

  8. 35 remaining items

  9. squid-protocol commented on Nov 23, 2026

    @squid-protocol
    OwnerAuthor

    #9109 merged: a partial slice of [c:24ff68d7] "Re-measure on a loaded box and on a full enumeration (--sample 0) so the split is not n=1; record it in docs/language_status/mutation_testing.md."; left: --sample 60 row now n=3 at two loads; full-enumeration rows still n=1. (promoter-bot)

  10. squid-protocol commented on Nov 23, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8599-20261123T1242Z (host melek) ended without a PR. PR #9109 approved; partial checklist, full-enumeration rows still n=1

  11. squid-protocol commented on Nov 23, 2026

    @squid-protocol
    OwnerAuthor

    #9109 merged: a partial slice of [c:24ff68d7] "Re-measure on a loaded box and on a full enumeration (--sample 0) so the split is not n=1; record it in docs/language_status/mutation_testing.md."; left: --sample 60 row now n=3 at two loads; full-enumeration rows still n=1. (promoter-bot)

  12. squid-protocol commented on Nov 24, 2026

    @squid-protocol
    OwnerAuthor

    #9220 merged: a partial slice of [c:24ff68d7] "Re-measure on a loaded box and on a full enumeration (--sample 0) so the split is not n=1; record it in docs/language_status/mutation_testing.md."; left: full-enumeration (--sample 0) rows now n=3 per case; a loaded-box full enumeration is still unmeasured. (promoter-bot)

  13. squid-protocol commented on Nov 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8599-20261124T1709Z (host melek) ended without a PR. PR #9220 already merged

  14. squid-protocol commented on Nov 25, 2026

    @squid-protocol
    OwnerAuthor

    Fingerprint skip measured end to end (the box #8802 left open). det_port.py run cbsa-updcust --translate-only (64 scenarios), main origin/main at 2026-11-25, empty GITGALAXY_EQUIV_CACHE, quiet box, n=1 each:

    Run Wall time
    cold (no cache entry) 38.8 s
    warm (same inputs) 9.0 s
    after a notes-only edit to case.json (same translate fingerprint) 9.0 s

    The ported tree of the cold run and of the case-only-edit run is byte-identical (diff -r on port/). The remaining ~9 s is start-up and the estate; a case-only change now costs the same as a no-change run. Ticked the box. Still open: the shared baseline proof across cases, early exit at the first kill, the facade gap, the survivors spot-check, the loaded-box full enumeration.

  15. squid-protocol commented on Nov 25, 2026

    @squid-protocol
    OwnerAuthor

    Facade-gap items closed. The code was already merged (#8639 in-process runner judges the facade side, #8820 survivor_attack.py proves CICS through the facades); what was left was the box run of the survivors that were stated before that fix.

    Re-ran every stated survivor of the CICS cases among the #8485 auto-triaged ones (the other 8 of its 12 cases are batch / call: no facade), through the in-process path with the facade side judged (each baseline proved its facade run, no fallback to separate runs), --jobs 2, det_mutation.py refresh's own re-run call, 2026-11-25:

    Case stated survivors judged now killed
    carddemo-coacct01 18 16 0
    carddemo-codate01 19 18 0
    cbsa-custctrl 301 295 0
    cbsa-crdtagy1 638 638 0

    967 judged, 0 verdicts changed: no stated equivalent / unreachable / harness-gap / case-gap verdict was a false survivor of the facade gap. (Not judged: 2 + 1 + 6 mutants per case that the re-run skips as out of scope or stillborn.)

    Still open on #8599, and not code: recorded survivors in the other CICS ledgers stay as recorded until those cases are re-run (the harness fingerprint is INFO, so nothing re-runs them by itself): 112 CICS ledgers, about 9-10 h at 2 jobs (see the 2026-11-18 comment), needs a box decision. Also the loaded-box full enumeration.

  16. squid-protocol commented on Nov 27, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-27T00:30Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claim:meleklane:nyxperformancepriority: mediumscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions