-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logictest: improve non-metamorphic test handling
This commit refactors how non-metamorphic logic tests are handled. Previously, if a logic test file had `!metamorphic` directive, then they would be skipped when the build happened to be metamorphic (which occurs in 80% of the time). However, this led to multiple flakes when PRs were merged with green CI, but they didn't update the corresponding tests (this happened because those tests were skipped). Looking over all of those issues, we see that they are due to a couple of randomizations - of `mutations.MaxBatchSize` and `row.kvBatchSize`, so this commit adds a testing knob to override both of them. Now, for every config and for every logic test file path we remember whether non-metamorphic directive was specified and possibly disable the randomizations of `mutations.MaxBatchSize` and `row.kvBatchSize`. This required a bit of plumbing, but it looks acceptable. Release note: None
- Loading branch information
1 parent
dd1976d
commit 8f1bb31
Showing
25 changed files
with
146 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.