aws / aws/aws-toolkit-vscode

test/CI performance: vscode downloaded multiple times

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

Description

# Problem

Since we now run the tests in each `package/x/` separately, vscode is downloaded redundantly in our tests:

```
Running unit test suite...
Setting up VS Code test instance, version: stable
Downloading VS Code 1.91.1 from https://update.code.visualstudio.com/1.91.1/darwin-arm64/stable
Downloading VS Code (130067222B)
```

This adds time to each CI run.

# Proposal

vscode-test has a flag that allows pointing to a directory where it should be downloaded (or skipped if it already exists). Update our test runner script to specify a directory at the repo top level.

Contributor guide

Open the contributing guide

Research direction

Find the test runner script used by the separate package/x/ test runs and read how vscode-test sets up its instance. Check the vscode-test option for a shared download directory at the repository top level, then verify that repeated test runs reuse the existing VS Code download and that CI still completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
ci-cd, performance, testing-qa
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.