Repository navigation
ci(release): explain stale release runs when main has moved - #339
Conversation
PR overviewNo security issues were found in this pull request. Reviews
|
There was a problem hiding this comment.
Not approved — this change needs a human reviewer.
Asking again through the PostHog MCP or with @posthog stamp gives the same result unless the changed files change.
stamphog can't approve this pull request automatically. The deny-list gate matched .github/workflows/release.yml as infra_cicd (CI/CD and release infrastructure), and the tier gate then placed the PR in the never-auto-approve tier (T2-never). The size gate passed, so the refusal comes from the file path, not from how large the change is.
A human reviewer will need to look at this PR. Ask a maintainer who owns the release workflow to review it, since changes to that file always need a person's sign-off.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✗ | matches: infra_cicd in .github/workflows/release.yml |
| every_file_attested | ✓ | not a bot PR |
| size | ✓ | 18L, 1F substantive — within ceiling |
| tier | ✗ | T2-never because the deny-list matched infra_cicd |
| stamphog 2.9.1 | .stamphog/policy.yml @ unknown · reviewed head 034df40 |
posthog-php-lib_curl Compliance ReportDate: 2026-12-01T15:30:04.680700+00:00 ✅ All Tests Passed!47/47 tests passed Capture Tests✅ 30/30 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
posthog-php-socket Compliance ReportDate: 2026-12-01T15:30:16.420533+00:00 ✅ All Tests Passed!47/47 tests passed Capture Tests✅ 30/30 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
posthog-php-fork_curl Compliance ReportDate: 2026-12-01T15:30:21.380451+00:00 ✅ All Tests Passed!47/47 tests passed Capture Tests✅ 30/30 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
💡 Motivation and Context
A Release run is prepared from one main commit and then waits for environment approval. If another release finishes first and moves main, approving the older run fails at the first check in the publish step. The check was a bare
testunderset -e, so the job failed with onlyProcess completed with exit code 1and no message. One example is run 46621976172. Its changes had already shipped in a newer release, but the log didn't say so.This PR replaces that
testin the three places it's used (both publish jobs and the resume publish job). When main has moved, the step now prints a GitHub error annotation with the current main SHA and the SHA the run was prepared from, and tells the reader to use the latest release run instead of re-running this one. The check still blocks the release in the same cases as before. If thegh apicall fails, the step still fails because ofset -e.💚 How did you test it?
actionlint .github/workflows/release.ymlpasses.📝 Checklist
🤖 Agent context
Autonomy: Human-driven (agent-assisted)