Repository navigation
fix(ci): keep cross-target Cargo tools out of cache - #254
KooshaPari wants to merge 3 commits into
Conversation
tx-agent: codex tx-validated: test
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. Summary
Merge Risk:
|
| key: windows-cross-check-notarget-nobin | ||
| cache-all-crates: "true" | ||
| cache-targets: "false" | ||
| cache-bin: "false" |
There was a problem hiding this comment.
WARNING: Verify cache-bin is a recognized input for the pinned Swatinem/rust-cache@v2. GitHub Actions silently ignores unknown with keys (at most a warning), so an incorrect name would leave Cargo-installed binaries cached and defeat the stated goal of this PR. Confirm the exact input name against the action's action.yml for the version in use; if the toggle differs (e.g. it is not supported), gate the binary cache via cache-directories or the action's documented option instead.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (1 files)
Fix these issues in Kilo Cloud Reviewed by free · Input: 55K · Output: 2K · Cached: 209.3K |
tx-agent: codex tx-validated: manual
tx-agent: codex tx-validated: manual
|
…254) The Windows cross-target job restored a cache that included target/*/bin, so cargo-xwin tool binaries came back stale from a cache entry written by a different job. cache-bin: "false" plus the -nobin key isolates that restore. tx-agent: jcode tx-validated: none tx-scope: .github/workflows/ci.yml tx-intent: merge PR #254 after the desk runner repair tx-lane: wJ:p7



User description
Problem
The Windows cross-target job restores Cargo binaries and install metadata from rust-cache before installing cargo-xwin. In two successive jobs on desk-kcode-2, a binary-containing cache was restored and cargo-xwin 0.23.1 was then replaced by a rebuilt 0.24.0 at the same Git revision, taking approximately 78 and 64 seconds in the install step. The logs do not establish whether those archives supplied the older executable; other writers may have done so. Related to #167.
This change excludes Cargo binaries and install metadata from this job's cache and changes the cache key so its restore prefix cannot match the old binary-containing archive. The existing cargo-xwin install command remains unchanged and continues to check its upstream Git source.
Validation
git diff --checkpassed. Swatinem rust-cache v2 source was reviewed for cache path and key construction.The first run will miss the previous registry cache. The effect on install time, disk I/O, and job success needs a naturally scheduled CI run; no performance improvement is claimed yet.
CodeAnt-AI Description
Keep cached Cargo binaries out of Windows cross-target CI
What Changed
Impact
✅ Windows cross-checks skip cached Cargo binaries✅ Old binary-containing caches are bypassed✅ Cargo tools are installed fresh in this job💡 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.
Part of #167