Skip to content

Commit

Permalink
Skip PushGatewayIT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Dec 23, 2024
1 parent 8b4ee4a commit 231bfc6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions integration-tests/prometheus-java-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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] [<report_directory>]"
Expand Down

0 comments on commit 231bfc6

Please sign in to comment.