Repository navigation
ci: prune Docker publish workflows and telemetry secrets - #7699
Conversation
Remove the never-run migra and pg_prove Docker Hub publish workflows, read the PostHog endpoint from a repository variable, and stop passing the Sentry DSN that no current build reads. Generated with AI Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: not applicable (no reference sources changed).
Both reviewers identified the same release configuration issue. The fallback is confirmed, and the checkout does not show whether the new Actions variable has been provisioned. Coordinate the endpoint migration with the active v2.x maintenance branch, which still reads the endpoint secret and uses SENTRY_DSN in its Go build.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | .github/workflows/build-cli-artifacts.yml:52 |
release-config |
claude+codex | If POSTHOG_ENDPOINT is configured only as a secret, release builds succeed with an empty embedded endpoint. Without a runtime host override, the CLI silently uses https://eu.i.posthog.com, so opted-in telemetry can be sent to a different host than intended. |
Stats
Claude findings: 1 · Codex findings: 1 · Confirmed: 1 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
Coly010
left a comment
There was a problem hiding this comment.
approving to unblock, just a couple of things
the publish workflows did actually run. supabase/migra:3.0.1663481299 and supabase/pg_prove:3.36 were pushed to Docker Hub on 2024-01-02, and the run history has just expired since then. mirror-image.yml only copies images from docker.io, so after this we've no way in the repo to rebuild either image, and test db still pulls pg_prove:3.36. i think that's probably fine since neither has changed in ~2 years, but can we reword the description so it reads as a trade-off rather than unused workflows?
if we're happy with that, the comment in .github/dependabot.yml about Dependabot bumping migra and pg_prove should probably change too, since nothing will publish new versions for it to find
not blocking: docs/telemetry.md still describes Sentry, with a SENTRY_DSN, as phase 1 "now". feel free to leave that for another PR
docs/telemetry.md described Sentry as the live telemetry backend. Analytics and tracing are documented in apps/cli/docs, so ADR 0002 now links there. Generated with AI Co-Authored-By: Claude <noreply@anthropic.com>
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 135.2 MB, unchanged. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
This reverts commit c7112c1. Generated with AI Co-Authored-By: Claude <noreply@anthropic.com>
Generated with AI Co-Authored-By: Claude <noreply@anthropic.com>
… v2.x (#7701) ## Summary Backports #7699 to `v2.x`, with one difference. - Deletes `cli-go-publish-migra.yml` and `cli-go-pg-prove.yml`, the `v2.x` names for the Docker Hub publish workflows removed on `develop`. This is the same trade-off as on `develop`: the images they last pushed on 2024-01-02 (`supabase/migra:3.0.1663481299` and `supabase/pg_prove:3.36`) stay published, but the repo can no longer rebuild them. - Reads `POSTHOG_ENDPOINT` from a repository variable instead of a secret. `POSTHOG_API_KEY` stays a secret. - **Difference:** `SENTRY_DSN` stays a secret here. The v2 Go binary gets it at build time and uses it to send an error report to Sentry when a user passes `--create-ticket`. ## Linked issue Part of CLI-3161 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com>
@Coly010 updated this PR to reflect these, thanks!
opened up #7725 to address this |
## Summary Split out from supabase#7699, which stops passing `SENTRY_DSN` to the build. Review there noted that this doc still describes Sentry, with a `SENTRY_DSN`, as the current telemetry backend. - Removes `docs/telemetry.md`, an early design doc that described Sentry and Grafana as the telemetry backends, along with collection and consent designs the CLI never shipped. `apps/cli/docs/analytics.md` and `apps/cli/docs/tracing-monitoring.md` document how analytics and tracing work today. - Points the "See Also" link in ADR 0002 at those two docs. The ADR's decision text is unchanged. - Drops a line in `analytics.md` that described Sentry as a current telemetry system. ## Linked issue Part of CLI-3161 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com>
Summary
Reduces the Actions secrets these workflows need.
publish-migra.ymlandpublish-pg-prove.yml, leaving theDOCKER_USERNAMEandDOCKER_PASSWORDsecrets unused on this branch. This is a trade-off. The workflows last pushedsupabase/migra:3.0.1663481299andsupabase/pg_prove:3.36to Docker Hub on 2024-01-02, and their run history has since expired. After this change the repo can no longer rebuild either image. The mirror workflow still copies the existing tags topublic.ecr.aws, whichsupabase test dbpulls. Neither image has changed in about two years, so we accept that. The Dependabot config comment now says those two images stay at their current pins.POSTHOG_ENDPOINTfrom a repository variable instead of a secret. The build bakes the endpoint into the published CLI, so it isn't sensitive.POSTHOG_API_KEYstays a secret.SENTRY_DSNto the build. Nothing has read it since the Go binary was removed.Backport
#7701 brings the same cleanup to
v2.x, with one difference:SENTRY_DSNstays a secret there. The v2 Go binary uses it to send an error report to Sentry when a user passes--create-ticket.Linked issue
Part of CLI-3161
🤖 Generated with Claude Code