[PR #8995] fix(nix): resolve hash race condition in parallel matrix jobs #12942

Closed
opened 2026-02-16 18:17:49 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8995

State: closed
Merged: Yes


Summary

  • Refactor update-nix-hashes workflow to fix race condition where concurrent matrix jobs overwrite each other's changes to hashes.json
  • Parallelize hash computation using artifacts instead of direct commits
  • Add commit-node-modules-hashes job to consolidate all hashes atomically
  • Add --autostash to git pull --rebase for robustness
  • Use macos-15-intel for x86_64-darwin consistency

Fixes #8977

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8995 **State:** closed **Merged:** Yes --- ## Summary - Refactor `update-nix-hashes` workflow to fix race condition where concurrent matrix jobs overwrite each other's changes to `hashes.json` - Parallelize hash computation using artifacts instead of direct commits - Add `commit-node-modules-hashes` job to consolidate all hashes atomically - Add `--autostash` to `git pull --rebase` for robustness - Use `macos-15-intel` for x86_64-darwin consistency Fixes #8977
yindo added the pull-request label 2026-02-16 18:17:49 -05:00
yindo closed this issue 2026-02-16 18:17:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12942