arrow-cpp: retry failed tests twice

If upstream believes it's an acceptable mitigation for flakiness, we
should follow their lead.
This commit is contained in:
Ihar Hrachyshka
2026-08-15 13:54:46 -04:00
parent 07e54f9694
commit b0df023f6a

View File

@@ -329,7 +329,16 @@ stdenv.mkDerivation (finalAttrs: {
''
runHook preInstallCheck
ctest -L unittest --exclude-regex '^(${lib.concatStringsSep "|" disabledTests})$'
ctestArgs=(
-L unittest
--exclude-regex '^(${lib.concatStringsSep "|" disabledTests})$'
)
# Match ci/scripts/cpp_test.sh to fight flakiness.
# https://github.com/apache/arrow/issues/40121
ctestArgs+=(--repeat until-pass:3)
ctest "''${ctestArgs[@]}"
runHook postInstallCheck
'';