Skip to content

ci: install zsh for the Bats job from the flake dev shell - #453

Merged
furedea merged 2 commits into
mainfrom
ci/install-zsh-from-nix
Nov 11, 2026
Merged

furedea merged 2 commits into
mainfrom
ci/install-zsh-from-nix

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Bats ジョブの zsh を,apt ではなく flake の開発用シェルから入れます.GitHub の実行マシンが Ubuntu のパッケージ置き場の名前を 1 時間以上引けず,テストの前の apt の手順で #452 の bats が 3 回続けて失敗したためです.

変更前 変更後
bats 開発用シェル(flake.lock で固定) 同じ
zsh apt(実行マシンの Ubuntu の版) 開発用シェル(flake.lock で固定)
CI が頼る外部の置き場 Nix と Ubuntu の apt Nix だけ
  • nix develop の中で zsh が /nix/store/...-zsh-5.9.1/bin/zsh になる
  • 手元で bats --recursive --filter-tags '!macos' tests/zsh がすべて通る
  • CI の bats-tests が通る
補足
  • 失敗していたのは Install zsh の手順だけで,Temporary failure resolving 'archive.ubuntu.com' などが出ていた(14:48,14:58,15:51 UTC).同じ時間帯に Nix のジョブや agent-config の CI は通っていた
  • .github/workflows の変更は別のコミットに分けた

🤖 Generated with Claude Code

furedea and others added 2 commits November 12, 2026 01:13
The zsh Bats specs run the startup files under zsh. Taking it from the dev
shell pins it with flake.lock, the same way as bats.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The runner could not resolve the Ubuntu archive hosts for over an hour, which
failed the job before any test ran. zsh now comes from the dev shell.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 11, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T16:19:46.630423Z a32d426 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Review summary: no findings. Removing the apt step is safe because the job's default shell already runs every step inside nix develop, and shellPkgs.zsh puts a zsh pinned by flake.lock on PATH. The zsh Bats specs call zsh through PATH and use stub compinit and fpath functions. They don't rely on hard-coded /usr/bin/zsh paths or on Ubuntu's zsh function directories, so swapping the zsh source should not change how they behave. Blocking findings: 0.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: a32d4264ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@furedea
furedea merged commit ecc1e06 into main Nov 11, 2026
21 checks passed
@furedea
furedea deleted the ci/install-zsh-from-nix branch November 11, 2026 16:25
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.

1 participant