Repository navigation
ci: run language tools from the flake dev shell - #207
Conversation
CI runs the repository tools from the flake dev shell, so the shell must provide the bats runner and jq used by the Codex conformance job. Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Replace setup-rust-toolchain, cargo-deny-action, cargo-machete, setup-node and bats-action with the dev shell, set up by the shared nix-setup action. The Rust toolchain now comes from the locked nixpkgs, as it does locally. all-green keeps the default shell because it installs no Nix. RELEASE_SHA and vRELEASE are placeholders until the nix-setup action is released. Refs furedea/reusable-workflows#23, furedea/reusable-workflows#22 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Replace the RELEASE_SHA placeholder with the v1.3.0 commit. Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary (read-only): no blocking findings. Checked:
Not verified: the |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
cargo-dist is overridden to 0.30.2 and built from source, which took about 6m43s in every CI job on a cold Nix cache. CI does not run dist (release.yml installs its own), so the ci shell leaves it out. The default shell keeps it. Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The ci shell leaves out cargo-dist, whose source build took about 6m43s in every job on a cold Nix cache. Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Review summaryI reviewed the changes to
Two version changes are intentional and noted in the PR body: Rust drops from 1.99.1 to 1.95.0, and Bats from 1.13.0 to 1.12.0. The PR body says the cargo checks pass on 1.95.0. No conformance test sets a minimum Bats version. Findings: none (P0/P1: 0). |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
概要
CI の言語ツールを,flake の devShell から動かす形にする.手元と CI で同じ版になり,
flake.lockが中身を固定する.setup-rust-toolchain1.99.1cargo-deny,cargo-machetecargo-deny-action,cargo-macheteactionsetup-rust-toolchain,setup-node,bats-action,apt-get install jqbats1.12.0,jqを追加)furedea/reusable-workflowsのnix-setupv1.3.0nix-setupを呼び,defaults.run.shell: nix develop .#ci --command bash -eo pipefail {0}で動く.all-greenのneedsは変えていない(必須チェックは影響を受けない).all-greenは Nix を入れないので,job 単位でdefaults.run.shell: bashを指定した.x86_64-linuxに対応済み.flake.nixの変更は,batsとjqの追加と,cargoDistを含まないcishell の追加.対象外
release.ymlの build job は,複数 target を cross-compile する.devShell の nixpkgsrustcにその target がないため,変更していない.Rust の版
CI は 1.99.1 に固定していたが,locked nixpkgs の
rustcは 1.95.0 になる.手元の devShell は元から 1.95.0 で,edition 2024 には十分.CI 時間
変更前は main の run 42612630804.変更後は,初回の PR の run 42623098157(
defaultshell)と,cishell にした run 42627462234(head782b016).どちらも Nix の cache なしの PR の run.defaultshellcishelllintformattestrust-auditexecpolicy(別 workflow)nix-checkが支配)defaultshell が遅かった原因は,devShell のcargoDist(0.30.2 に上書き)を各 job が source から約 6 分 43 秒かけてビルドしていたこと.cargoDistを含まないcishell を追加し,CI はnix develop .#ciで動かす(release.yml は自前で dist を入れるので,CI にdistは要らない).defaultshell は従来のままcargoDistを含む.全体の待ち時間は,
nix-check(変更なし)が支配するので,変更前とほぼ同じ.各 job は cache なしでも 1 分台で,main で cache が保存された後はさらに短くなる見込み(未計測).検証
nix flake check --all-systems --no-build --option allow-import-from-derivation false: 成功cargo clippy -- -D warnings,cargo fmt --check,cargo deny check,cargo machete,cargo test: 成功Refs furedea/reusable-workflows#23
Closes furedea/reusable-workflows#22
🤖 Generated with Claude Code