Repository navigation
test(cli): stop waiting for a database restart in the ssl-enforcement live test - #7710
Conversation
… live test The platform now applies an SSL enforcement change without restarting Postgres, so polling pg_postmaster_start_time for a new postmaster never succeeds. The test keeps proving the change through `ssl-enforcement get` and restoring the captured posture. Co-Authored-By: Claude Opus 5.5 <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 |
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: not applicable (no reference sources changed).
The SSL-enforcement live test now relies on Management API status to verify the toggle and restore. One minor finding remains uncertain because the checked-out code does not establish whether the current platform can report success before Postgres is ready. CLI reference prose review was inapplicable to this test-only change.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | apps/cli/src/commands/ssl-enforcement/update/update.live.test.ts:154 |
test-coverage |
codex | The live test can start restoring the original SSL posture while the toggle is still being applied, then report success while the shared database is still restarting. |
Stats
Claude findings: 0 · Codex findings: 1 · Confirmed: 0 · Refuted: 0 · Uncertain: 1
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.
… change `ssl-enforcement get` can report the posture applied while Postgres is still restarting. After the toggle and the restore, the test now polls `select 1` until the database answers, whether or not the change restarted the postmaster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Live e2e run passed with the fix: https://github.com/supabase/cli/actions/runs/44490049359 |
Summary
The
ssl-enforcement updatelive test has failed on every live e2e run since 2026-11-18, ondevelop,mainandnextalike, with:#7016 made the test wait for a new postmaster after each toggle, because an SSL enforcement change used to restart the database after
ssl-enforcement gethad already reported it applied, and that late restart killed the next live file'smigration upwith57P01. The platform now applies the change without a restart: the samemaincommit passed and then failed a day later, and the failing runs show no restart afterwards either. So the wait never ends.This drops the postmaster-start check. The test still proves the toggle through
ssl-enforcement get, restores the captured posture, and reports toggle and restore failures together.queryLiveDb's handling of a dropped idle client from #7016 stays, since other live tests use it.If the platform goes back to restarting on this change, the original leak would show up again as
57P01in the next file'smigration up.🤖 Generated with Claude Code