-
Notifications
You must be signed in to change notification settings - Fork 738
refactor(tests): move existing performance tests to the integ folder. #5735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/runIntegrationTests |
|
the integ test failures appear to be unrelated since they are also failing on master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file has non-perf tests in it. only the perf tests should be moved
|
For the failing integ tests performance tests, I can raise the thresholds to make them less flaky once I have the filesystem spy. I think the other failing test should be fixed by #5725 |
|
/runIntegrationTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's put this in testInteg/amazon/...test.ts. "codewhisperer" is not a name that means anything anymore.
|
WDYT about placing all the performance tests in
|
|
Yeah I think that makes total sense. If they are grouped in this way, does it make it easier to ignore them with a pattern or something? It might be nice to do that until I finish the work to count the system calls rather than relying solely on measuring their impact on system statistics implemented. |
exactly what I'm thinking :) |
|
/runIntegrationTests |
|
LGTM! Are the failing integ related to this PR? If not let's merge this! p.s. would you mind adding an item for "Performance tests" here: https://github.com/aws/aws-toolkit-vscode/blob/master/docs/TESTPLAN.md#test-categories |
|
Believe those are just the flakiness of the perf tests. Working on a PR to increase the thresholds and add file system counts to all the tests now to make these less flaky. Also, will make doc change in follow-up. |
## Problem Performance test involve running the same code 10 times, and often its demanding code. This should live with integ rather than unit tests to avoid slow down. ## Solution - Move https://github.com/aws/aws-toolkit-vscode/blob/master/packages/core/src/test/amazonqFeatureDev/prepareRepoData.test.ts into integ folder. - Move https://github.com/aws/aws-toolkit-vscode/blob/master/packages/core/src/test/codewhisperer/commands/startSecurityScan.test.ts into integ folder.
Problem
Performance test involve running the same code 10 times, and often its demanding code. This should live with integ rather than unit tests to avoid slow down.
Solution
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.