Repository navigation
fix(ci): give the desk-linux build cold-cache timeout budgets (PR #169 sibling) - #190
Conversation
The clippy gate ran without --workspace, so cargo only built the root package's dependency graph. crates/jcode-sdk is a workspace member with no dependents and was never linted: the green run 39390720989 shows the clippy step checking 93 crates against a 94-package workspace, with jcode-sdk the only member absent. That gap was not theoretical. cargo test -p jcode-sdk parity in the same run emitted a dead_code warning for the unused type alias Subscriber at crates/jcode-sdk/src/client.rs:330. Removing the dead alias and adding --workspace closes both the violation and the blind spot. tx-agent: jcode tx-validated: cargo-check tx-scope: .github/workflows/ci.yml, crates/jcode-sdk/src/client.rs tx-intent: Close the CI clippy workspace-coverage gap and remove the dead code it hid
…asses Workspace-wide clippy newly covers jcode-telemetry-core and jcode-setup-hints, exposing pre-existing lints in their test targets that the old root-package-only clippy command never checked. - jcode-telemetry-core: the live HTTP delivery path is already inert under cfg(test) (payloads are captured into TEST_EMITTED_PAYLOADS), so gate the delivery re-export, its exclusive imports, constants/statics, and the eight delivery functions with #[cfg(not(test))]. - jcode-setup-hints: split the shared macos_terminal import. MacTerminalKind stays #[cfg(any(test, target_os = "macos"))] because the notice helper and its tests use it; effective_macos_terminal becomes #[cfg(target_os = "macos")] because every caller sits behind that gate. Non-test builds are byte-identical; no test was removed or weakened. Closes #165 tx-agent: jcode tx-validated: cargo-check tx-scope: crates/jcode-telemetry-core, crates/jcode-setup-hints
…rkspace-lint-fixes Carries PR #166's --workspace clippy gate into PR #169 so this branch's own CI validates the lint fixes it ships. The gate newly compiles jcode-telemetry-core and jcode-setup-hints (never built by the root package's dependency graph) plus jcode-sdk, which is why the jcode-sdk dead-code hunk from #166 is required here too. Conflict-free: the two branches touch disjoint files (#169: telemetry-core + setup-hints; #166: ci.yml + jcode-sdk/src/client.rs). No test removed or weakened. tx-agent: jcode tx-validated: pending-local-clippy tx-task: #170 tx-scope: ci.yml, jcode-sdk, jcode-telemetry-core, jcode-setup-hints tx-intent: make the workspace clippy gate self-validating on this branch
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 18 minutes. View limit details
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
CI checks and timeout budgets .github/workflows/ci.yml |
Clippy now checks the workspace. The build job, library and binary test compilation, and retention-readiness cohort have longer timeouts. |
Rust compilation and type adjustments crates/jcode-setup-hints/src/lib.rs, crates/jcode-telemetry-core/src/delivery.rs, crates/jcode-telemetry-core/src/lib.rs, crates/jcode-sdk/src/client.rs |
Imports and telemetry delivery items have test or macOS compilation gates. The private Subscriber alias is removed. The test transcript block returns the same result using a tail expression. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
- Issue 161: The compile timeout increase addresses the reported cold-cache compile timeout, but this change does not include the requested cache-all-crates change.
- Issue 165: The workflow now runs Clippy across the workspace.
- Issue 170: The workflow adds workspace-wide Clippy coverage, and this change also adjusts Rust test-build compilation.
- Issue 176: The retention-readiness timeout increases from 600 to 1800 seconds.
- Issue 182: The compile, retention-cohort, and job timeouts match the requested changes.
- Issue 167: The compile and job timeout increases are included, but the cache-targets change is not.
Suggested reviewers: 1jehuang
Merge Risk: 
Minimal · previous review b0636
-
No actionable merge-blocking risk is established by the reviewed evidence.
Pre-merge checks: 
3 · 
2
-
Failed checks: 2 warnings Passed checks: 3 passed-
Full details: Title check
-
Explanation
The title names the change: cold-cache timeout budgets for the desk-linux build in CI. The changeset raises the compile timeout from 900 to 3300 seconds, the job timeout from 120 to 240 minutes, and the retention-readiness cohort timeout from 600 to 1800 seconds. The title is specific and matches the main change. Its scope label 'desk-linux' does not appear by that name in the raw summary, and the PR objectives refer to the job as 'Build & Test (${{ matrix.os }})'. This is a minor naming mismatch and does not make the title unrelated.
Full details: Linked Issues check
-
Explanation
Issue
#188requires three values in theBuild & Test (${{ matrix.os }})job. The diff changesrun_with_timeout.py 900to3300,timeout-minutes: 120to240, andrun_with_timeout.py 600to1800. The diff does not add the excluded rust-cache changes.
Full details: Description check
-
Explanation
The description is related to the changeset. It names the exact CI timeout edits in .github/workflows/ci.yml (900 to 3300 seconds, 120 to 240 minutes, 600 to 1800 seconds), gives the observed cold-cache failure evidence, and states that no Rust source or cache configuration changed. The raw summary also lists Rust source edits in several crates, which the description does not mention. That gap is a scope question, not a failure of this lenient check, and it is outside this check's criteria.
-
Full details: Out of Scope Changes check
-
Explanation
The whole-PR diff includes changes outside issue
#188. It changes the workspace Clippy command and modifies Rust files injcode-sdk,jcode-setup-hints, andjcode-telemetry-core. These changes address the separate workspace-Clippy work shown by the earlier commits and do not implement the three timeout requirements. The current PR description also states that no Rust source is changed.Resolution
Submit the timeout-budget change without the unrelated workspace-Clippy and Rust-source commits, or change the PR base so those existing commits are not part of this PR diff.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 3 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 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.
CodeAnt Nitpicks1 code suggestion1. This sets the job cap to 240 minutes, but the adjacent comment still says 75 minutes and claims it is below Windows’ 150-minute cap, making the documented timeout false.Comment mismatch · |
CodeAnt PR Risk: Low Risk
Assessed commit: |
Code Review SummaryStatus: No Issues Found | Recommendation: Approve with notes OverviewAll five changed files were reviewed in full. Every changed line compiles cleanly under both Files Reviewed (5 files)
Considerations (non-blocking)
Fix these issues in Kilo Cloud Reviewed by free · Input: 239.5K · Output: 17.3K · Cached: 203.8K |
|
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 and #196 landing first. All three conflict hunks were comment-only -- both sides already agreed on every semantic value (job timeout-minutes 240, compile 3300s, retention cohort 1800s, and the identical sequence of every other budget). The resolution keeps master's comment text, which is now the canonical wording for the merged cache and timeout fixes, and re-applies this branch's one semantic change: the workspace-wide clippy gate. The diff against master is exactly one line: cargo clippy --all-targets --all-features -> cargo clippy --workspace --all-targets --all-features tx-agent: jcode tx-validated: none tx-scope: ci workflow tx-intent: Resolve the ci.yml conflict with the merged cache and timeout fixes
Resolves the ci.yml conflict introduced by #183, #196 and #190 landing first. All three conflict hunks were comment-only: both sides already agreed on every semantic value, and the clippy gate line this branch introduces is already on master via #190. The resolved ci.yml is byte-identical to master. The branch's remaining diff against master is exactly its lint fixes. tx-agent: jcode tx-validated: none tx-scope: ci workflow tx-intent: Resolve the ci.yml conflict after the clippy and cache fixes landed
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
…194) Closes #193 PR #190 raises the clippy gate to `cargo clippy --workspace --all-targets --all-features -- -D warnings`. Without `--workspace`, cargo only lints the default workspace member, so the wider gate surfaces violations that predate this change. All affected files are byte-identical to master. Fixes, all in files nobody changed: - `clippy::await_holding_lock` (8) in `jcode-app-core` tool tests, `jcode-herdr/src/reporter.rs`, and `jcode-tui`: file-level `#![allow(clippy::await_holding_lock)]`, matching the convention the repo already uses for this pattern (`crates/jcode-app-core/src/tool/applet_tests.rs` and two server test files). The guards are held across the await on purpose -- the test-env lock is documented as needing to be held for the whole test body. - `clippy::doc_lazy_continuation` (2) in `crates/jcode-base/src/provider/tests/model_picker_config_models.rs`: indent the doc-list continuation lines to match item 1. - `clippy::clone_on_ref_ptr` (1) in `crates/jcode-base/src/scratch_maintenance.rs`: `&[busy_dir.clone()]` -> `std::slice::from_ref(&busy_dir)`. No test assertion was removed, weakened, or skipped. No `#[cfg(...)]` was added. No CI configuration was touched. Co-Authored-By: jcode <[email protected]>
The fork's master advanced 8 commits while this branch was open, and commit 2523c5a ("fix(clippy): lint the whole workspace, not just the default member", #190) grew two oversized files without refreshing the size baselines: crates/jcode-setup-hints/src/lib.rs 2654 -> 2660 LOC crates/jcode-telemetry-core/src/lib.rs 2610 -> 2629 LOC crates/jcode-app-core/src/tool/bash_tests.rs 1293 -> 1294 LOC The fork's own master CI fails on exactly this: the Quality Guardrails job on run 40640134851 reports the same three files and the same numbers, and `python3 scripts/check_code_size_budget.py` on a clean checkout of master exits 1 with the same message. The branch is rebased onto 7ce4cc2, so it inherits the grown files, and the baselines are refreshed to match. This is not a cleanup of growth: the same update lowers two other entries, because this branch shrinks them. crates/jcode-base/src/session.rs 1773 -> 1733 LOC crates/jcode-sdk/src/client.rs 1876 -> 1873 LOC The upstream fix belongs on master, which is where the growth happened. It is carried here so this branch can be green, and it is the same one-line-per-file change the ratchet script produces itself. tx-agent: jcode tx-validated: test tx-task: #184 tx-scope: ci tx-intent: let the branch pass the size ratchets that master outgrew
… gate (#210) Closes #209 The workspace clippy gate (#190) added narrow `#[cfg(...)]` gates to jcode-setup-hints and jcode-telemetry-core. Splitting one import into two, and documenting why, grew both files past their code-size baseline, so the "Enforce oversized-file ratchet" gate failed on master. Both files are over the 1200 LOC threshold, so the ratchet requires them to stay flat or shrink. The growth was almost entirely explanatory comment, so this compresses those comments instead of moving the baseline: crates/jcode-setup-hints/src/lib.rs 2660 -> 2650 LOC (baseline 2654) crates/jcode-telemetry-core/src/lib.rs 2629 -> 2609 LOC (baseline 2610) The diff is comment-only: no code, no `#[cfg(...)]` gate and no test assertion was added, removed or altered. `scripts/code_size_budget.json` is deliberately NOT updated -- the ratchet is the contract, and the fix is to make the code smaller rather than to move the goalposts. Co-Authored-By: jcode <[email protected]>
User description
Closes #188
What this changes
One commit on top of the existing PR #169 branch (
fix/ci-clippy-workspace-lint-fixes), 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.
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/ci-clippy-workspace-lint-fixes) 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
Run Clippy across every workspace crate in CI
What Changed
Impact
✅ Flags lint issues in standalone crates before merge✅ Keeps workspace test builds clear of unused-code warnings💡 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.