fix(ci): wait-for-deploy unshallows the clone when git log returns empty #100
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/e2e-wait-deploy-unshallow"
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?
Summary
Post-merge E2E run for PR #99 (the deploy-sync gate fix) failed at
Wait for staging to serve this commitwith:The same
git log -1 --format=%H d47d72a -- src crates migrations ...returns52742c6on a full local clone, so the cause is the Forgejo runner'sactions/checkoutshipping a shallow clone even withfetch-depth: 0set.Fix
Have
wait-for-deploy.mjsself-heal: if the build-trigger query returns empty ANDgit rev-parse --is-shallow-repositoryreports true, rungit fetch --unshallow originand retry once. On a definitive miss, the error now includes clone depth and shallow state so the next failure is faster to diagnose.fetch-depth: 0in the workflow stays as the primary path; this is the belt-and-suspenders fallback.Test plan