Skip to content

compile our crates on every run - #155

Merged
peterj merged 1 commit into
mainfrom
peterj/fixcacheci
Oct 8, 2026
Merged

peterj merged 1 commit into
mainfrom
peterj/fixcacheci

Conversation

@peterj

@peterj peterj commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

CI on feat/inventory-watch failed because agentdesktop-agent was compiled against cached builds of agentdesktop-core and agentdesktop-proto from before #146 (run).

The Linux job cached the repo's own crates and set each source file's timestamp to its commit time, so Cargo would reuse those builds. That breaks when a cache is built from older source after a newer commit's timestamp. Six merges to main within two minutes shared one cache key. The run for #149 saved the cache after #146 was committed, so its core and proto builds looked newer than #146's sources and Cargo reused them. The same gap can let a PR pass while testing old code.

  • Set cache-workspace-crates: false. Dependencies are still cached.
  • Remove the git-restore-mtime step and fetch-depth: 0, which only that step needed.

The repo's crates now compile on every run. The Windows job is unchanged: it doesn't restore timestamps, so its crates already rebuild every run. Open PRs need a new push to pick this up, because a re-run uses the old workflow.

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
@peterj
peterj requested a review from ilackarms October 8, 2026 00:14
@peterj
peterj merged commit a1cfd71 into main Oct 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants