Repository navigation
test(backend): the smoke test connects two people (BAC-192) - #381
Merged
hycursion merged 1 commit intoNov 17, 2026
Merged
Conversation
A meets B's token through the Worker (8.8) and B accepts on the Event Service (8.10). The database then holds one connection between them, with each one's kind, and no request left waiting. Both people log in through the services' own login-link routes (7.4, 8.12, 7.5), starting from a link the test signs with the Event Service key it already hands both services. Co-Authored-By: Claude Opus 5.5 <[email protected]>
hycursion
deleted the
adam/bac-192-the-smoke-test-connects-two-people-through-both
branch
November 17, 2026 13:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes BAC-192.
The smoke test now connects two people through both services. Before this, each service's unit tests faked the other, so only production had run a meeting end to end.
What the new case does
Aand one of kindB, with names that are new each run./auth/login-link(7.4). It then asks the Event Service for a link back (8.12) and posts it to the Worker's/auth/login-link(7.5). The services' own routes set both session cookies, and the test turns on no dev login./api/v1/me(8.7).waiting, with B's name./me(8.1) and accepts it (8.10). The answer has to beconnected.connectionsfor the pair, with A's kind and B's kind on the right sides, and nomeeting_halvesrow for them that still holds a request.The test sets the connection rule to token kinds and turns showcase mode off first. A new event has both settings that way, but geekykey_test may hold whatever an earlier test left.
The smoke test's Worker settings now list the Event Service with
meetingsandlogin_links_to_geekykeyon, aswrangler.jsoncdoes for production.Checked by hand
I broke the Worker's hand-off in
token-routes.tsthree ways, ranpnpm test:smokeeach time, and put the file back:user_idanswers_neededinstead ofwaitingowner_idowner_nameisnullowner_kindtaken from the user's own tokensame_kindinstead ofwaitingLocally all four smoke cases pass, and
tsc,oxlintandoxfmt --checkare clean for the Event Service.Agreement
No additions. The case uses 7.4, 7.5, 8.1, 8.7, 8.8, 8.10 and 8.12 as they are on
main.🤖 Generated with Claude Code