fix(ci): upgrade PostHog CLI for release races - #3952
Merged
Conversation
|
😎 Merged successfully - details. |
Contributor
Prompt To Fix All With AI### Issue 1
scripts/build-electron-vite-with-retry.mjs:35-40
**Retry flow lacks automated coverage**
All platform release builds now depend on branches for successful retries, exhausted retries, and immediate non-retryable failures, but these paths have only manual simulation coverage. Add parameterized automated tests so changes to error matching, attempt limits, or exit-code propagation do not silently break releases.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "fix(ci): retry sourcemap release creatio..." | Re-trigger Greptile |
jonathanlab
force-pushed
the
fix/sourcemap-release-race
branch
from
July 29, 2026 14:41
fde94e8 to
a9f1d20
Compare
adboio
approved these changes
Jul 29, 2026
tatoalo
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@posthog/clidependency from 0.7.5 to 0.8.4Why
Parallel release jobs can both resolve the same sourcemap release as absent, then race to create it. The losing process receives
release_hash_in_use, which CLI 0.7.5 treats as fatal. CLI 0.8.2 added explicit handling for this exact race: it recognizes the structured conflict and resolves the release created by the winning process.The Rollup plugin resolves
posthog-clifrom the repository-levelnode_modules/.bin, so the root dependency controls the binary used in release builds.Upstream fix: PostHog/posthog#70061
Validation
pnpm installnode_modules/.bin/posthog-cli --version→posthog-cli 0.8.4release_hash_in_useconflicts