diff --git a/.github/workflows/run-experiments-apache-samza.yml b/.github/workflows/run-experiments-apache-samza.yml index e0a8837..303d6ba 100644 --- a/.github/workflows/run-experiments-apache-samza.yml +++ b/.github/workflows/run-experiments-apache-samza.yml @@ -27,6 +27,14 @@ jobs: with: java-version: 8 distribution: "temurin" + - name: Add git hook to exclude flaky test classes + run: | + mkdir ~/git-hooks + echo -e 'echo "\nproject(\":samza-core_\$scalaSuffix\") { test { filter { excludeTestsMatching \"org.apache.samza.container.TestRunLoop\"} } }" >> build.gradle\n' >> ~/git-hooks/post-checkout + echo -e 'echo "\nproject(\":samza-kafka_\$scalaSuffix\") { test { filter { excludeTestsMatching \"org.apache.samza.system.kafka.TestKafkaSystemAdminJava\" excludeTestsMatching \"org.apache.samza.system.kafka.TestKafkaSystemFactoryJava\" } } }" >> build.gradle\n' >> ~/git-hooks/post-checkout + echo -e 'echo "\nproject(\":samza-test_\$scalaSuffix\") { test { filter { excludeTestsMatching \"org.apache.samza.storage.kv.BlobStoreStateBackendIntegrationTest\" } } }" >> build.gradle\n' >> ~/git-hooks/post-checkout + chmod +x ~/git-hooks/post-checkout + git config --global core.hooksPath ~/git-hooks - name: Download latest version of the validation scripts uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/download@actions-stable with: