Skip to content

ci: run language tools from each repository's flake dev shell #23

Closed

Description

@furedea-agent

概要

CI で使う言語のツール(Node,pnpm,Go,Rust,Python,uv,lint,format,test)を,各 repo の flake の devShell から動かす形に統一する.GitHub Actions は,GitHub と連携する部分(checkout,Nix のインストールとキャッシュ,artifact,証明,release,レビュー)だけに使う.手元と CI で同じ版になり,flake.lock 1 つで中身が固定される.

項目 今 変更後
言語のツール setup-node,pnpm/action-setup,setup-go,golangci-lint-action,setup-rust-toolchain,cargo-deny-action,cargo-machete,setup-uv,bats-action など devShell(defaults.run.shell: nix develop --command bash -eo pipefail {0})
Nix の準備 repo ごとに install-nix-action と cache-nix-action を書く reusable-workflows の composite action nix-setup を 1 行で呼ぶ
版の決まり方 action ごと(手元の devShell とずれる) flake.lock(手元と同じ)

受け入れ条件

  • reusable-workflows に composite action .github/actions/nix-setup(Nix のインストールとキャッシュ)を足し,release する
  • 各 repo の CI から,言語のツールを入れる action がなくなり,devShell で動く(dotfiles,agent-config,agent-harness,rater,template-typescript,template-python,template-go,template-rust)
  • 各 repo の devShell が Linux(x86_64-linux)でも使える
  • 各 repo で,CI の時間を変更前と後で測って PR に書く.全体の待ち時間が大きく延びない(キャッシュで手当てする)
  • job の名前(必須チェック)は変えない
  • ci: remove the last unverified download (bats-action in agent-harness) #22(agent-harness の bats-action)もこの中で直す

計画

レーン repo 中身 依存
0 reusable-workflows composite action nix-setup を足して release なし
1 dotfiles setup-uv をやめる(format 系と bats は #413,#421 で済み) 0 の release
2 agent-config setup-uv,setup-node をやめる 0
3 agent-harness Rust のツールと cargo-deny,cargo-machete,bats を devShell に 0
4 rater setup-go,golangci-lint を devShell に 0
5〜8 template-typescript,python,go,rust 同上.devShell を Linux 向けにも出す 0
前提と関連
  • 他のツールの推奨:devenv(★7,819)は defaults.run.shell を devenv shell にして CI で開発環境をそのまま使うことを推奨.devbox(★12,449)も同じ考え方
  • 前例:dotfiles#413(format 系),#421(bats)で同じ形にした.CI の時間は job ごとに数十秒増えたが,並列なので全体はほぼ変わらなかった
  • template-typescript#37(setup 系を composite action にまとめる案)は,この方針と逆なので閉じた
  • template-tex と template-minimal は,言語のツールを入れる action を使っていないので対象外

Activity

  1. furedea-agent commented on Nov 9, 2026

    @furedea-agent
    ContributorAuthor

    全レーン完了.nix-setup は v1.3.0(#24, #25).各 repo: dotfiles#422, agent-config#112, agent-harness#207(#22 も解決), rater#17, template-typescript#38, template-python#19, template-go#7, template-rust#17.

    例外: template-python と agent-config は nixpkgs が CPython 3.14.10 / 3.15.2 を出すまで自前ビルドのため,キャッシュが外れた run は数分かかる(agent-config#113 と template-python の 3.14.10 PR で受け入れ済み.nixpkgs が追いついたら nix/python.nix を消す).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions