tests: python "codelens" integ test failing
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
Integ tests have been consistently failing since https://github.com/aws/aws-toolkit-vscode/pull/4151 (could be unrelated to that PR, coincidental with an upstream vscode/extension change).
```
4 failing
1) SAM Integration Tests
SAM runtime: python 3.10 (ZIP)
Starting with a newly created python 3.10 (ZIP) SAM Application...
produces an Add Debug Configuration codelens:
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert_1.default.ok(codeLenses && codeLenses.length === 2)
at Context. (src/testInteg/sam.test.ts:516:28)
2) SAM Integration Tests
SAM runtime: python 3.11 (ZIP)
Starting with a newly created python 3.11 (ZIP) SAM Application...
produces an Add Debug Configuration codelens:
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert_1.default.ok(codeLenses && codeLenses.length === 2)
at Context. (src/testInteg/sam.test.ts:516:28)
3) SAM Integration Tests
SAM runtime: python 3.10 (ZIP)
Starting with a newly created python 3.10 (ZIP) SAM Application...
produces an Add Debug Configuration codelens:
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert_1.default.ok(codeLenses && codeLenses.length === 2)
at Context. (src/testInteg/sam.test.ts:516:28)
4) SAM Integration Tests
SAM runtime: python 3.11 (ZIP)
Starting with a newly created python 3.11 (ZIP) SAM Application...
produces an Add Debug Configuration codelens:
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert_1.default.ok(codeLenses && codeLenses.length === 2)
at Context. (src/testInteg/sam.test.ts:516:28)
```
Contributor guide
Research direction
Start at src/testInteg/sam.test.ts:516 and run the SAM integration tests for Python 3.10 and 3.11 ZIP applications. Investigate why the codelens result is not exactly two, including the timing with PR 4151 and possible upstream VS Code or extension changes. Done means these integration tests pass with the expected codelens count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python, typescript, vscode
- Domain
- devtools, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100