From 3d862271652533ac0cc05f1187a5422233c0df4d Mon Sep 17 00:00:00 2001 From: jupblb Date: Thu, 2 Jul 2026 17:58:19 +0200 Subject: [PATCH 1/2] Surface coursier errors in release-cli workflow --- .github/workflows/release-cli.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-cli.yaml b/.github/workflows/release-cli.yaml index cb6786a9..160ed1fa 100644 --- a/.github/workflows/release-cli.yaml +++ b/.github/workflows/release-cli.yaml @@ -39,16 +39,17 @@ jobs: VERSION=${VERSION#v} ARTIFACT="org.scip-code:scip-java:${VERSION}" - for attempt in {1..10}; do - if cs resolve "$ARTIFACT" >/dev/null 2>&1; then + for attempt in {1..20}; do + if cs resolve "$ARTIFACT" >/dev/null; then break fi - if [ "$attempt" -eq 10 ]; then - echo "Artifact $ARTIFACT was not resolvable after 10 attempts" >&2 + if [ "$attempt" -eq 20 ]; then + echo "Artifact $ARTIFACT was not resolvable after 20 attempts" >&2 exit 1 fi + echo "Attempt $attempt: $ARTIFACT is not resolvable yet, retrying in 30 seconds" >&2 sleep 30 done From d4d2e648c3e8fbd4da456fab06f3bb16bfe7d00a Mon Sep 17 00:00:00 2001 From: jupblb Date: Thu, 2 Jul 2026 18:07:44 +0200 Subject: [PATCH 2/2] Keep 10 retries and drop Windows launcher from release --- .github/workflows/release-cli.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-cli.yaml b/.github/workflows/release-cli.yaml index 160ed1fa..96217bc8 100644 --- a/.github/workflows/release-cli.yaml +++ b/.github/workflows/release-cli.yaml @@ -39,13 +39,13 @@ jobs: VERSION=${VERSION#v} ARTIFACT="org.scip-code:scip-java:${VERSION}" - for attempt in {1..20}; do + for attempt in {1..10}; do if cs resolve "$ARTIFACT" >/dev/null; then break fi - if [ "$attempt" -eq 20 ]; then - echo "Artifact $ARTIFACT was not resolvable after 20 attempts" >&2 + if [ "$attempt" -eq 10 ]; then + echo "Artifact $ARTIFACT was not resolvable after 10 attempts" >&2 exit 1 fi @@ -55,7 +55,6 @@ jobs: cs bootstrap \ --standalone \ - --bat=true \ -o scip-java \ "$ARTIFACT" \ --main org.scip_code.scip_java.ScipJava @@ -64,8 +63,7 @@ jobs: ./scip-java --help >/dev/null mv scip-java "scip-java-${TAG}" - mv scip-java.bat "scip-java-${TAG}.bat" - shasum -a 256 "scip-java-${TAG}" "scip-java-${TAG}.bat" > "scip-java-${TAG}.sha256" + shasum -a 256 "scip-java-${TAG}" > "scip-java-${TAG}.sha256" - name: Check for GitHub release id: release @@ -95,7 +93,6 @@ jobs: gh release upload "$TAG" \ "scip-java-${TAG}" \ - "scip-java-${TAG}.bat" \ "scip-java-${TAG}.sha256" \ --repo "scip-code/scip-java" \ --clobber