-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Forbid empty testing tasks #36259
Forbid empty testing tasks #36259
Conversation
Closes elastic#34820 With this change we allow for no tests being ran in randomized testing task, and forbid empty testing tasks from the testing conventions task. We will no longer have to disable the task if all tests are muted.
Pinging @elastic/es-core-infra |
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.
LGTM
@@ -773,7 +773,6 @@ class BuildPlugin implements Plugin<Project> { | |||
project.tasks.withType(RandomizedTestingTask) {task -> | |||
jvm "${project.runtimeJavaHome}/bin/java" | |||
parallelism System.getProperty('tests.jvms', project.rootProject.ext.defaultParallel) | |||
ifNoTests System.getProperty('tests.ifNoTests', 'fail') |
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.
I spent a few minutes wondering if we should change this to ignore
but I figured that removing it like this seemed right. I couldn't think of a good reason why someone might want to change this on the command line rather than rely on TestingConventionsTask
.
Closes #34820 With this change we allow for no tests being ran in randomized testing task, and forbid empty testing tasks from the testing conventions task. We will no longer have to disable the task if all tests are muted.
Reverts elastic#36259 in part to make randomized test fail if no tests are ran. This is useful when filtering tests as it's easy to make a typo and think the test ran trough successfully.
Reverts #36259 in part to make randomized test fail if no tests are ran. This is useful when filtering tests as it's easy to make a typo and think the test ran trough successfully.
Reverts #36259 in part to make randomized test fail if no tests are ran. This is useful when filtering tests as it's easy to make a typo and think the test ran trough successfully.
Closes #34820
With this change we allow for no tests being ran in randomized testing
task, and forbid empty testing tasks from the testing conventions task.
We will no longer have to disable the task if all tests are muted.