Repository navigation
fix(ci): keep Telegram shards alive after the first isolated file - #123576
Conversation
Five-file Telegram jobs finished the first file, then isolate re-imported the next graph in silence until the 300s watchdog killed the worker. Recycle the Vitest process after each file and keep five files per CI job.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 14, 2026, 5:19 AM ET / 09:19 UTC. ClawSweeper reviewWhat this changesThe PR keeps Telegram CI jobs at five files while running each file in a separate Vitest process to avoid the isolated-suite watchdog stall. Regression provenancePossible regression — probable (failure trace; reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 6 items remain Keep open. The CI repair is focused, but it bypasses the runner’s existing rule that forwarded Vitest options make a run unsplittable; this can change scoped-run semantics before the hosted proof completes. Priority: P2 Review scores
Verification
How this fits togetherChanged-extension CI groups plugin test files into GitHub Actions jobs, then the test-project runner turns each job’s include file into Vitest invocations. This PR separates job size from process lifetime for the Telegram suite. flowchart LR
A[Changed Telegram files] --> B[Changed-extension planner]
B --> C[Five-file CI include list]
C --> D[Test-project runner]
D --> E[One-file Vitest processes]
E --> F[CI job result]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +125, Other +63. Total +188 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Use the existing split-eligibility predicate for external include files as well as broad roots, retain the separate five-file job and one-file process limits, and then capture an exact-head CI trace covering all five files. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: invoke the Telegram config with an external multi-file include JSON and a forwarded suite-wide Vitest argument; the changed branch splits it despite the established no-forwarded-arguments rule. Is this the best way to solve the issue? No: one-file Telegram process lifetimes are the right owner-level mitigation, but external include files must use the same split-eligibility rule as every other invocation path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8865c2539b19. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…enclaw#123576) Five-file Telegram jobs finished the first file, then isolate re-imported the next graph in silence until the 300s watchdog killed the worker. Recycle the Vitest process after each file and keep five files per CI job.
Related: #123514, #123534, #123410
Unblocks: #123528
What Problem This Solves
Resolves a problem where Telegram changed-extension CI would pass the first file in a five-file shard, then stay silent until the 300-second watchdog killed the job. That currently blocks otherwise-ready Telegram PRs, including #123528.
Why This Change Was Made
Telegram keeps
isolate: truebecause its files have conflicting module mocks. A second isolated file in the same Vitest process re-imports the Telegram graph in silence. Hosted logs on #123528 showed file 1 finishing in 118ms-1.5s against the warm cache, then no output through 300s on file 2; the retry repeated the same stall.This change recycles the Vitest process after each Telegram file and keeps five files packed in one CI job. Same-config sequential processes share the restored transform cache so later files do not pay a cold import. No provider or Telegram runtime behavior changes.
User Impact
No product behavior change. Telegram extension CI jobs should finish their remaining files instead of dying after the first passing file.
Evidence
checks-node-changed-extensions-config-14/15on fix(telegram): retry abandoned messages instead of dropping them #123528 run 31783075633 exited 143 after a 300s silence following the first passing file; retry repeated the stall.node scripts/run-vitest.mjs test/scripts/test-projects.test.ts test/scripts/ci-changed-node-test-plan.test.ts test/scripts/test-extension.test.ts test/vitest-scoped-config.test.ts— 562 passed.origin/main(8865c2539b1, including improve(ci): shorten hosted PR path #123570) and rerun: 304/304 owner tests passed.pnpm tsgoscripts: passed.Production/script-support: +81/-16. Tests: +132/-9. The script growth is the process-lifetime vs CI-job split; collapsing them would mint 210 Telegram jobs.