aws / aws/aws-toolkit-vscode

unreliable test: "TryChatCodeLensProvider .. outputs expected telemetry"

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

Description

## Test Details

- Name of test: `"TryChatCodeLensProvider .. outputs expected telemetry"`
- OS of failure: macos
- VSCode version of failure (minimum/insider/stable): insiders
- Link to failing run: https://github.com/aws/aws-toolkit-vscode/actions/runs/12376465119/job/34543694074?pr=6255
- Link to failing test:

## Log of Test Failure

``` 1 failing
1) TryChatCodeLensProvider
outputs expected telemetry:

AssertionError [ERR_ASSERTION]: telemetry metric 1 (of 1) not found (in the expected order): "vscode_executeCommand"
+ actual - expected

{
+ command: 'aws.appBuilderForFileExplorer.refresh',
+ source: undefined
- command: 'aws.amazonq.focusChat',
- source: 'codeLens'
}
+ expected - actual

{
- "command": "aws.appBuilderForFileExplorer.refresh"
- "source": [undefined]
+ "command": "aws.amazonq.focusChat"
+ "source": "codeLens"
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the failing test named "TryChatCodeLensProvider .. outputs expected telemetry" and inspect the linked macOS VS Code Insiders run. Reproduce the failure and trace why aws.appBuilderForFileExplorer.refresh appears instead of aws.amazonq.focusChat with source codeLens; done when the test reliably observes the expected telemetry.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.