Skip to content

fix(test): keep CI validate from timing out on the usage lock and an unborn HEAD - #897

Merged
jeff-r2026 merged 1 commit into
mainfrom
hotfix/ci-usage-lock-and-viz-clone
Sep 29, 2026
Merged

jeff-r2026 merged 1 commit into
mainfrom
hotfix/ci-usage-lock-and-viz-clone

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bound the usage-file lock wait by wall time, so a busy CI event loop cannot stretch a 5s budget into a 20s test timeout.
  • Clone the viz fixture with -b main and a local git identity. Coding CI's git 2.39 leaves a bare repo's HEAD on master, and a plain clone then fails worktree add with invalid reference: HEAD.

Test plan

  • Local: viz-foreign-checkout.test.ts and usage-tracking.test.ts (127 tests)
  • Coding CI build 240765001 on the same tree (cbbde7d on TGit, tree e1d1886): validate 340 files / 5350 tests passed, build passed, e2e passed. Publish did not run (not a tag). npm and tnpm latest stayed 0.25.0.

Made with Cursor

…unborn HEAD

A busy event loop stretched the usage rewrite wait past its 5s budget because the wait counted sleeps. Bound it by wall time. The viz fixture also cloned a bare repo whose HEAD stayed on master under git 2.39, so worktree add failed with "invalid reference: HEAD".

Co-authored-by: Cursor <[email protected]>
@github-actions

Copy link
Copy Markdown

Code Erosion Report

Informational — never blocks the merge. scb-check==0.2.0 SlopCodeBench metrics; method & caveats in docs/ci-code-erosion.md.

Metric Value Human band Agent band Reading
Verbosity* 0.080 0.15 0.33 human
Erosion 0.665 0.31 0.68 agent
Cognitive erosion 0.858 – – –

Scanned 271 files / 50597 SLOC · high-CC functions 318/3772

* On TypeScript, verbosity is partial and the bands are Python-calibrated.

Rule hits (TS verbosity layer)

Standalone ast-grep, separate from the number above.

Rule Hits
unnecessary-else-after-return 28
empty-catch-block 5
redundant-ternary-same 1

34 distinct lines flagged across src/.

@jeff-r2026
jeff-r2026 merged commit 5fddf0c into main Sep 29, 2026
11 checks passed
@jeff-r2026
jeff-r2026 deleted the hotfix/ci-usage-lock-and-viz-clone branch September 29, 2026 05:44
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
…unborn HEAD (Tencent#897)

A busy event loop stretched the usage rewrite wait past its 5s budget because the wait counted sleeps. Bound it by wall time. The viz fixture also cloned a bare repo whose HEAD stayed on master under git 2.39, so worktree add failed with "invalid reference: HEAD".

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant