-
Notifications
You must be signed in to change notification settings - Fork 0
Closed as not planned
Labels
developmentStandard developmentStandard developmentr&d:polykey:supporting activitySupporting core activitySupporting core activity
Description
Specification
Once the tests get to a certain size, we really want to only run the tests that have been changed by the files/commits.
Integration tests will still run all the tests. That is tests on staging branch would run through everything, but during feature commits, we can reduce cost by only running tests that have been affected by the changes.
Jest has some ability to do this:
- https://stackoverflow.com/questions/67008800/jest-is-there-a-solution-to-run-tests-only-for-changed-impacted-files
- https://suncommander.medium.com/run-jest-for-unit-tests-of-modified-files-only-e39b7b176b1b
We could locally override this with a special commit [ci test] label that we can program ourselves.
Additional context
- https://stackoverflow.com/questions/67008800/jest-is-there-a-solution-to-run-tests-only-for-changed-impacted-files
- https://suncommander.medium.com/run-jest-for-unit-tests-of-modified-files-only-e39b7b176b1b
- MatrixAI/Orchestrator#25 - also relevant for benchmarking and profiling, but these are a little different
Tasks
- ...
- ...
- ...
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentr&d:polykey:supporting activitySupporting core activitySupporting core activity