🤖 ci: use nix devshell PATH for mux bash hooks#34
Conversation
40cce36 to
56a5aad
Compare
|
@codex review Please review this change for correctness and any edge cases. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 56a5aad668
ℹ️ 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".
56a5aad to
1417983
Compare
|
@codex review Implemented your feedback:
Please take another look. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1417983067
ℹ️ 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".
1417983 to
be074d7
Compare
|
@codex review Follow-up applied:
Please take another look. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be074d7a3f
ℹ️ 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".
--- _Generated with [`mux`](https://github.com/coder/mux) • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$1.22`_ <!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=1.22 -->
be074d7 to
a130861
Compare
|
@codex review Adjusted top-level error propagation to preserve the devshell setup exit code. |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ 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". |
Summary
Enable Mux bash tool invocations to use the project's Nix dev shell toolchain by caching and exporting a devshell PATH in
.mux/tool_env.Background
This workspace had an outdated system
kindbinary (v0.10.0) on PATH, which defaulted to old Kubernetes node images (kindest/node:v1.20.2). We want Mux command execution to consistently use flake-provided tools instead.Implementation
mux_use_nix_devshell_path()to.mux/tool_env./tmp/mux-nix-path-<workspace-tag>) to avoid collisions between concurrent workspaces.flake.nix/flake.lockis newer than the cache file.mktemp+mv) and fail-fast assertions when a usable cache cannot be produced.bashtool call picks up the devshell PATH.Validation
make verify-vendormake testmake buildmake lintbash -n .mux/tool_envkind version(from Mux bash shell, now resolves to Nixkind v0.31.0)kubectl version --client(from Mux bash shell, now resolves to Nixv1.35.0)Risks
Low risk. Change is scoped to Mux bash hook environment setup and does not modify application runtime logic. Main behavioral change is PATH precedence in Mux-invoked bash commands; this is intentional and constrained to workspace shell execution.
Generated with
mux• Model:openai:gpt-5.3-codex• Thinking:xhigh• Cost:$1.22