Skip to content

test(cli): fix 1 flaky test in live branch create - #7326

Merged
avallete merged 3 commits into
developfrom
avallete/flaky-fixes-2026-10-26
Nov 2, 2026
Merged

avallete merged 3 commits into
developfrom
avallete/flaky-fixes-2026-10-26

Conversation

@avallete

Copy link
Copy Markdown
Member

TL;DR

The live branch helper now re-creates a branch once when the platform drops TLS while setting the branch password, the same way it handles a 57P01 database restart.

  • apps/cli/src/commands/branches/get/get.live.test.ts › gets a preview branch by name: branches create failed with 400: Failed to update password: Client network socket disconnected before secure TLS connection was established. This is a transient platform rejection during create, like the 57P01 restart from test(cli): fix 1 flaky test in live branch create #7256, but the helper only re-issued the create for 57P01. The helper's transient-rejection matcher now also covers this documented TLS drop, so it runs the same single clear-and-recreate. A second rejection still fails. create.live uses the same helper and gets the fix too.

ref

spotted in:


Generated by Claude Code

The platform rejects `branches create` with a 400 when its TLS connection
drops while setting the branch database password. Treat that rejection like
the 57P01 restart in the helper's single clear-and-recreate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014y76TaNM2eKGdpmiMQXWqu
@avallete
avallete requested a review from a team as a code owner October 26, 2026 07:42

Copy link
Copy Markdown
Member Author

/ai-review


Generated by Claude Code

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by a newer AI review

🤖 AI Review

Both independent reviews reported no findings. Reading the changed helper and surrounding tests confirms that the TLS failure uses the existing cleanup-and-retry path, retries only once, and preserves subsequent failures. No actionable issues or fundamental conflicts with the supplied next-branch context were found. Tests were not run because dependencies are not installed.

Findings

No issues found.

Stats

Claude findings: 0 · Codex findings: 0 · Confirmed: 0 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

Both independent reviews reported no findings. Reading the changed files and surrounding code confirmed that the TLS failure matcher uses the existing single-retry path, preserves cleanup, and propagates a second failure. The regression test covers the new error message. No actionable issues or fundamental next-branch conflicts found. Tests were not run because dependencies are absent.

Findings

No issues found.

Stats

Claude findings: 0 · Codex findings: 0 · Confirmed: 0 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: manual · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit ddae54c against develop at c3f3ef2 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 184 ms 190 ms no real change
supabase --help help 196 ms 199 ms no real change
supabase init init 232 ms 225 ms no real change
supabase migration new bench migration-new 232 ms 296 ms no real change (+27%, within normal variation)
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 270 ms 280 ms no real change
supabase projects list projects-list 244 ms 241 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 265 ms 263 ms no real change

API calls: unchanged for all 7 commands.

Binary size: 134.0 MB, unchanged.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 170-234 ms 174-212 ms +6 ms (+3%) within noise
supabase --help help 179-209 ms 183-266 ms +3 ms (+1%) within noise
supabase init init 195-255 ms 198-249 ms -8 ms (-3%) within noise
supabase migration new bench migration-new 190-415 ms 212-416 ms +63 ms (+27%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 221-387 ms 247-416 ms +11 ms (+4%) within noise
supabase projects list projects-list 207-282 ms 218-288 ms -3 ms (-1%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 238-299 ms 232-403 ms -3 ms (-1%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

@Coly010 Coly010 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@avallete
avallete added this pull request to the merge queue Nov 2, 2026
Merged via the queue into develop with commit b14477c Nov 2, 2026
49 checks passed
@avallete
avallete deleted the avallete/flaky-fixes-2026-10-26 branch November 2, 2026 16:36
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.

3 participants