fix(ci): resolve deploy-sync expected SHA to the last build-relevant commit #99
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/e2e-runner-toolcache"
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?
build-oci-image.yml only fires when one of a fixed set of paths changes (src/, crates/, migrations/, .cargo/, Cargo.toml, Cargo.lock, oci-build/, the build workflow itself). A merge to main that touches only docs/tests/CI never republishes :latest, so staging keeps serving the previous build and the E2E deploy-sync gate polls forever for a SHA staging can never report.
Walk
git logfrom GITHUB_SHA backwards in wait-for-deploy.mjs and find the most recent commit that touched any build-trigger path; poll for THAT hash. When the head commit is build-relevant the resolved SHA equals GITHUB_SHA, so build-publishing merges still gate on themselves; when the head is doc/test/CI-only, the gate matches the image that staging is actually running.BUILD_TRIGGER_PATHS is hardcoded with a pointer comment to build-oci-image.yml's
on.push.pathsso future drift between the two is at least catchable in code review.Restore
fetch-depth: 0on actions/checkout for the e2e job - the git log walk needs more than depth 1. The earlier "drop fetch-depth: 0" change is reverted; the gain was negligible and it broke this gate.#PMS-140