From 7be3859dfe9b081817c510bebe1ffa47e2c53c35 Mon Sep 17 00:00:00 2001 From: Sally MacFarlane Date: Tue, 6 Feb 2024 12:52:02 +1000 Subject: [PATCH] only run non-privacy ATs (#6526) Signed-off-by: Sally MacFarlane --- .github/workflows/acceptance-tests.yml | 2 +- acceptance-tests/tests/build.gradle | 27 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index b94218e6087..15bdfa6eb3e 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -90,7 +90,7 @@ jobs: #then drop file extension, then insert --tests option between each. run: cat testList.txt | sed -e 's@acceptance-tests/tests/src/test/java/@--tests\ @g;s@/@.@g;s/\.java//g' > gradleArgs.txt - name: run acceptance tests - run: ./gradlew acceptanceTest `cat gradleArgs.txt` -Dorg.gradle.parallel=true -Dorg.gradle.caching=true + run: ./gradlew acceptanceTestNotPrivacy `cat gradleArgs.txt` -Dorg.gradle.parallel=true -Dorg.gradle.caching=true - name: cleanup tempfiles run: rm testList.txt gradleArgs.txt - name: Upload Acceptance Test Results diff --git a/acceptance-tests/tests/build.gradle b/acceptance-tests/tests/build.gradle index b20b96b2735..668463383b7 100644 --- a/acceptance-tests/tests/build.gradle +++ b/acceptance-tests/tests/build.gradle @@ -155,6 +155,33 @@ task acceptanceTestMainnet(type: Test) { doFirst { mkdir "${buildDir}/jvmErrorLogs" } } +task acceptanceTestNotPrivacy(type: Test) { + inputs.property "integration.date", LocalTime.now() // so it runs at every invocation + exclude '**/privacy/**' + + useJUnitPlatform {} + + dependsOn(rootProject.installDist) + setSystemProperties(test.getSystemProperties()) + systemProperty 'acctests.runBesuAsProcess', 'true' + systemProperty 'java.security.properties', "${buildDir}/resources/test/acceptanceTesting.security" + mustRunAfter rootProject.subprojects*.test + description = 'Runs MAINNET Besu acceptance tests (excluding privacy since they run nightly, and are being refactored).' + group = 'verification' + + jvmArgs "-XX:ErrorFile=${buildDir}/jvmErrorLogs/java_err_pid%p.log" + + testLogging { + exceptionFormat = 'full' + showStackTraces = true + showStandardStreams = Boolean.getBoolean('acctests.showStandardStreams') + showExceptions = true + showCauses = true + } + + doFirst { mkdir "${buildDir}/jvmErrorLogs" } +} + task acceptanceTestCliqueBft(type: Test) { inputs.property "integration.date", LocalTime.now() // so it runs at every invocation include '**/bft/**'