From 231bfc6890ba273d147bd52bc56391b24f1e0f23 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Mon, 23 Dec 2024 22:23:20 +0100 Subject: [PATCH] Skip `PushGatewayIT` tests --- integration-tests/prometheus-java-client.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/integration-tests/prometheus-java-client.sh b/integration-tests/prometheus-java-client.sh index 9bbb333950..fb340c7e66 100755 --- a/integration-tests/prometheus-java-client.sh +++ b/integration-tests/prometheus-java-client.sh @@ -11,8 +11,13 @@ additional_source_directories='' shared_error_prone_flags='' patch_error_prone_flags='' validation_error_prone_flags='' -# XXX: Drop these flags once prometheus/client_java#1242 is resolved. -validation_build_flags='-Dtest=!SlidingWindowTest#rotate -Dsurefire.failIfNoSpecifiedTests=false' +# Validation skips some tests: +# - Starting from a clean repository, the `PushGatewayIT` tests reference a JAR +# file that is created only after test completion, causing the tests to fail. +# - The `SlidingWindowTest#rotate` test is flaky. +# XXX: Drop the `SlidingWindowTest` exclusion once prometheus/client_java#1242 +# is resolved. +validation_build_flags='-Dtest=!PushGatewayIT,!SlidingWindowTest#rotate -Dsurefire.failIfNoSpecifiedTests=false' if [ "${#}" -gt 2 ] || ([ "${#}" = 2 ] && [ "${1:---sync}" != '--sync' ]); then >&2 echo "Usage: ${0} [--sync] []"