Skip to content

[ci] Properly parse Rust nightly versions - #705

Merged
bal-e merged 3 commits into
mainfrom
ci-clippy-rust-version
Jul 28, 2026
Merged

[ci] Properly parse Rust nightly versions#705
bal-e merged 3 commits into
mainfrom
ci-clippy-rust-version

Conversation

@bal-e

@bal-e bal-e commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The job currently set nightly-x86_64-unknown-linux-gnu where it should have been nightly-2026-07-24. The former version specification changes meaning every day (night?).

@bal-e bal-e self-assigned this Jul 24, 2026
@bal-e
bal-e force-pushed the ci-clippy-rust-version branch from c3d75b8 to 12f3193 Compare July 24, 2026 13:54

@withjannisNLnetLabs withjannisNLnetLabs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some nit/questions, but I think the main thing is the rust version specified in toolchain.

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml
Comment on lines 394 to 396
- name: Restore from cache
id: cache-restore
uses: actions/cache/restore@v6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I just noticed that in the clippy version you don't restore from cache under certain conditions (workflow/schedule), but in this version there is no condition. I assume that is missing here? Because this way you would have a clean cache, without artifacts from older versions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The unconditional restore here was intentional. When building a new cache from scratch for Clippy, we don't want to use the old cache, because it was tied to a particular Rust nightly version. Under the schedule/workflow_dispatch events, we want to use the latest Rust nightly version, not the one from the cache, so that it doesn't get stale. In that situation, we could choose to restore the cache but still use the latest Rust nightly version; but then the cache would almost certainly be wasted. For this job, we don't need to explicitly update the Rust compiler version, and it probably changes very rarely, so restoring the cache is probably helpful.

Comment thread .github/workflows/ci.yml Outdated
@bal-e
bal-e force-pushed the ci-clippy-rust-version branch from 12f3193 to 8c48fd0 Compare July 27, 2026 16:00
Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml
@bal-e
bal-e force-pushed the ci-clippy-rust-version branch from 8c48fd0 to ee4097d Compare July 28, 2026 09:12
@bal-e
bal-e merged commit fa52d81 into main Jul 28, 2026
8 checks passed
@bal-e
bal-e deleted the ci-clippy-rust-version branch July 28, 2026 10:04
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