Skip to content

fix(ci): give the desk-linux build cold-cache timeout budgets (PR #179 sibling) - #191

Merged
KooshaPari merged 3 commits into
masterfrom
fix/tui-dictation-test-timeout-budgets
Oct 27, 2026
Merged

KooshaPari merged 3 commits into
masterfrom
fix/tui-dictation-test-timeout-budgets

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

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 the Build & Test (${{ matrix.os }}) job in .github/workflows/ci.yml:

  • "Compile library and binary tests": run_with_timeout.py 900 -> run_with_timeout.py 3300
  • job timeout: timeout-minutes: 120 -> timeout-minutes: 240
  • "Run deterministic retention-readiness cohort": run_with_timeout.py 600 -> run_with_timeout.py 1800

No 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 test profile ... 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 compiling kcode, never reaching the retention cohort.

The retention-readiness cohort compiles the jcode-app-core lib-test harness itself. The workspace declares no default-members (cargo metadata shows workspace_default_members = 1, only kcode), so cargo test --lib --bins --no-run never pre-builds that harness, and the cohort exceeded 600s (exit 124) in run 39672218586 / job 119472777140.

Relationship to other PRs


CodeAnt-AI Description

Prevent dictation test timeouts on busy CI runners

What Changed

  • The dictation newline-trimming test now allows 30 seconds instead of 5 for the shell command to start and finish, while still failing if the shell hangs.

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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

`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
Copilot AI balanced review requested due to automatic review settings October 25, 2026 02:11
@codeant-ai

codeant-ai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

CodeAnt  CodeAnt Review Status

✅  Review completed

Status Commit Started (UTC) Finished (UTC)
✅  Incremental review completed 36c8276 Oct 27, 2026 · 06:01 06:01
✅  Reviewed your PR d27ef16 Oct 25, 2026 · 02:11 02:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@codeant-ai

codeant-ai Bot commented Oct 25, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a55c8d4a-18e0-4514-b447-c4f6add98ca6
Commits

Reviewing files that changed from the base of the PR and between 183ac87 and 36c8276.

Files selected for processing: 1
  • crates/jcode-tui/src/tui/app/dictation.rs
  • 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:S This PR changes 10-29 lines, ignoring generated files label Oct 25, 2026
@codeant-ai

codeant-ai Bot commented Oct 25, 2026

Copy link
Copy Markdown

CodeAnt Nitpicks

1 code suggestion

1. 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 · .github/workflows/ci.yml:152

@codeant-ai

codeant-ai Bot commented Oct 25, 2026

Copy link
Copy Markdown

CodeAnt PR Risk: Low Risk

  • The PR appears safe to merge; no actionable issues were identified in the review.

Assessed commit: d27ef166e111

@kilo-code-bot

kilo-code-bot Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • .github/workflows/ci.yml
  • crates/jcode-tui/src/tui/app/dictation.rs

Reviewed by free · Input: 22.9K · Output: 661 · Cached: 102.1K

@KooshaPari

Copy link
Copy Markdown
Owner Author

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 (fix/ci-clippy-workspace-lint-fixes-budgets), which this branch is based on.

Full CI-stabilization dependency order:

  1. PR fix(ci): give the retention-readiness cohort a cold-compile budget so the desk-linux build can go green #183 (fix/ci-cold-cache-build-green) — rust-cache blob fix (-stablepin-notarget + cache-targets: "false"), compile budget 900→3300s, job timeout 120→240min, retention cohort 600→1800s. This is the foundation; nothing else can go green on a cold cache without it.
  2. PR fix(ci): give the desk-linux build cold-cache timeout budgets (PR #169 sibling) #190 (fix/ci-clippy-workspace-lint-fixes-budgets) — workspace clippy gate --workspace --all-targets --all-features -D warnings + the cold-cache budgets on top of fix(clippy): clear workspace-gate lint errors in jcode-telemetry-core and jcode-setup-hints #169's branch.
  3. PR fix(clippy): clear 6 pre-existing lints surfaced by the workspace clippy gate #194 (fix/clippy-workspace-preexisting-lints) — fixes the 6 pre-existing lints that fix(ci): give the desk-linux build cold-cache timeout budgets (PR #169 sibling) #190's gate surfaces. Based on fix(ci): give the desk-linux build cold-cache timeout budgets (PR #169 sibling) #190's branch, so fix(ci): give the desk-linux build cold-cache timeout budgets (PR #169 sibling) #190 must land first.
  4. PR fix(ci): give the desk-linux build cold-cache timeout budgets (PR #179 sibling) #191 (fix/tui-dictation-test-timeout-budgets) — dictation test wall-clock budget 5s→30s + the cold-cache budgets.

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
@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:S This PR changes 10-29 lines, ignoring generated files labels Oct 27, 2026
@KooshaPari
KooshaPari merged commit 656610d into master Oct 27, 2026
9 of 16 checks passed
@KooshaPari
KooshaPari deleted the fix/tui-dictation-test-timeout-budgets branch November 26, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): Build & Test (desk-linux) 600s retention cohort budget is too tight on a cold cache (PR #179 branch)

2 participants