Skip to content

fix(test): get integration tests passing after the dependency bump - #14

Merged
juicycleff merged 2 commits into
mainfrom
fix/integration-after-dep-bump
Nov 15, 2026
Merged

juicycleff merged 2 commits into
mainfrom
fix/integration-after-dep-bump

Conversation

@juicycleff

@juicycleff juicycleff commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

The dependency upgrade in b6cc51f turned several integration shards red. There are three separate causes, and each fix is small.

Invitations need a verified address (authsome 1.12.0)

authsome 1.12.0 accepts an invitation only once the invitee has verified the invited address. Otherwise it answers 404, the same answer an unknown token gets. The tests sign people up with email verification off, so every accept failed (accept: 404 across the API key, agent, chat, capacity, release-prep, retirement, teams and setup tests).

We're keeping authsome's rule as the product behaviour. A new verifyEmail(t, dsn, email) helper sets email_verified before each accept. It's called directly and inside the shared helpers (joinAs, teamsWorld.join/joinAs, ordinaryMember). teamsWorld and capacityAPI gain a dsn field for it.

Product impact: on an instance with identity.require_email_verification off (the default), an invitee who signs up can't accept from the dashboard until their address is verified.

Passkey sign-in asked for a code (go-webauthn 0.18)

TestAccount_twoStepAndPasskeys failed with 403 mfa_required. go-webauthn 0.18 takes "user verified" from the stored credential, which authsome 1.12.0 didn't store, so no passkey counted as a second factor. authsome 1.12.1 (xraph/authsome#179) stores the flags and reads UV from each sign-in's assertion. This PR moves to it, along with dispatch 1.9.7, and go-webauthn resolves to 0.18.2. authsome 1.12.1 adds a passkey migration, a nullable flags column.

Cloud Map namespace creation failed (servicediscovery 1.50.0)

TestCLI_planAndApproveADeploymentFromTheCommandLine failed with GetOperationInput.OperationId missing. servicediscovery 1.50.0 defaults to Smithy RPC v2 CBOR, and the fake AWS in ecs_test.go only speaks JSON 1.1, so the CreateHttpNamespace reply came back empty. This pins it to v1.49.12, as was already done for codebuild. Real Cloud Map supports both protocols, so production is unaffected either way.

Testing

All of these ran locally against Postgres 17 without -race:

  • Every test in the files that accept invitations or use the join helpers: 95 tests pass. TestRedTeamLive skips because it needs a live key.
  • TestAccount_twoStepAndPasskeys and TestCLI_planAndApproveADeploymentFromTheCommandLine pass.
  • The tests that failed in the later CI logs pass: TestReleasePrep_allGreenPromotes, TestReleasePrep_developerAsksAPerson, TestRetirementAPIIsScopedAndVerifiesBytesBeforeRetry and TestSetup_cloudSignInOffer.

After the authsome 1.12.1 and dispatch 1.9.7 bump:

  • go test ./... passes.
  • 134 integration tests pass: the set above, plus 49 dispatch, cron, scheduler, retry and passkey tests. The only skips are environment-gated: a live AI key, a kind cluster, or a native Postgres instance.

I didn't run the full 1054-test suite locally; CI covers that.

The dependency upgrade in b6cc51f broke three things the integration
suite caught.

authsome 1.12.0 accepts an invitation only once the invitee has verified
the invited address, and answers 404 otherwise. The tests sign people up
with verification off, so every accept failed. A verifyEmail helper marks
the address verified before each accept, directly and in the shared join
helpers.

go-webauthn 0.18 takes "user verified" from the stored credential, which
authsome 1.12.0 doesn't store, so every passkey sign-in asked for a code.
Pin go-webauthn to v0.17.4, the version authsome 1.12.0 is built against,
until xraph/authsome#179 is released.

servicediscovery 1.50.0 speaks Smithy RPC v2 CBOR by default, which the
integration fake AWS doesn't, so creating a Cloud Map namespace failed.
Pin it to v1.49.12, as was done for codebuild.
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loomplane-docs Ready Ready Preview Nov 15, 2026 12:48am UTC

Request Review

@juicycleff
juicycleff merged commit f5cb10d into main Nov 15, 2026
30 checks passed
@juicycleff
juicycleff deleted the fix/integration-after-dep-bump branch November 15, 2026 01:21
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