[LTP] [PATCH 4/4] ci: Skip openSUSE builds on broken repositories
Petr Vorel
pvorel@suse.cz
Fri Apr 25 17:30:45 CEST 2025
opensuse/leap:latest container repos are sometimes broken:
zypper --non-interactive install --force-resolution --no-recommends autoconf ...
...
(86/88) Installing: kernel-default-devel-6.4.0-150600.23.47.2.x86_64 [..............done]
(87/88) Installing: libopenssl-devel-3.1.4-150600.2.1.noarch [..done]
(88/88) Installing: clang-17-bp156.1.1.x86_64 [..done]
Error: Process completed with exit code 106.
Previous commit added an attempt to recover from it (which may help) but
this way we get permanent failure in Patchwork (Patchwork API does not
update results, it just adds a new result) it's better to not keep this
as a failure.
Because patchwork does not have state "skip" use state "pending" (quite
correct - patch has not been yet tested).
TODO: automatically restart jobs with "pending" state.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
.github/workflows/ci-docker-build.yml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci-docker-build.yml b/.github/workflows/ci-docker-build.yml
index b476d993c5..09eb8bb6d4 100644
--- a/.github/workflows/ci-docker-build.yml
+++ b/.github/workflows/ci-docker-build.yml
@@ -131,7 +131,15 @@ jobs:
INSTALL=${{ matrix.container }}
INSTALL="${INSTALL%%:*}"
INSTALL="${INSTALL%%/*}"
- ACTION="$VARIANT" ./ci/$INSTALL.sh
+ ACTION="$VARIANT" ./ci/$INSTALL.sh || if [ $? -eq 106 ]; then
+ echo "::warning ::Skipping job due broken repositories"
+ ./ci/tools/patchwork.sh check \
+ "${{ inputs.SERIES_ID }}" \
+ "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
+ "${{ matrix.container }}" \
+ "pending" "Skipping job due broken repositories"
+ exit 0
+ fi
if [ "$VARIANT" ]; then ./ci/$INSTALL.$VARIANT.sh; fi
- name: Compiler version
--
2.49.0
More information about the ltp
mailing list