llm-interactive-proxy icon indicating copy to clipboard operation
llm-interactive-proxy copied to clipboard

Scheduled CI: pre-oss-core-slimming-race.yml failing

Open matdev83 opened this issue 6 days ago • 1 comments

What failed

Workflow: .github/workflows/pre-oss-core-slimming-race.yml (Pre-OSS core slimming race, daily 05:23 UTC). Public main head: 37ef50c61a2b781aaaf247e58ac3e3b435fc239b.

  • Failing run: 46023496683 (schedule, 2026-11-27) — job exact-race failed in step Run targeted Linux races.
  • Last green run: 45849225227 (2026-11-26); the exact same job and package list passed there, with internal/infra/runtimebundle green in 70.1s.
  • Every run before that back to 2026-11-08 is green, all on the same public head, so this is not a product regression introduced between runs.

Root cause: flaky test (races with generation retirement), not a broken gate

The only failing package is github.com/aiproxer/aiproxer/internal/infra/runtimebundle (55s); every other package in the lane passed in the same run.

--- FAIL: TestCompositionIsolation_ForeignAcceptedProofTerminal (0.07s)
    build_large_body_assessor_test.go:218: Should be true
    Messages: published generation must expose GenerationRuntime
FAIL	github.com/aiproxer/aiproxer/internal/infra/runtimebundle	55.260s

In the public test (internal/infra/runtimebundle/build_large_body_assessor_test.go, test TestCompositionIsolation_ForeignAcceptedProofTerminal) the order is:

  1. publish generation A,
  2. publish replacement generation B,
  3. then read A's request plane through the raw *runtimehost.Generation pointer held from step 1.

Publishing B legitimately retires A: internal/infra/runtimehost/manager.go marks the prior generation retiring and starts go p.manager.scheduleRetire(p.prior) (line ~301), and internal/infra/runtimehost/generation_close.go clears the payload (g.requestPlane = nil, line 40) when the closed generation finishes retiring. With no lease or pin held on A, the test's read of A's plane races that retirement goroutine, so the type assertion in the helper at line 218 occasionally sees nil and reports "published generation must expose GenerationRuntime".

This was reproduced locally in a full checkout of public main:

  • with a non-race stress loop (-count=300 -parallel 8) the assertion failed once in 300 iterations (matching the intermittent, race-lane-only character);
  • with a scratch test that pins nothing and waits for A's retirement, the assertion fails deterministically and A's lifecycle is 9 (closed) with Refs=0 and the plane cleared;
  • the same scratch ordering with an admitted Manager.Acquire() lease on A passes deterministically, and A stays retiring with Refs=1 and a live plane.

So the shared mechanism is: an unleased, replaced generation has no guarantee that its request plane is still published.

Status: fixed upstream, awaiting the next export sync

The upstream tree already holds the correction: the test acquires an admitted lease on A before publishing B and reads A's plane through leaseA.Generation(), with a comment naming exactly this retirement race. Public main still carries the pre-fix version (verified: the public file is byte-identical to the upstream pre-fix revision).

Local verification of the fix content, applied to an export of public main:

  • pre-fix test, -count=300 -parallel 8: 1 failure (as above);
  • fixed test, same command, 12 batches × 100 iterations = 1200 runs: 0 failures;
  • the workflow's whole package list, non-race, -p 2 -parallel 2: green in both the full checkout of public main and the export tree.

The race-instrumented lane itself cannot be re-run outside GitHub Actions by policy, so confirmation comes from the next green scheduled run after the sync.

Action

No change is needed in this repository beyond the sync: the next export of the fixed upstream tree should turn this lane green, and the scheduler will then close this issue. No product code, workflow, or timeout change is proposed.

matdev83 avatar Nov 28 '26 10:11 matdev83

The latest scheduled run of pre-oss-core-slimming-race.yml succeeded: https://github.com/aiproxer/aiproxer/actions/runs/46154081704

matdev83 avatar Nov 29 '26 10:11 matdev83