Repository navigation
fix(ci): give the desk-linux build cold-cache timeout budgets (PR #179 sibling) - #191
Conversation
`dictation_command_trims_trailing_newlines` shells out to `sh -lc "printf 'hello from test\n'"` via `setsid` and gives the whole spawn a 5-second wall-clock budget. `printf` itself finishes in milliseconds, so the only thing that 5s can measure is how badly the scheduler is backed up. Observed in run 39698887862 / job 119562950996 (branch codex/kcode-version-delivery-gates-20261021) on a desk that was running load average 11-14 with concurrent cargo builds: ``` thread 'tui::app::dictation::tests::dictation_command_trims_trailing_newlines' panicked at crates/jcode-tui/src/tui/app/dictation.rs:526:14: dictation command should succeed: "timed out after 5s" test result: FAILED. 2516 passed; 1 failed; 19 ignored; 0 measured; 1 filtered out; finished in 62.99s ``` It failed in 2 of the last 3 desk-linux runs. `dictation.rs` is unchanged on master since 2026-10-16 (6cf71ed), so this is a pre-existing flake, not a regression from any recent PR. 30s keeps the assertion meaningful -- a hung shell still fails -- while stopping the test from being a load-average canary. The production `run_dictation_command(command, timeout_secs)` signature and every production call site are untouched; only the `#[cfg(test)]` budget moves. tx-agent: jcode tx-validated: none tx-scope: crates/jcode-tui/src/tui/app/dictation.rs tx-intent: Stop a pre-existing TUI flake that measures runner load, not dictation behavior
Raise the Build & Test (desk-linux) compile budget 900s -> 3300s, the job timeout 120 -> 240 minutes, and the retention-readiness cohort budget 600s -> 1800s. The cold-cache full-workspace compile was observed at 23m07s in run 39672218586 / job 119472777140, and the retention cohort exceeded 600s (exit 124) in that same run because the workspace declares no default-members, so `cargo test --lib --bins --no-run` never pre-builds the jcode-app-core lib-test harness. tx-agent: jcode tx-validated: manual tx-scope: .github/workflows/ci.yml tx-intent: add cold-cache timeout budgets so the desk-linux Build & Test job can go green on its own
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 10 minutes. View limit details
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 |
CodeAnt Nitpicks1 code suggestion1. The per-command limits allow 200 minutes total, leaving under 40 for the unbounded release build and other steps; the job can cancel a later step before its own timeout.Logic error · |
CodeAnt PR Risk: Low Risk
Assessed commit: |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by free · Input: 22.9K · Output: 661 · Cached: 102.1K |
|
Relationship note (added by the CI stabilization lane): The cold-cache timeout budgets that this PR's branch carries are also present in PR #190 ( Full CI-stabilization dependency order:
No action needed on this PR beyond the normal review. |
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 #189
What this changes
One commit on top of the existing PR #179 branch (
fix/tui-dictation-test-timeout), adding ONLY the cold-cache timeout budgets to theBuild & Test (${{ matrix.os }})job in.github/workflows/ci.yml:run_with_timeout.py 900->run_with_timeout.py 3300timeout-minutes: 120->timeout-minutes: 240run_with_timeout.py 600->run_with_timeout.py 1800No Rust source, no other workflow file, and no cache configuration is touched. The dictation test change itself is not repeated here; this branch is based on PR #179's branch and adds only these budgets.
Why
On a cold cargo cache the compile step cannot finish inside 900s: the cold-cache full-workspace compile was observed at 23m07s ("Finished
testprofile ... in 23m 07s") in run 39672218586 / job 119472777140. PR #177's run 39712124578 / job 119605648638 died at that step with exit 124 at exactly 900s while compilingkcode, never reaching the retention cohort.The retention-readiness cohort compiles the
jcode-app-corelib-test harness itself. The workspace declares nodefault-members(cargo metadata showsworkspace_default_members = 1, onlykcode), socargo test --lib --bins --no-runnever pre-builds that harness, and the cohort exceeded 600s (exit 124) in run 39672218586 / job 119472777140.Relationship to other PRs
fix/tui-dictation-test-timeout) and adds only these budgets. It does not rewrite, rebase, or otherwise alter that branch.fix/ci-cold-cache-build-green) carries the same budgets PLUS the additional rust-cache blob fix (cache key suffix-notargetandcache-targets: "false"). That rust-cache fix remains required and is deliberately NOT included here, so this branch's diff against its base is limited to the three timeout values.CodeAnt-AI Description
Prevent dictation test timeouts on busy CI runners
What Changed
Impact
✅ Fewer false dictation-test failures on loaded CI runners💡 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.