Skip to content

fix(posthog): pass release-name and release-version as separate CLI flags#8624

Merged
JSONbored merged 1 commit into
mainfrom
claude/fix-posthog-release-name-split
Jul 25, 2026
Merged

fix(posthog): pass release-name and release-version as separate CLI flags#8624
JSONbored merged 1 commit into
mainfrom
claude/fix-posthog-release-name-split

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

  • posthog-cli's sourcemap inject/sourcemap upload combine --release-name and --release-version server-side into {name}@{version}. Every call site (self-host's release workflow, review-enrichment, discovery-index, and the self-host operator deploy script) only passed our already-combined string as --release-version, leaving --release-name unset — the CLI then auto-derived its own name from git/package.json and silently doubled the stored release id, so validate-posthog-release.mjs's release lookup never matched.
  • Also wires self-host's resolvePostHogRelease (previously computed but never attached to any capture) into its PostHog-captured events, matching review-enrichment/discovery-index's existing behavior.

Test plan

  • npx vitest run test/unit/selfhost-posthog.test.ts test/unit/selfhost-posthog-release.test.ts test/unit/discovery-index/upload-sourcemaps.test.ts test/unit/worker-posthog.test.ts test/unit/discovery-index/posthog.test.ts test/unit/discovery-index/validate-posthog-release.test.ts test/unit/docs-selfhost-posthog-observability.test.ts — all pass
  • npm --prefix review-enrichment test — 1377/1377 pass
  • npm run build --workspace @loopover/discovery-index and root tsc --noEmit — clean
  • npm run actionlint — clean
  • Re-cut ORB beta image and confirm "Validate PostHog release" passes against live PostHog

…lags

posthog-cli sourcemap inject/upload combine --release-name and
--release-version server-side into "{name}@{version}". Every call site
(self-host's release workflow, review-enrichment, discovery-index, and the
self-host operator deploy script) only passed our own already-combined
string as --release-version, leaving --release-name unset. The CLI then
auto-derived its own name from git/package.json, silently doubling the
stored release id and breaking release-based symbol-set lookups.

Also wires self-host's previously-computed-but-unused resolvePostHogRelease
into its captured PostHog events, matching how review-enrichment and
discovery-index already tag captures with their release.
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.76%. Comparing base (5f5f52b) to head (123538c).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8624   +/-   ##
=======================================
  Coverage   92.76%   92.76%           
=======================================
  Files         797      797           
  Lines       79355    79377   +22     
  Branches    24034    24039    +5     
=======================================
+ Hits        73616    73638   +22     
  Misses       4592     4592           
  Partials     1147     1147           
Flag Coverage Δ
backend 93.64% <100.00%> (+<0.01%) ⬆️
rees 89.62% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/discovery-index/src/upload-sourcemaps.ts 100.00% <100.00%> (ø)
review-enrichment/src/upload-sourcemaps.ts 99.51% <100.00%> (+0.03%) ⬆️
src/selfhost/posthog.ts 99.27% <100.00%> (+0.02%) ⬆️

@JSONbored JSONbored self-assigned this Jul 25, 2026
@JSONbored
JSONbored merged commit cdad5c2 into main Jul 25, 2026
6 checks passed
@JSONbored
JSONbored deleted the claude/fix-posthog-release-name-split branch July 25, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant