-
Notifications
You must be signed in to change notification settings - Fork 629
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
Use cfg_attr
to ignore expensive tests
#6032
Merged
Merged
Commits on Jan 10, 2022
-
Use
cfg_attr
to ignore expensive testsRather than using `cfg` to not compile expensive tests, use `cfg_attr` to conditionally mark such tests as ignored. In other words, instead of writing: #[cfg(feature = "expensive_tests")] #[test] fn test_clear_old_data_too_many_heights() { // ... } write: #[test] #[cfg_attr(not(feature = "expensive_tests"), ignore)] fn test_clear_old_data_too_many_heights() { // ... } With this change, expensive tests will always be built which means that i) any code changes breaking them will be caught by CI (rather than having to wait for a nightly run) and ii) code used by expensive tests only is no longer unused when `expensive_tests` feature is not enabled (which means fewer `#[cfg(feature = "expensive_tests")]` directives sprinkled throughout code). Since we no longer mark whole modules as compiled only if the feature is enabled, this change also means that each individual test needs to be marked individually (rather than being able to mark whole module). This makes it more obvious which tests are expensive and which aren’t (since the marking is right at the test definition site) and simplifies `check_nightly.py` script. Issue: #4490
Configuration menu - View commit details
-
Copy full SHA for c9faa37 - Browse repository at this point
Copy the full SHA c9faa37View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6f482f - Browse repository at this point
Copy the full SHA e6f482fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dd75bf - Browse repository at this point
Copy the full SHA 7dd75bfView commit details
Commits on Jan 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 33d06dd - Browse repository at this point
Copy the full SHA 33d06ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 262a619 - Browse repository at this point
Copy the full SHA 262a619View commit details
Commits on Jan 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3d7ec46 - Browse repository at this point
Copy the full SHA 3d7ec46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a16455 - Browse repository at this point
Copy the full SHA 3a16455View commit details -
Configuration menu - View commit details
-
Copy full SHA for d38ea41 - Browse repository at this point
Copy the full SHA d38ea41View commit details -
Configuration menu - View commit details
-
Copy full SHA for cedff6b - Browse repository at this point
Copy the full SHA cedff6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 558ff4d - Browse repository at this point
Copy the full SHA 558ff4dView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.