Repository navigation
fix(ci): raise 'Run TUI library tests (Linux only)' budget 600s -> 1800s - #198
Conversation
tx-agent: jcode tx-validated: manual tx-scope: .github/workflows/ci.yml (build job only) tx-intent: Make Build & Test (desk-linux) able to restore its cache and go green on PR branches The Build & Test (desk-linux) job's rust-cache blob was 2,029,470,155 bytes. Every restore attempt aborted at a ~600s cap (617s / 605s / 600s across jobs 119054392243, 119055460640, 119065565800) at 37.4% / 39.7% / 44.0% and fell through to "No cache found", so the job always ran cold, so the 900s compile cap killed it, so the save step was skipped. GitHub caches are ref-scoped and PR refs (refs/pull/N/merge) cannot read refs/heads/master, so the loop repeats. target/ is the dominant contributor: this is the only job that puts a release build, a --lib --bins test compile, and eight integration/e2e compiles into one target dir. Per Swatinem/rust-cache action.yml, cache-targets:false caches only the cargo registry, which is provably under the 687,972,881 bytes that job 119062133759 already restored successfully. cache-all-crates was evaluated and is the wrong lever: src/save.ts calls cleanRegistry(pkgs, crates !== "true"), so cache-all-crates:"true" skips the registry cleanup and keeps MORE. This job already uses the pruning default. Timeouts raised because the job is now intentionally cold: Build cold 2453s, compile cold ~2990s. Co-Authored-By: Jcode <[email protected]>
…pin it The previous rust-cache key (v0-rust-desk-linux-stablepin-build-...) had a 2,029,470,155-byte entry stuck on refs/heads/master. Even with cache-targets: "false" flipped on, the key was identical so actions/cache attempted to restore the 2GB blob and aborted at ~600s (37-44%). The post-step save was then SKIPPED because the key was immutable per (key, ref), so master remained pinned forever and every fresh PR paid the same doomed download. Suffix the key with -notarget. This propagates into both the primary key and the restore-key prefix, and matches no legacy entry -- the doomed restore is never attempted and the save reserves a fresh slot. tx-agent: jcode tx-validated: manual tx-scope: .github/workflows/ci.yml tx-intent: make the build job's rust-cache use a new key so cache-targets:false can actually take effect
The Build & Test (desk-linux) job cannot go green on a cold cache because the retention-readiness cohort budget is 600s while that step pays a full cold compile of the jcode-app-core lib-test harness. The harness stays cold at that point: the workspace declares no `default-members`, so `cargo test --lib --bins --no-run` builds only the default member `kcode` and never pre-builds the cohort crates' harnesses. Run 39672218586 / job 119472777140 hit exit 124 at 600s on exactly this. Raise that one budget to 1800s and record why. The cohort itself still runs in under a second once the harness is built; 1800s covers the one-time cold compile and nothing more. Based on #168 (fix/ci-build-cache-blob-size), which already carries the 3300s compile budget and the 240-minute job cap, so this branch is a strict superset of #177 (fix/ci-retention-cohort-timeout), which can be closed without merging. tx-agent: jcode tx-validated: manual tx-scope: .github/workflows/ci.yml
On a cold cargo build this step spends most of its budget compiling the jcode-tui lib-test binary; the suite itself costs ~30s once the target is built. CI job 121349210430 (2026-10-26) killed the step at exactly 600s with exit 124 while it was still compiling. 1800s covers that one-time cold compile plus the serial suite. tx-agent: jcode tx-validated: manual tx-task: #183 tx-scope: .github/workflows/ci.yml tx-intent: give the cold jcode-tui lib-test compile enough time to finish
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Rust cache settings .github/workflows/ci.yml |
The Rust cache key gains the -notarget suffix, and target-directory caching is disabled. |
Build and test timeouts .github/workflows/ci.yml |
The Build & Test job timeout increases from 120 to 240 minutes. The library and binary test-compilation timeout increases from 900 to 3300 seconds. The retention-readiness cohort and TUI library-test timeouts increase from 600 to 1800 seconds. Comments describe cold-compile timing. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related PRs
- KooshaPari/KCode#196: This PR applies the same Rust cache-key suffix and target-cache setting to other CI jobs.
- KooshaPari/KCode#190: This PR proposes the same Build & Test job and step timeout values.
Suggested reviewers: 1jehuang
Merge Risk: 
Minimal · up to 7fb90
-
The longer TUI test budget presents no identified merge-blocking risk; merge after normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title names the change: the timeout budget for the 'Run TUI library tests (Linux only)' step in ci.yml rises from 600s to 1800s. It matches the single value change in the diff and the linked issue
#197. The 'fix(ci):' prefix is a conventional-commit style, and the title is specific and short enough to scan in history. It is slightly long at 72 characters.
Full details: Description check
-
Explanation
The description matches the changeset. It explains that the 'Run TUI library tests (Linux only)' step timed out at 600s while compiling the jcode-tui lib-test binary. It states the new 1800s budget, lists the scope limits, and notes the dependency on PR
#183. The validation steps also refer to the ci.yml diff. The description is detailed and relevant.
Full details: Linked Issues check
-
Explanation
Issue
#197requires changing only theRun TUI library tests (Linux only)budget from 600 to 1800 seconds. The reviewed workflow changes that value to 1800. The test command and flags remain unchanged in the diff. The job-level timeout remains 240 minutes after the existing change, so no additional job-level change is required for#197.
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Full details: Out of Scope Changes check
-
Explanation
The whole-PR diff contains changes outside issue
#197. It changestimeout-minutesfrom 120 to 240, changes the Rust cache key and addscache-targets: "false", changesCompile library and binary testsfrom 900 to 3300 seconds, and changes the retention-readiness timeout from 600 to 1800 seconds. Issue#197explicitly excludes these changes. The current PR description does not match the reviewed diff.Resolution
Rebase or otherwise remove the unrelated timeout, cache, and retention-readiness changes from this PR. Keep only the
Run TUI library tests (Linux only)timeout change and its explanatory comment.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
✨ Simplify code
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by free · Input: 47.5K · Output: 758 · Cached: 192.3K |
|
Resolves the ci.yml conflict introduced by #183, #196, #190 and #198 landing first. All three conflict hunks were comment-only -- both sides already agreed on every semantic value, and the timeout and cache fixes this branch carried are now on master. The resolved ci.yml is byte-identical to master. The branch's remaining diff against master is exactly the dictation test budget change. tx-agent: jcode tx-validated: none tx-scope: ci workflow tx-intent: Resolve the ci.yml conflict after the timeout and cache fixes landed
User description
Closes #197
Summary
Raises the budget of exactly one CI step --
Run TUI library tests (Linux only)in theBuild & Test (${{ matrix.os }})job -- from600to1800seconds.On a cold cargo cache that step spends nearly its whole budget compiling the
jcode-tuilib-test binary; the suite itself costs ~30s once the target is built (which is what the step's own comment already says). CI job 121349210430 killed the step at exactly 600s with exit 124 on 2026-10-26 while it was still compiling, so the serial suite never got a chance to run.1800s covers the one-time cold compile plus the serial suite.
Scope
This PR changes only the one
run_with_timeout.pyvalue, plus a short comment explaining it:run_with_timeout.pyvalue changed:600->1800(the other nine600budgets in the file are untouched)timeout-minuteschanged (the job is already at 240 minutes from PR fix(ci): give the retention-readiness cohort a cold-compile budget so the desk-linux build can go green #183)-p jcode-tui --lib -- --test-threads=1 --skip ... --skip ...)Only
.github/workflows/ci.ymlis modified.Depends on PR #183
This branch is based on PR #183's branch,
fix/ci-cold-cache-build-green(base commitbe1eea4b48d816612ed494d24174a39189c21798). This PR adds one commit on top of it.PR #183 must land first, then this branch can be rebased/merged on top of it. This is the same fix pattern PR #183 already applied to the
Compile library and binary testsstep (900 -> 3300) and the jobtimeout-minutes(120 -> 240): cold compiles exceed the per-step budgets.Validation
git diff origin/fix/ci-cold-cache-build-green...HEAD --stat-> only.github/workflows/ci.ymlrun_with_timeout.pyvalue changed (600 -> 1800)timeout-minutesand no cache-config lines in the diffyaml.safe_load-> ok)git merge-tree --write-tree origin/master HEAD-> CLEANgit merge-tree --write-tree origin/fix/ci-cold-cache-build-green HEAD-> CLEANCodeAnt-AI Description
Prevent Build & Test failures on cold caches
What Changed
Impact
✅ Fewer Build & Test timeouts✅ PR builds avoid stalled 2 GB cache restores✅ TUI and retention-readiness tests run after cold compiles💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.