aws / aws/aws-toolkit-vscode

unreliable test: graceful shutdown no metric emitted

Open
#6,786 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: graceful shutdown no metric emitted
- OS of failure: Linux (Integ)
- VSCode version of failure (minimum/insider/stable): stable
- Link to failing run: https://github.com/aws/aws-toolkit-vscode/commit/8b02b85f05063063d364d6921338a09c7c097556
- Link to failing test: https://github.com/aws/aws-toolkit-vscode/blob/8b02b85f05063063d364d6921338a09c7c097556/packages/core/src/test/shared/crashMonitoring.test.ts#L95-L109

## Log of Test Failure
```
AssertionError [ERR_ASSERTION]: Expected no metrics for "session_end", but some exist
at assertTelemetry (/codebuild/output/src890725234/src/github.com/aws/aws-toolkit-vscode/packages/core/src/test/testUtil.ts:336:16)
at Context. (/codebuild/output/src890725234/src/github.com/aws/aws-toolkit-vscode/packages/core/src/test/shared/crashMonitoring.test.ts:108:24)
```

## Additional Information

Contributor guide

Open the contributing guide

Research direction

Start with packages/core/src/test/shared/crashMonitoring.test.ts lines 95-109 and the failing run linked in the issue. Read assertTelemetry in packages/core/src/test/testUtil.ts around line 336, then reproduce the graceful-shutdown test on Linux. Done means the test reliably confirms that no session_end metrics are emitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, typescript, vscode
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.