From c13a7028a5c867612c4180be1c4a0996a590eb5d Mon Sep 17 00:00:00 2001 From: Big Andy <8012398+big-andy-coates@users.noreply.github.com> Date: Wed, 4 Oct 2023 17:03:15 +0100 Subject: [PATCH] Get git clone working from workflow cloning from unauthenticated account. --- .github/workflows/run-func-test.yml | 2 +- .github/workflows/run-perf-test.yml | 2 +- build.gradle.kts | 8 +++----- .../kafka/test/perf/testsuite/JsonTestSuiteMain.java | 5 +++++ 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-func-test.yml b/.github/workflows/run-func-test.yml index 1837a3c..4d9a183 100644 --- a/.github/workflows/run-func-test.yml +++ b/.github/workflows/run-func-test.yml @@ -24,4 +24,4 @@ jobs: with: gradle-home-cache-cleanup: true - name: Run - run: ./gradlew runFunctionalTests \ No newline at end of file + run: ./gradlew -q runFunctionalTests >> $GITHUB_STEP_SUMMARY \ No newline at end of file diff --git a/.github/workflows/run-perf-test.yml b/.github/workflows/run-perf-test.yml index 52ceaa2..b6ffedc 100644 --- a/.github/workflows/run-perf-test.yml +++ b/.github/workflows/run-perf-test.yml @@ -24,4 +24,4 @@ jobs: with: gradle-home-cache-cleanup: true - name: Run - run: ./gradlew runBenchmarks \ No newline at end of file + run: ./gradlew -q runBenchmarks >> $GITHUB_STEP_SUMMARY \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index fe968d6..40cb8f1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -71,7 +71,7 @@ dependencies { implementation("org.leadpony.justify:justify:3.1.0") - implementation("org.apache.logging.log4j:log4j-core:$log4jVersion"); + implementation("org.apache.logging.log4j:log4j-core:$log4jVersion") runtimeOnly("org.apache.logging.log4j:log4j-slf4j2-impl:$log4jVersion") testImplementation("org.creekservice:creek-test-hamcrest:$creekVersion") @@ -86,7 +86,6 @@ dependencies { testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion") } - tasks.withType { options.compilerArgs.add("-Xlint:all,-serial,-requires-automatic,-requires-transitive-automatic,-module,-processing") } @@ -101,7 +100,7 @@ val cloneTask = tasks.register("clone-json-schema-test-suite") { doLast { org.ajoberstar.grgit.Grgit.clone { dir = jsonSchemaTestSuiteDir.get().asFile - uri = "git@github.com:json-schema-org/JSON-Schema-Test-Suite.git" + uri = "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git" } } } @@ -110,7 +109,6 @@ val pullTask = tasks.register("pull-json-schema-test-suite") { dependsOn(cloneTask) doLast { - println("pulling.........") org.ajoberstar.grgit.Grgit.open { dir = jsonSchemaTestSuiteDir.get().asFile }.pull() @@ -120,7 +118,7 @@ val pullTask = tasks.register("pull-json-schema-test-suite") { val runFunctionalTests = tasks.register("runFunctionalTests") { classpath = sourceSets.main.get().runtimeClasspath mainClass.set("org.creekservice.kafka.test.perf.testsuite.JsonTestSuiteMain") - args = listOf(jsonSchemaTestSuiteDir.get().asFile.absolutePath); + args = listOf(jsonSchemaTestSuiteDir.get().asFile.absolutePath) dependsOn(pullTask) } diff --git a/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonTestSuiteMain.java b/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonTestSuiteMain.java index c5e8bd8..2e79daa 100644 --- a/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonTestSuiteMain.java +++ b/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonTestSuiteMain.java @@ -37,9 +37,14 @@ import org.creekservice.kafka.test.perf.testsuite.JsonSchemaTestSuite.TestPredicate; import org.creekservice.kafka.test.perf.testsuite.output.PerDraftSummary; import org.creekservice.kafka.test.perf.testsuite.output.Summary; +import org.creekservice.kafka.test.perf.util.Logging; public final class JsonTestSuiteMain { + static { + Logging.disable(); + } + private static final List IMPLS = List.of( new EveritSerde(),