fix(ci): wait-for-deploy refetches missing trees, skips gate if unresolvable #101
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/e2e-wait-deploy-skip-when-unresolvable"
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 on
6bf0e9a(the unshallow-fallback PR's merge commit) still hit:Clone depth was 370 and the shallow check returned false, but the path-filtered
git logstill returned empty. Forgejo'sactions/checkoutapplies an object filter (--filter=blob:none/--filter=tree:0) that strips the tree objectsgit log -- <path>needs to test path membership; the query then silently returns zero matches even though the commits are present.Fix
Two changes to
wait-for-deploy.mjs:tryRefetch()step runsgit fetch --refetch originto repopulate the missing tree objects. Resolver now tries: initial query → unshallow if shallow → refetch → retry.GITHUB_SHA). Falling back toGITHUB_SHAon a doc/test-only commit re-creates the original problem (polling 10m on a SHA staging never serves). Phase 1 of PMS-140 is informational, not a merge gate, so the right failure mode is "tests proceed, operator sees warning, follow up out-of-band" - not "block CI on a runner-side issue".Test plan