Skip to content

Conversation

@Hweinstock
Copy link
Contributor

@Hweinstock Hweinstock commented Sep 27, 2024

Problem

continuation of reliability work

Solution

buildIndex in src/amazonq/lsp/lspController.ts captures many potentially high risk paths in a single function, such as some I/O operations and searching for project directories.

Thresholds determined by running in CI a few times and multiplying the observed median by 1.5 to 2.0 depending on variance.

The "many files" test does 250 files w/ 10 bytes each. The "large files" does 10 files w/ 1000 bytes each. These values were chosen to avoid flakiness in CI.

Included in this PR is removing the use of fs-extra in src/amazonq/lsp/lspController.ts


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Hweinstock
Copy link
Contributor Author

/runIntegrationTest

@Hweinstock Hweinstock marked this pull request as ready for review October 2, 2024 14:22
@Hweinstock Hweinstock requested a review from a team as a code owner October 2, 2024 14:22
@Hweinstock Hweinstock merged commit af68124 into aws:master Oct 4, 2024
9 of 10 checks passed
@Hweinstock Hweinstock deleted the pTests/buildIndex branch October 4, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants