Skip to content

test(sending): prove billing authorization serialization - #1065

Merged
jiashuoz merged 2 commits into
mainfrom
test/billing-authorization-proof
Oct 1, 2026
Merged

jiashuoz merged 2 commits into
mainfrom
test/billing-authorization-proof

Conversation

@jiashuoz

@jiashuoz jiashuoz commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Billing updates and final sending authorization must share the account control lock. These PostgreSQL integration tests race the real ConsumeAttempt against the canonical billing transaction, covering billing-first downgrade, insertion of an absent plan, and authorization-first ordering.

The tests observe actual PostgreSQL lock waits and verify billing waits at the control boundary. Full sending-policy tests pass under the race detector. Removing the authorization control lock makes the missing-plan and authorization-first tests fail. This PR changes tests only.

Independent and adversarial review passed after fixing worker cancellation/join and exclusive transaction cleanup. Final CI: 28 checks pass and one release-only check is skipped. Coverage retry passed; the first attempt reached the job time limit during the separate ramp/outbound race step after coverage tests passed.

@jiashuoz
jiashuoz merged commit 4bd511d into main Oct 1, 2026
47 of 48 checks passed
@jiashuoz
jiashuoz deleted the test/billing-authorization-proof branch October 1, 2026 05:48
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.

1 participant