Skip to content

fix(tests): expect normalized Gateway URLs on macOS - #206281

Merged
vincentkoc merged 1 commit into
mainfrom
fix/apple-default-port-test-expectations-20261127
Nov 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/apple-default-port-test-expectations-20261127

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Closes #206279

What Problem This Solves

macOS connection tests still expect newly constructed WSS URLs to spell out port 443 after #143648 intentionally removed that spelling for HTTPS proxy routing. The native test run fails three cases even though the new connections produce the intended URLs.

User Impact

No runtime behavior changes. Native validation again expects the supported URL format while continuing to check credentials, connection authority, and stored connection values.

Why This Change Was Made

Update the SSH-to-direct expectation and the new-selection branch of the profile-promotion test. The six other promotion branches keep their explicit :443 expectations because they use stored URLs or a supplied profile endpoint. All assertions remain; no production code or test cases are removed.

Evidence

  • CI run 45920229031, head 0dbf9b9f8013f6d9b3a605036e6a593c936600ca: the default macOS partition ran 2,782 tests and reported three issues. Its full native-log artifact records actual wss://new.example.test and wss://newer.example versus the old explicit-port expectations. These owning paths and expectations are unchanged at this PR's base.
  • Swift parsing and git diff --check passed.
  • Independent review covered both complete test files and their producer paths; no findings.
  • Full local ClawSweeper review of 2ab7b31a13d95bbbb62596679b130445c4c9d3d1..38ecb7e1c4fca03d883577b128a5b0a9cb770e6b: complete, no findings or open risks.
  • Candidate CI run 45923199828 at 38ecb7e1c4fca03d883577b128a5b0a9cb770e6b passed. The two SSH-to-direct cases and all seven profile-promotion cases passed. The default partition passed 2,787 tests; the other partitions passed 9, 2, and 14 tests. Native app tests were not run on the operator desktop.

@vincentkoc vincentkoc self-assigned this Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR updates macOS connection tests to expect omitted port 443 for newly constructed WSS URLs.

Example: Switch an SSH connection to the trusted address wss://new.example.test/.

  • Before: The test expects wss://new.example.test:443 and rejects the intended normalized result.
  • After: The test expects wss://new.example.test while retaining transport and credential checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Source verification supports the complete, narrow correction; passing native execution on the reviewed head remains unconfirmed.
Proof confidence 🦐 gold shrimp (3/6) This test-only PR needs no application-level demonstration; candidate native test execution is still pending, so after-change success is not yet established.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Native validation rejects supported Gateway URL formatting.
Reason: This maintainer-authored correction restores useful validation of an already approved runtime contract without weakening connection safeguards.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR correctly repairs stale macOS assertions while preserving stored-URL, credential, and connection-authority coverage; no actionable defects were found.

Reviewed head: 38ecb7e1c4fca03d883577b128a5b0a9cb770e6b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The macOS connection editor and dashboard adapter pass parsed setup URLs or supplied profile endpoints to AppState, which persists the selected connection; these tests check the resulting configuration.

flowchart LR
  A[Trusted setup input] --> B[Shared URL builder]
  B --> C[Connection editor or adapter]
  D[Stored profile endpoint] --> C
  C --> E[AppState connection owner]
  E --> F[Persisted configuration]
  F --> G[Native test assertions]
Loading

Technical review

Best possible solution:

Retain this focused assertion correction and complete the existing native CI before marking the draft ready.

Do we have a high-confidence way to reproduce the issue?

Current-main URL construction omits WSS port 443, while the two original assertions require it; this establishes the mismatch without executing target code.

Is this the best way to solve the issue?

The patch is the smallest complete correction: update generated-URL expectations while preserving exact stored values and all existing assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fc25865d99bd.

Provenance checked

  • macOS connection URL assertions keeps the original intent (cb63df0: The connection-flow repair protects trusted destination entry, atomic route/auth replacement, and rejection of stale profile promotion.)
  • Generated WSS URL spelling keeps the original intent (b4047ed: Omit explicit default TLS ports so URLSession requests reach hostname-routed HTTPS proxies.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Tests +3. Total +3 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 5 2 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 5 2 +3

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 26, 2026, 8:46 PM ET / November 27, 2026, 01:46 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 01:58
@vincentkoc
vincentkoc merged commit eb13887 into main Nov 27, 2026
195 checks passed
@vincentkoc
vincentkoc deleted the fix/apple-default-port-test-expectations-20261127 branch November 27, 2026 03:25
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit '7df6cb759f9e604921536a700e2f527c5516e7de': (185 commits)
  docs: clarify what telemetry OpenClaw sends and how to opt out
  refactor(ui): remove retired stream-follow test seams (#206316)
  fix: distinguish missing command results from unknown outcomes (#206313)
  fix(build): reuse stamps after identical pnpm installs (#206282)
  chore(ci): inventory Gateway model catalog worker lifecycles (#206251)
  fix: keep failed image inspections inside chat activity (#206283)
  fix: clarify sent-message labels and chat activity icons (#206048)
  fix(cron): use the service's free memory for extra automation runs (#206322)
  test(android): reuse the shared TLS fixture (#206280)
  fix(ui): restore New Session recovery during startup (#206319)
  test(macos): align new Gateway URL expectations (#206281)
  feat: let doctor --fix tell when its startup repairs have nothing to do (#206246)
  fix(android): pause idle gateway discovery without blocking consumers (#196209)
  fix(ci): prepare the Android SDK for scheduled CodeQL scans (#203843)
  fix(memory): read delegated cgroup pressure from the mapped leaf (#206308)
  improve(config): reuse plugin metadata during auto-enable (#206289)
  improve: copy only the selected model for agent completions (#206287)
  fix(pr): refresh tooling before preparing reviewed incoming PRs (#206236)
  fix: keep Gateway ready while plugins drain after updates (#206299)
  fix(crabbox): keep unused prepared mirrors reusable (#206267)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update macOS connection tests for normalized WSS ports

1 participant