azure-gate: fix bicep deploy on the NixOS runner (PATH bicep) #151
No reviewers
Labels
No labels
bug
discussion
duplicate
enhancement
goal
help wanted
horizon:backlog
horizon:governance
horizon:mvp
invalid
operator-decision
question
roadmap
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-platform/mitosis!151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/azure-gate-bicep-nixos"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Next failure after the clone/pager fixes — and the reason the last run failed in ~7s. Pulled the actual error from Forgejo's action-log storage:
az deployment group create -f main.bicepauto-downloads a generic-linuxbicepELF into~/.azure/bin, and the vxrail runner is NixOS, which can't exec it. The run got all the way through clone → SP login → RG create → deploy before dying here (and it tore down cleanly — no leak), so the earlier fixes are confirmed working.Fix: add
nixpkgs#bicepto the workflow'snix shell, and ingate.shsetaz config set bicep.use_binary_from_path=truewheneverbicepis on PATH. So CI uses the nix bicep; a laptop with no bicep on PATH keeps using az's own download (which works fine off-NixOS). Laptop == CI preserved.This should be the last blocker for a green vms run.
🤖 Generated with Claude Code
The real deploy failure: az deployment auto-downloads a generic dynamically linked bicep ELF into ~/.azure/bin, which NixOS (the vxrail runner) cannot exec ('Could not start dynamically linked executable'). Add nixpkgs#bicep to the workflow's nix shell and, in gate.sh, point az at the PATH bicep (az config set bicep.use_binary_from_path=true) whenever bicep is present — so CI uses the nix bicep and a laptop (no bicep on PATH) keeps using az's own. Clone + pager fixes confirmed working; this was the next failure in line.