Skip to content

Replace usages RandomizedTestingTask with built-in Gradle Test #40978

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

Merged
merged 49 commits into from
Apr 8, 2019

Conversation

mark-vieira
Copy link
Contributor

This is a resubmission of #40564 after it was discovered that PR caused memory issues in CI. That PR was reverted so I am creating a new PR with fixes.

This commit puts a workaround in place for our existing test convention
enforcement. The full-cluster-restart tests here are unique in that they
include another test projects source in order to extend the test
classes. The test conventions task isn't aware of this an fails due to
these tests being excluded, but not run by any other task.

We'll soon want to ditch the hack for a better method for sharing this
kind of logic across projects anyhow, as this kind of thing won't work
with newer versions of IntelliJ.
# Conflicts:
#	buildSrc/src/main/java/org/elasticsearch/gradle/testfixtures/TestFixturesPlugin.java
#	plugins/repository-hdfs/build.gradle
#	test/fixtures/hdfs-fixture/build.gradle
#	test/fixtures/krb5kdc-fixture/build.gradle
#	x-pack/qa/full-cluster-restart/build.gradle
#	x-pack/qa/rolling-upgrade/build.gradle
# Conflicts:
#	buildSrc/src/main/java/org/elasticsearch/gradle/testfixtures/TestFixturesPlugin.java
#	test/fixtures/hdfs-fixture/build.gradle
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@mark-vieira mark-vieira merged commit 323f312 into elastic:master Apr 8, 2019
mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Apr 9, 2019
…ic#40978)

This commit replaces the existing RandomizedTestingTask and supporting code with Gradle's built-in JUnit support via the Test task type. Additionally, the previous workaround to disable all tasks named "test" and create new unit testing tasks named "unitTest" has been removed such that the "test" task now runs unit tests as per the normal Gradle Java plugin conventions.

(cherry picked from commit 323f312)
mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Apr 9, 2019
…ic#40978)

This commit replaces the existing RandomizedTestingTask and supporting code with Gradle's built-in JUnit support via the Test task type. Additionally, the previous workaround to disable all tasks named "test" and create new unit testing tasks named "unitTest" has been removed such that the "test" task now runs unit tests as per the normal Gradle Java plugin conventions.

(cherry picked from commit 323f312)
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Apr 9, 2019
* master:
  Use more targeted muting of failing SQL spec tests
  Mute failing SQL spec suites
  Mute testRecoverMissingAnalyzer
  [DOCS] Add notable-breaking-changes tags (elastic#40990)
  Replace usages RandomizedTestingTask with built-in Gradle Test (elastic#40978)
mark-vieira added a commit that referenced this pull request Apr 9, 2019
…Test (#40978) (#40993)

* Replace usages RandomizedTestingTask with built-in Gradle Test (#40978)

This commit replaces the existing RandomizedTestingTask and supporting code with Gradle's built-in JUnit support via the Test task type. Additionally, the previous workaround to disable all tasks named "test" and create new unit testing tasks named "unitTest" has been removed such that the "test" task now runs unit tests as per the normal Gradle Java plugin conventions.

(cherry picked from commit 323f312)

* Fix forking JVM runner

* Don't bump shadow plugin version
mark-vieira added a commit that referenced this pull request Apr 9, 2019
… (#40995)

This commit replaces the existing RandomizedTestingTask and supporting code with Gradle's built-in JUnit support via the Test task type. Additionally, the previous workaround to disable all tasks named "test" and create new unit testing tasks named "unitTest" has been removed such that the "test" task now runs unit tests as per the normal Gradle Java plugin conventions.

(cherry picked from commit 323f312)
@mark-vieira mark-vieira deleted the gradle-test-runner branch April 17, 2019 23:49
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
…ic#40978)

This commit replaces the existing RandomizedTestingTask and supporting code with Gradle's built-in JUnit support via the Test task type. Additionally, the previous workaround to disable all tasks named "test" and create new unit testing tasks named "unitTest" has been removed such that the "test" task now runs unit tests as per the normal Gradle Java plugin conventions.
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v7.0.0 v7.2.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants