Repository navigation
test(android): exercise cached ingress over real TLS transports - #156233
vincentkoc wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed October 7, 2026, 9:09 PM ET / October 8, 2026, 01:09 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds Android tests for cached Access credentials across TLS Gateway upgrades, media requests, and rejection of a different server authority. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored test slice adds useful coverage that current main does not provide. No concrete introduced defect was found, but standalone validation remains explicitly pending. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherAndroid’s ingress controller decides whether cached Cloudflare Access credentials can authorize a Gateway connection. These tests connect that decision to the actual WebSocket and media clients using local TLS servers. flowchart LR
A[Cached Access credentials] --> B[Android ingress controller]
B --> C[Current grant and authority check]
C --> D[Gateway WebSocket client]
C --> E[Media HTTP client]
D --> F[Authorized TLS server]
E --> F
C --> G[Different authority rejected]
Technical reviewBest possible solution: Retain this focused controller-to-transport coverage and qualify it independently before integrating the dependent feature stack. Do we have a high-confidence way to reproduce the issue? Not applicable: this is test coverage rather than a reported product defect; the new scenarios have not been executed at this standalone prefix. Is this the best way to solve the issue? Yes: exercising the existing controller and real TLS clients adds coverage beyond synthetic authorization tests without introducing a competing production owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5ffec9b0ad85. TestingProof path: none. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +336. Total +336 across 1 file. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
|
What Problem This Solves
Cached ingress unit scenarios also need proof at real Gateway upgrade and media request boundaries, including a healthy wrong authority that must receive no managed credentials.
User Impact
This test-only slice exercises the cached admission owner through actual TLS sockets, GatewaySession and streaming clients. It changes no production code or app wiring.
Why This Change Was Made
A current grant must survive a real 503 upgrade follow-up and a successful media request on its own authority. Reusing that grant for another authority must fail before a request reaches that server. The foreign TLS health check distinguishes authorization rejection from a broken test endpoint. The fixture owns and drains its transports, coroutine scope, HTTP executor, connection pool and servers.
This is the sixth narrow slice of #147305, stacked on #156232. It adds 336 test lines, including the real transport fixture and two methods.
Evidence
8aa382d7d196ec7ede0fbaa50980c9e6b1992e22, with no fake lease predicates or substitute Store writes for renewal.git diff --checkpassed. Prefix compilation and execution remain pending; historical aggregate results do not qualify this standalone prefix.