Skip to content

Stress_Config back-pressure test fails deterministically on the gate runner, and the path filter has been hiding it #774

Open

Description

@nockawa

Summary

Typhon.Workbench.Tests.FixtureConfigTests.Stress_Config_Completes_Without_Backpressure_Timeout fails 2 runs out of 2 on the self-hosted aws-gate runner at main = 12eaa446:

System.InvalidOperationException: B+Tree insert made no progress in 10000 pessimistic retries.
The descent keeps reaching a leaf it can neither validate nor modify, which no further
retrying resolves. This is a liveness defect in the tree, not contention (see #695).

Run 31446209914, original + re-run of the same commit.

It is not a flake

The re-run is the discriminator, and it is unambiguous:

Run engine shard Workbench
original initial-failed=2 → both recovered on retry, FLAKED … NON-blocking failed
re-run initial-failed=0 — completely clean failed, same test, same exception

The engine suite's retry net was not even exercised the second time. shard.py's own rationale is the right lens: "a REAL regression fails every attempt". This fails every attempt. Adding a retry around it would not help and must not be used to hide it.

Why it surfaced now — the part worth acting on

The Workbench suite is gated behind a path filter that matches tools/Typhon.Workbench/** only:

workbench:
  - 'tools/Typhon.Workbench/**'

So src/Typhon.Engine/** changes never run it. Confirmed on three consecutive merges:

Run Merge Workbench suite
31417824609 #765 (engine) did not run
31434839913 #769 (engine) did not run
31446209914 #772 ran — 617 tests

PR #772 happened to touch one Workbench SPA file, which flipped the filter on and surfaced a pre-existing failure. This is not a #772 regression — that PR changed no B+Tree file and no concurrency primitive; its only live-path change writes 2 bytes into previously-free page-header space [54,58), leaving chunk capacity and node packing untouched.

The real defect is that an engine stress test is gated behind a Workbench path filter, so the gate's heaviest page-cache/B+Tree stress case is invisible to engine-only changes. Its own doc comment says what it is:

"exercises the page-cache dirty-counter drain harder than the prior fixture did (project memory: DC inflation issue #133)"

The (see #695) citation is stale

#695 was "can livelock forever in SpinWriteLock" and is closed — fixed by bounding the spin at 10,000 retries and throwing. That fix is working as designed: the hang became a diagnosable throw.

What remains is the underlying liveness defect the throw now reports, which is the #739 / #679 / #297 family. #739 is the only one still open. This may well be the same root cause, but I have not proven it, so this is filed separately rather than folded in.

The message text should stop citing a closed issue.

Proposed handling

  • Move the test into Typhon.Engine.Tests so engine changes actually run it (it already has the Typhon.Workbench.Fixtures project reference)
  • [Category("Quarantine")] against this issue + a QUARANTINE.md row, so main is green while the cause is unfixed and the nightly still runs it
  • Extend the retry net to the Workbench suite — separate structural gap, would not have helped here
  • Drop the stale (see #695) from the exception text
  • Reconsider whether src/Typhon.Engine/** should trigger the Workbench suite, or whether every engine test living there should move

Reproduction

Self-hosted gate runner only; passes locally in Release. RUN_WORKBENCH=true is required for it to execute at all.

Activity

  1. added theissue type on Aug 11, 2026
  2. updated Estimate M, Product CI, Priority P1-High and Area Indexes on Aug 11, 2026
  3. added 2 commits that reference this issue on Aug 11, 2026
  4. moved this to Todo in Typhonon Aug 11, 2026
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

    No labels
    No labels

    Type

    Fields

    Priority

    P1-High

    Estimate

    M

    Area

    Indexes

    Start date

    None yet

    Target date

    None yet

    Bug status

    None yet

    Product

    CI

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions