Repository navigation
fix(test): get integration tests passing after the dependency bump - #14
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
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: 404across 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 setsemail_verifiedbefore each accept. It's called directly and inside the shared helpers (joinAs,teamsWorld.join/joinAs,ordinaryMember).teamsWorldandcapacityAPIgain adsnfield for it.Product impact: on an instance with
identity.require_email_verificationoff (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_twoStepAndPasskeysfailed with403 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 nullableflagscolumn.Cloud Map namespace creation failed (servicediscovery 1.50.0)
TestCLI_planAndApproveADeploymentFromTheCommandLinefailed withGetOperationInput.OperationIdmissing. servicediscovery 1.50.0 defaults to Smithy RPC v2 CBOR, and the fake AWS inecs_test.goonly speaks JSON 1.1, so theCreateHttpNamespacereply 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:TestRedTeamLiveskips because it needs a live key.TestAccount_twoStepAndPasskeysandTestCLI_planAndApproveADeploymentFromTheCommandLinepass.TestReleasePrep_allGreenPromotes,TestReleasePrep_developerAsksAPerson,TestRetirementAPIIsScopedAndVerifiesBytesBeforeRetryandTestSetup_cloudSignInOffer.After the authsome 1.12.1 and dispatch 1.9.7 bump:
go test ./...passes.I didn't run the full 1054-test suite locally; CI covers that.