aws / aws/aws-toolkit-vscode

unreliable test:Test how this codebase uses the CodeCatalyst API

Open
#6,959 0 comments 0 reactions 0 assignees View on GitHub
tests-ci-cd
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Test Details

- Name of test: Test how this codebase uses the CodeCatalyst API "before all" hook in "Test how this codebase uses the CodeCatalyst API"
- OS of failure: Linux (E2E)
- VSCode version of failure (minimum/insider/stable):
- Link to failing run: https://github.com/aws/aws-toolkit-vscode/pull/6958/commits/8e2eb23e0dbeb34dfd7275b650f2086a8d042c3b
- Link to failing test: https://github.com/aws/aws-toolkit-vscode/blob/a96a73e7ae55d7149684141b066f1b8b8413322f/packages/core/src/testE2E/codecatalyst/client.test.ts#L114

## Log of Test Failure
```

Error: Failed to login due to captcha at invokeLambda (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/test/setupUtil.ts:181:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object. (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/test/setupUtil.ts:237:21) at async openSsoUrl (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/auth/sso/model.ts:145:24) at async openBrowserAndWaitUntilComplete (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/auth/sso/ssoAccessTokenProvider.ts:464:19) at async DeviceFlowAuthorization.authorize (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/auth/sso/ssoAccessTokenProvider.ts:482:33) at async DeviceFlowAuthorization.runFlow (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/auth/sso/ssoAccessTokenProvider.ts:142:28) at async DeviceFlowAuthorization.createToken (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/auth/sso/ssoAccessTokenProvider.ts:125:24) at async Auth.createConnection (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/auth/auth.ts:327:51) at async useCodeCatalystSsoConnection (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/testE2E/codecatalyst/client.test.ts:444:49) at async createTestCodeCatalystClient (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/testE2E/codecatalyst/client.test.ts:431:22) at async /codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/testE2E/codecatalyst/client.test.ts:106:22 at async Context. (/codebuild/output/src3377653252/src/github.com/aws/aws-toolkit-vscode/packages/core/src/testE2E/codecatalyst/client.test.ts:102:9)
--

```

## Additional Information

Contributor guide

Open the contributing guide

Research direction

Start with packages/core/src/testE2E/codecatalyst/client.test.ts around the before-all hook and the createTestCodeCatalystClient and useCodeCatalystSsoConnection entry points. Read the failing setup paths in packages/core/src/test/setupUtil.ts and packages/core/src/auth/sso/*.ts, then rerun the linked E2E test. Done means the test no longer fails during CodeCatalyst authentication because of the reported captcha error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
authentication, cloud, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.