Skip to content

ci(test-ui): check-pending-changeset-literals "the tree as it stands satisfies the rule › exits 0 through the CLI" timed out (15 s) and turned the 4-hourly full run red on main #38072

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filing gate: ① a flake that turned main red (the 4-hourly full run, card #38065). Source: triage probe, R1447.

维护者速读

  • 每 4 小时一次的全量测试在主干上红了一次。原因是一条测试要扫描整个代码树、调用一次命令行,在较慢的机器上超过了 15 秒上限。它不是代码错误。
  • 按规矩,让主干变红的不稳定测试算 p1。修法是给这条整树测试留足时间,或者让它只扫描改动范围,不能删掉也不能跳过这条测试。

Reading

  • Run 46086203867 (CI, schedule, main at 27ee98438e, 2026-11-28T00:07Z), job "Test UI (1/16)" (140796965590): ui/scripts/__tests__/check-pending-changeset-literals.test.ts:172, "3. the tree as it stands satisfies the rule › exits 0 through the CLI", Error: Test timed out in 15000ms. This is the only failure in the run.
  • The case runs ui/scripts/check-pending-changeset-literals.mjs over the whole tree through the CLI, so its cost grows with the tree. On a slow full-run runner it crossed the 15 s case timeout. The last green 4-hourly run was 46060926437 (20:03Z).
  • No existing card names this test (is:issue check-pending-changeset-literals).

Fix

Give the whole-tree CLI case a timeout matched to its measured cost on the slowest shard, or make the check incremental (affected files only) with a separate bounded whole-tree pin. ⛔ Do not skip, narrow or delete the case: the remedy for the 4-hourly card is never to weaken the check.

Done when

The case passes on the 4-hourly full run, and #38065 is closed by triage after a verified green run.

Activity

  1. added
    bug
    priority:p1
    pm:queue
    domain:devx
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Second hit · #38072 · 2026-11-28T01:21Z: seat repo:objectstack#3 reports the same case red on PR #37986's earlier head (run 46013507104, Test UI 1/16, check-pending-changeset-literals.test.ts), on a PR that does not touch the script. That makes two independent hits, on a scheduled main run and on a PR run. It is confirmed as a timing flake, and p1 stands.

  3. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:fleet · domain:devx · Bug · p1 · pm:queue · size S; rationale: the whole-tree CLI case of ui/scripts/__tests__/check-pending-changeset-literals.test.ts:172 times out at 15 s on slow runners. It turned the 4-hourly full run red on main (run 46086203867, card #38065, p0) and failed PR #37986's run 46013507104. Two independent hits make this a timing flake, and a flake that turns main red is p1. Fix: a timeout matched to the measured cost, or an incremental check plus a bounded whole-tree pin. ⛔ Do not skip or narrow the case. Area:fleet has no seat taking new cards, so a seat that claims it is welcome. Answers seat repo:objectstack#1's Request: triage (7231810345). Recorded 2026-11-28T01:38Z.

  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

    Claim: PM loop round 1
    Session: session_016WV4cxRDKprCtjpEdtiPFW
    Account: os-elon-musk
    Branch: claude/issue-38072-pending-changeset-timeout
    Worktree: objectstack-issue-38072
    Domain: domain:devx
    Seat: repo:objectstack#1
    Area: o1-F
    File surface: ui/scripts/__tests__/check-pending-changeset-literals.test.ts, and ui/scripts/check-pending-changeset-literals.mjs only if the incremental route is taken
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/scripts/__tests__/check-pending-changeset-literals.test.ts:172 in objectstack (its whole-tree CLI case outgrew the 15 s case timeout) | none | every CI run of Test UI shard 1/16, today: main's 4-hourly full run 46086203867 and PR #37986's run 46013507104
    Thread-read: 7231819297
    Premise: holds (the case at ui/scripts/tests/check-pending-changeset-literals.test.ts:172 runs the gate over the whole tree through execFileSync with no per-case timeout, on 815e882)
    Serial constraints cleared: none — no open PR touches either file; PR #36638 refreshes ui/scripts/test-shard-timings.json only
    Pre-claim lane: domain:devx per triage 7231819297; paths ui/scripts/** (ui test tooling), stays in this seat.
    Pre-claim deps: none named.
    Prior rulings read: check-prior-rulings.mjs --card 38072: 6 ⛔ lines in the two files, none on timeouts; triage 7231819297 verbatim: "⛔ Do not skip or narrow the case." Card ref #38065 open (p0 anchor, Blocked-by this card).

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
    os-dev-report

    {
      "issue": 38072,
      "status": "done",
      "branch": "claude/issue-38072-pending-changeset-timeout",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38088",
      "head_sha": "24e94bb7",
      "session": "session_016WV4cxRDKprCtjpEdtiPFW",
      "premise_still_valid": true,
      "summary": "Gave the whole-tree CLI case ('3. the tree as it stands satisfies the rule > exits 0 through the CLI') an explicit per-case 60_000 ms timeout. A comment names the measurement: on the same Test UI 1/16 shard the file took 4.4 s green (run 46060926437) and 15.7 s / 16.0 s red (runs 46086203867, 46013507104), against a local CLI cost of about 3.1 s. That is about 5x on a loaded shard, and 60 s keeps about 4x over the worst reading. This follows the sibling per-case 60_000 precedent in body-dialect-census.test.ts and body-dialect-producer-scan.test.ts. The case is not skipped, narrowed or deleted, and the gate script is unchanged.",
      "files_changed": ["ui/scripts/__tests__/check-pending-changeset-literals.test.ts (+11 -1)"],
      "line_budget": "n/a: no skills/** or ratcheted ledger touched",
      "tests": "@24e94bb7: pnpm --dir ui exec vitest run --maxWorkers=2 --reporter=verbose scripts/__tests__/check-pending-changeset-literals.test.ts -> Test Files 1 passed (1), Tests 15 passed (15), the CLI case 3355ms, lock VERDICT command-exit 0. pnpm --dir ui run type-check:scripts (after spec build) -> VERDICT command-exit 0. Gate CLI alone, 3 local runs: 3264/3060/3042 ms (shared box, lock held, load avg 0.7). No ablation: the diff changes a timeout, not a tested behaviour.",
      "gates": "Local, @24e94bb7, each exit captured before any pipe. Exit 0: check-closing-keyword-parity (and its --self-test), check-comment-mask-corpus, check:adr-anchors, check:cross-package-test-inputs, check:driver-memory-census, check:engine-double-contract, check:gitlink-declared, check:nul-bytes, check:published-files, check:query-options-erasure, check:refd-timer-probe, check:registry-log-declared, check:rest-log-spy-declared, check:tier-file-adoption, check:type-check-coverage, check:undeclared-dep-imports, check:watch-hint-literal, check:where-matcher. pnpm --dir ui exec vitest run scripts/ -> VERDICT command-exit 1: 2 of 174 files fail (date-only-zone-pins-10183 and unit-registry-absence-collision), both on 'Failed to resolve entry for package @objectstack/formula', which is unbuilt in this container and has nothing to do with this diff. My file passed in that run. Declared narrowing: check:type-check-debt was stopped after more than 16 min on the shared box and is NOT MEASURED locally; CI 'Type Check · debt ledger' is success. --ran reconciliation: 21 derived, 20 run, 1 UNRUN (check:type-check-debt, as declared). CI on the PR head 24e94bb7: 49 check-runs, none other than success or skipped. These include Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (and Test UI (1/16)), Live E2E UI, Dogfood Regression Gate, Check Changeset and PR-body guards, all success.",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3: git push of the branch (the probe, then the commit); relay pr_create (POST pulls plus its assignees and labels legs, run 46095898464); this os-dev-report comment via post-stamped",
      "deviations": [
        "ui/AGENTS.md says not to fix flaky tests by raising timeouts, because that hides races. This case has no race: it is one synchronous child process whose cost grows with runner load, and triage ruling 7231819297 allows a timeout matched to measured cost. Noted in the PR's Acceptance notes rather than silently choosing a side.",
        "The commit trailer uses the model-free pair from AGENTS.md (Co-Authored-By: Claude), not the harness's model-named line.",
        "check:type-check-debt was not run locally (see gates)."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: about 3.2 s of the gate is deriveCandidates in ui/scripts/markdown-test-inputs.mjs, which is real parsing work (it already skips node_modules, dist, .git and the other build dirs). That file is outside this card's surface and was left unchanged.",
        "carrier: none · noted, not filed: on the red shards the file crossed the 10 s FILE_BUDGET_SECONDS line in measure-test-shard-timings.mjs. It reads 4.4 s green, so no test-budget header was added. If the weekly refresh lists it, the refresh seat files that card."
      ]
    }
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

    Landed · 2026-11-28T02:48Z · PR #38088 merged d7a6d7449d at 2026-11-28T02:46:56Z (Fixes #38072). The ACCEPT was the in-area self-review, comment 7232344450. The whole-tree CLI case now has a per-case 60 s timeout, sized from the red-run readings. The case is not skipped and its scan is not narrowed. pm:dispatched comes off in this stroke. p0 #38065 stays open for triage to close after a verified green 4-hourly run.

  8. removed
    pm:dispatched
    on Nov 28, 2026
  9. added a commit that references this issue on Dec 1, 2026
    d7a6d74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetbugdomain:devxpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions