.agents/memory/2026-02-27-ci-cd-race-condition-version-desync-fix.md

1.1 KiB

2026-02-27 Session Notes

CI/CD Race Condition & Version Desync Fix

Session initiated to fix a release pipeline race condition in signetai monorepo. Two PRs (#33 and #34) merged simultaneously, triggering concurrent Release workflows. The first published signetai@0.8.3 to npm but failed to push version bump back to main; the second failed with 403 (version already exists). Result: npm registry shows 0.8.3 while main branch still has 0.8.1.

Implementation plan covers two parts:

Part 1 — Version Synchronization: Pull latest commits, manually bump all package.json files to 0.8.3, commit with message "chore: release 0.8.3" to match workflow skip filter, create and push git tag v0.8.3, verify GitHub Release exists.

Part 2 — Workflow Hardening: Add concurrency controls to release.yml (group: release-pipeline with cancel-in-progress: true), add git pull --rebase before push step, implement version existence check before npm publish to prevent re-publishing already-released versions.

Session started with git pull and began examining current state. Full implementation in progress.