Skip to content

ci: main red at 215887542f2e: packages/ui-server/tests/declaration-surface.test.ts #4186

Closed

Description

@github-actions

Main is red at 215887542f2ebd1821402bcb0d78b2978c2b9127 (first failing main run: https://github.com/schlessera/brain-kit/actions/runs/44096292239).

Failing tests and categories:

Hosted proof whose merge ref contains this commit is refused or cancelled, and integrate.ts refuses ordinary confirmation and merges, until a main run that includes this failing set is green.
Declare a fix or targeted revert PR with bun scripts/integrate.ts declare-fix <pr>; the first confirmed fix wins. Only a green main run that includes this failing set clears the record, so a failure that does not reproduce still needs a declared fix to land.

One orchestrator owns the fix: it claims it with bun scripts/red-main-incident.ts claim --worker <id> --orchestrator <id>, which writes the claim into the red-main record. After a quick assessment the claimant chooses a fix PR or a targeted revert PR from causal and current-tree evidence, and records that choice and its rationale here as decision evidence; a red check or the latest squash alone is not proof of cause. Every other orchestrator adds evidence here with bun scripts/red-main-incident.ts evidence ... instead of opening another issue.

Possibly related open issues: #2963, #4142.

Activity

  1. added
    type: fix
    area: ci
    on Nov 17, 2026
  2. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Red-main evidence: duplicate

    Same failure as #4142. `unit (4)` in run 44096292239 timed out `emitted declaration graph > no public .d.ts references an optional backend package` at 30,571 ms against the 30,000 ms deadline. There was no assertion failure, and the job's memory samples show the runner near its cgroup peak at the time. #4142 records the same case timing out on another head (30,789 ms) and a controlled one-CPU reproduction on unchanged source (35,066 ms). The first-bad squash 2158875 (#4183) changes only `ui-react` source, a ui-react runtime test and the runtime-build inventory. It does not touch the ui-server declaration graph that test emits.
    
  3. self-assigned this
    on Nov 17, 2026
  4. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Fix claimed by worker claim-f25aa04e (orchestrator orch-t3-b75c6ecb).

    • Main red at 215887542f2e (record run 44096292239).
    • Claim term ends 2026-11-17T15:15:23.000Z; the claimant renews it with bun scripts/red-main-incident.ts renew. After it ends, any orchestrator may take the fix over with claim.
    • Everyone else: add evidence here with bun scripts/red-main-incident.ts evidence; do not open another incident.
  5. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    Choice: **fix PR**, implementing #4142. Not a revert.
    
    **Cause evidence.**
    - The failing case is `emitted declaration graph > no public .d.ts references an optional backend package`. It timed out at 30,571 ms against the 30,000 ms deadline, with no assertion failure.
    - It builds one TypeScript program from `packages/ui-server/tsconfig.build.json` (1,570 source files, including ui-sdk and core source through the `bun` condition) and emits every declaration.
    - Profiled on current main (146dfb4, Bun 1.4.4, TypeScript 6.0.3, unloaded): config 9 ms, program 1.0–1.1 s, declaration emit 9.2–10.0 s for 414 `.d.ts`.
    - #4142 already reproduces the same timeout under a one-CPU control on source that predates #4183 (35,066 ms).
    
    **Dependency and conflict assessment.**
    - The first-bad squash 2158875 (#4183) changes only `ui-react` source, a ui-react runtime test and the runtime-build inventory. None of these is in the ui-server program the test emits, so a revert would not remove the cause.
    - The same failure would recur on any head under the same contention.
    
    **Repair.**
    - Emit with `noCheck: true`. That is still real declaration emit from the package's build config. It skips only the full semantic check of function bodies, which the repository typecheck already owns.
    - Measured: emit 9.5 s → 2.0 s.
    - With and without it, the same 414 files are emitted, and every file's set of import specifiers (the thing this guard scans) is identical. Ten files differ only in union-member order.
    - The deadline stays at 30 s. The source-AST case and the type-level descriptor assertions are unchanged.
    
  6. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Red-main evidence: reproduction

    The expedited fix proof for #4187 dispatched `red-main-probe.yml` (purpose `fix`, run 44102969679) at the bad base `146dfb4b398c`. `declaration-surface.test.ts` passed there, so `confirm --fixes-main-run 44096292239` refused: the failing test was not shown red on the bad base. This fits a load-dependent timeout. The hosted failure was 30.6 s against a 30 s deadline on a worker near its memory peak. A probe on an idle runner takes about 10 s (unloaded locally: 9.2–10.0 s for the emit). The same case does fail on unchanged source under a controlled one-CPU load (45.2 s here, 35.1 s in #4142). #4187 now goes through ordinary confirmation as the declared fix. The next main run, which includes this test, is the backstop that clears the record.
    
  7. github-actions commented on Nov 17, 2026

    @github-actions
    Author

    Squash 146dfb4b398c5c8d313a48dbd9e745327ba5c51f from #4157 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/44099887689).

  8. github-actions commented on Nov 17, 2026

    @github-actions
    Author

    Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/44107659969 at e982c1c0d998dced8dfaeb7f82ea02002f0edad6 included the failing set and passed. The red-main record is cleared.

  9. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Recovered. Main is green and the red-main record is cleared.

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

Metadata

Metadata

Assignees

Labels

area: citype: fix

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions