From 28d3544269ba0762d39e8e31302791a02ed7f551 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Amiel Date: Fri, 12 Dec 2025 13:23:17 +0100 Subject: [PATCH] Patch flaky test with retry, on HTTP/3 with google.com. --- .../http_version/http_version_3_option.hurl | 15 +++++++++++++ .../http_version/http_version_3_option.sh | 21 ------------------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/integration/hurl/tests_ok/http_version/http_version_3_option.hurl b/integration/hurl/tests_ok/http_version/http_version_3_option.hurl index b45311292c..f792cf7436 100644 --- a/integration/hurl/tests_ok/http_version/http_version_3_option.hurl +++ b/integration/hurl/tests_ok/http_version/http_version_3_option.hurl @@ -6,6 +6,21 @@ HTTP/2 * HEAD https://google.com [Options] http3: true +# We put retry here because we have sporadic connection resets (see ) +# 13/08/2025: same error on Debian Trixie +# 17/02/2025: error on Arch Linux +# The GitHub runner are supporting HTTP/3 but we get this error: +# ```shell +# expected: 0 actual:3 +# error: HTTP connection +# --> tests_ok/http_version_3_option.hurl:6:6 +# | +# 6 | HEAD https://google.com +# | ^^^^^^^^^^^^^^^^^^ (95) HTTP/3 stream 0 reset by server +# | +# ``` +retry: 10 +retry-interval: 1s HTTP/3 * diff --git a/integration/hurl/tests_ok/http_version/http_version_3_option.sh b/integration/hurl/tests_ok/http_version/http_version_3_option.sh index 6284292ea5..6864a4f270 100755 --- a/integration/hurl/tests_ok/http_version/http_version_3_option.sh +++ b/integration/hurl/tests_ok/http_version/http_version_3_option.sh @@ -6,27 +6,6 @@ hurl --version | grep Features | grep -q HTTP3 if [ $? -eq 1 ]; then exit 255 fi - -# 13/08/2025: same error on Debian Trixie -# 17/02/2025: we deactivate this test on Arch Linux -# The GitHub runner are supporting HTTP/3 but we get this error: -# ```shell -# expected: 0 actual:3 -# error: HTTP connection -# --> tests_ok/http_version_3_option.hurl:6:6 -# | -# 6 | HEAD https://google.com -# | ^^^^^^^^^^^^^^^^^^ (95) HTTP/3 stream 0 reset by server -# | -# ``` -if [ -f /etc/os-release ]; then - if grep -q 'NAME="Arch Linux"' /etc/os-release; then - exit 255 - fi - if grep -q 'NAME="Debian GNU/Linux"' /etc/os-release; then - exit 255 - fi -fi set -Eeuo pipefail hurl tests_ok/http_version/http_version_3_option.hurl