Skip to content

test(android): exercise cached ingress over real TLS transports - #156233

Draft
vincentkoc wants to merge 1 commit into
split/android-ingress-cached-admission-20260923from
split/android-ingress-cached-transport-proof-20260923
Draft

vincentkoc wants to merge 1 commit into
split/android-ingress-cached-admission-20260923from
split/android-ingress-cached-transport-proof-20260923

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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

  • The prefix now contains 22 Controller methods. These two methods initially cover current cached grants and wrong-authority rejection; their original replacement and stale-range cells enter with actual browser renewal, preserving the final aggregate method names and assertions.
  • The fixture uses the production admission, Gateway and TLS paths from aggregate 8aa382d7d196ec7ede0fbaa50980c9e6b1992e22, with no fake lease predicates or substitute Store writes for renewal.
  • Normal signed commit hooks and git diff --check passed. Prefix compilation and execution remain pending; historical aggregate results do not qualify this standalone prefix.
  • Automated source review remains held by the review tool's synthetic-fixture filename classification. No substitute review or new clean verdict is claimed. Keep this draft unmerged until applicable review and validation are resolved. Native persistence and final-app fresh-install/same-signer install-over proof remain outstanding for the composition.

@vincentkoc vincentkoc self-assigned this Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 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 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed October 7, 2026, 9:09 PM ET / October 8, 2026, 01:09 UTC (Revision 2).

ClawSweeper review

What this changes

Adds Android tests for cached Access credentials across TLS Gateway upgrades, media requests, and rejection of a different server authority.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful boundary coverage with no concrete defect found, but its standalone validity remains unverified.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: This MEMBER-authored test-only slice is exempt from external-contributor behavior proof and changes no production authority. Its fixture targets the real controller, GatewaySession, and TLS media clients, but standalone execution remains pending; unrelated recovery screenshots do not establish these scenarios.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
Reason: The tests protect credential confinement and successful cached admission through real transport clients, extending existing synthetic-provider coverage without production changes.

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
Reviewed head: e73c3ac500a6764fd3eba8f16b8b4df2a6d9449f

Before merge

  • Complete next step (P2) - Complete standalone Android compilation and focused tests in both flavors, record results and measured test cost, and resolve the author’s recorded review and validation hold before marking this slice ready.

Findings

None.

Tests

  • Missing end-to-end proof: Standalone compilation and execution of the new cached-grant TLS upgrade and streaming scenarios remain pending in both Android flavors; no base/head execution comparison was established.
Agent review details

How this fits together

Android’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]
Loading

Technical review

Best 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.

Testing

Proof path: none. Added test files: 1.

Security

None.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Tests +336. Total +336 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 336 0 +336
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 336 0 +336

Root-cause cluster

Relationship: partial_overlap
Canonical: #147305
Summary: This is an explicitly identified transport-test slice of an ordered feature stack, not a superseded submission.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: Focused Android transport coverage is a normal-priority improvement supporting an active feature stack.
  • 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:

  • P2: Focused Android transport coverage is a normal-priority improvement supporting an active feature stack.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record focused GatewayIngressControllerTest compilation and results for Play and ThirdParty at this prefix, including measured wall time and available CI duration.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-23T05:49:07.604Z sha e73c3ac :: needs changes before merge. :: none

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Oct 8, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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.

1 participant