From 250d7cb6c8281848d20dabd49ddeebd65aea0f05 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Thu, 11 Dec 2025 18:42:00 +0100 Subject: [PATCH 1/7] ci: release orchestration workflow --- .github/workflows/release.yml | 203 ++++++++++++++++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000000..0d377bddc79 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,203 @@ +name: Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version to release (e.g., v2.99.0-rc1 or v2.99.0)' + required: true + type: string + +jobs: + parse-validate-version: + runs-on: ubuntu-latest + outputs: + version: ${{ steps.parse-validate.outputs.version }} + major_minor: ${{ steps.parse-validate.outputs.major_minor }} + release_branch: ${{ steps.parse-validate.outputs.release_branch }} + is_first_rc: ${{ steps.parse-validate.outputs.is_first_rc }} + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 # needed to fetch tags and branches + + - name: Parse and validate version + id: parse-validate + env: + GH_TOKEN: ${{ github.token }} + run: .github/utils/parse_validate_version.sh "${{ inputs.version }}" + + branch-off: + if: needs.parse-validate-version.outputs.is_first_rc == 'true' + needs: parse-validate-version + uses: ./.github/workflows/branch_off.yml + # https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows#passing-secrets-to-nested-workflows + secrets: inherit + + create-release-tag: + needs: ["parse-validate-version", "branch-off"] + if: always() && needs.parse-validate-version.result == 'success' && needs.branch-off.result != 'failure' + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + # needed to fetch tags and branches + fetch-depth: 0 + # use this token so the created tag triggers workflows (does not happen with the default github.token) + token: ${{ secrets.HAYSTACK_BOT_TOKEN }} + + - name: Update VERSION.txt and create tag + env: + GITHUB_TOKEN: ${{ secrets.HAYSTACK_BOT_TOKEN }} + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + git checkout ${{ needs.parse-validate-version.outputs.release_branch }} + git pull origin ${{ needs.parse-validate-version.outputs.release_branch }} + + echo "${{ needs.parse-validate-version.outputs.version }}" > VERSION.txt + git add VERSION.txt + git commit -m "bump version to ${{ needs.parse-validate-version.outputs.version }}" + git push origin ${{ needs.parse-validate-version.outputs.release_branch }} + + TAG="v${{ needs.parse-validate-version.outputs.version }}" + git tag -m "$TAG" "$TAG" + git push origin "$TAG" + + check-artifacts: + needs: ["parse-validate-version", "create-release-tag"] + if: always() && needs.parse-validate-version.result == 'success' && needs.create-release-tag.result == 'success' + runs-on: ubuntu-latest + outputs: + github_url: ${{ steps.set-outputs.outputs.github_url }} + pypi_url: ${{ steps.set-outputs.outputs.pypi_url }} + docker_url: ${{ steps.set-outputs.outputs.docker_url }} + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ needs.parse-validate-version.outputs.version }} + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 # needed to fetch tags + + - name: Wait for release workflows + run: | + .github/utils/wait_for_workflows.sh "v${{ env.VERSION }}" \ + "Project release on PyPi" \ + "Project release on Github" \ + "Docker image release" + + - name: Check artifacts + run: | + check() { + for _ in {1..5}; do curl -sf "$2" > /dev/null && echo "โœ… $1" && return 0; sleep 30; done + echo "โŒ $1 not found" && return 1 + } + check "GitHub Release" "https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ env.VERSION }}" + check "PyPI package" "https://pypi.org/pypi/haystack-ai/${{ env.VERSION }}/json" + check "Docker image" "https://hub.docker.com/v2/repositories/deepset/haystack/tags/base-v${{ env.VERSION }}" + + - name: Set artifact URLs + id: set-outputs + run: | + { + echo "github_url=https://github.com/${{ github.repository }}/releases/tag/v${{ env.VERSION }}" + echo "pypi_url=https://pypi.org/project/haystack-ai/${{ env.VERSION }}/" + echo "docker_url=https://hub.docker.com/r/deepset/haystack/tags?name=base-v${{ env.VERSION }}" + } >> "$GITHUB_OUTPUT" + + notify: + needs: ["parse-validate-version", "branch-off", "create-release-tag", "check-artifacts"] + if: always() + runs-on: ubuntu-latest + steps: + - name: Calculate alert type and message + id: calculator + env: + VERSION: ${{ inputs.version }} + GH_TOKEN: ${{ github.token }} + run: | + RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + + if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then + { + echo "alert_type=error" + echo "title=Release ${VERSION} failed" + echo "event_text=Release ${VERSION} failed. Check workflow run for details: ${RUN_URL}" + } >> "$GITHUB_OUTPUT" + exit 0 + fi + + { + echo "alert_type=success" + echo "title=Release ${VERSION} completed successfully" + [[ "${VERSION}" == *"-rc"* ]] && echo "released_rc=true" + } >> "$GITHUB_OUTPUT" + + TXT="Release ${VERSION} completed successfully\n" + TXT+="\n๐Ÿ“ฆ Artifacts:\n" + TXT+="- Release notes (GitHub): ${{ needs.check-artifacts.outputs.github_url }}\n" + TXT+="- PyPI: ${{ needs.check-artifacts.outputs.pypi_url }}\n" + TXT+="- Docker: ${{ needs.check-artifacts.outputs.docker_url }}\n" + + # For RCs, include link to the Tests workflow run + if [[ "${VERSION}" == *"-rc"* ]]; then + COMMIT_SHA=$(gh api "repos/${{ github.repository }}/commits/${VERSION}" --jq '.sha' 2>/dev/null || echo "") + if [[ -n "${COMMIT_SHA}" ]]; then + TESTS_RUN=$(gh api "repos/${{ github.repository }}/actions/runs?head_sha=${COMMIT_SHA}" \ + --jq '.workflow_runs[] | select(.name == "Tests") | .html_url' 2>/dev/null | head -1 || echo "") + if [[ -n "${TESTS_RUN}" ]]; then + TXT+="\n๐Ÿงช Tests: ${TESTS_RUN}\n" + fi + fi + fi + + # For first RC, include the PRs to merge from branch-off + if [[ "${{ needs.parse-validate-version.outputs.is_first_rc }}" == "true" ]]; then + TXT+="\n๐Ÿ“‹ PRs to merge:\n" + TXT+="- Bump unstable version and create unstable docs: ${{ needs.branch-off.outputs.bump_version_pr_url }}\n" + fi + + # For final minor releases (vX.Y.0), include the docs promotion PR + if [[ "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.0$ ]]; then + PROMOTE_DOCS_PR_URL=$(gh pr list --repo "${{ github.repository }}" \ + --head "promote-unstable-docs-${{ needs.parse-validate-version.outputs.major_minor }}" --json url \ + --jq '.[0].url' 2>/dev/null || echo "") + if [[ -n "${PROMOTE_DOCS_PR_URL}" ]]; then + TXT+="\n๐Ÿ“‹ PRs to merge:\n" + TXT+="- Promote unstable docs: ${PROMOTE_DOCS_PR_URL}\n" + fi + fi + + # For final releases (not RCs), include info about pushing release notes to website + if [[ "${VERSION}" != *"-rc"* ]]; then + TXT+="\n๐Ÿ“ After refining and finalizing release notes, push them to Haystack website:\n" + TXT+="gh workflow run push_release_notes_to_website.yml -R deepset-ai/haystack -f version=${VERSION}\n" + fi + + echo "event_text=${TXT}" >> "$GITHUB_OUTPUT" + + - name: Send event to Datadog + uses: masci/datadog@v1 + with: + api-key: ${{ secrets.CORE_DATADOG_API_KEY }} + api-url: https://api.datadoghq.eu + events: | + - title: "${{ steps.calculator.outputs.title }}" + text: "${{ steps.calculator.outputs.event_text }}" + alert_type: "${{ steps.calculator.outputs.alert_type }}" + source_type_name: "Github" + host: ${{ github.repository_owner }} + tags: + - "project:${{ github.repository }}" + - "job:${{ github.job }}" + - "run_id:${{ github.run_id }}" + - "workflow:${{ github.workflow }}" + - "version:${{ inputs.version }}" + - "released_rc:${{ steps.calculator.outputs.released_rc || 'false' }}" From ed316d7af04e937417e1c99078c82d3da23cba7b Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 12 Dec 2025 11:36:50 +0100 Subject: [PATCH 2/7] offload notification preparation to external script --- .github/utils/prepare_release_notification.sh | 79 +++++++++++++++++ .github/workflows/release.yml | 84 ++++--------------- 2 files changed, 97 insertions(+), 66 deletions(-) create mode 100755 .github/utils/prepare_release_notification.sh diff --git a/.github/utils/prepare_release_notification.sh b/.github/utils/prepare_release_notification.sh new file mode 100755 index 00000000000..a12e33fc7b8 --- /dev/null +++ b/.github/utils/prepare_release_notification.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# prepare_release_notification.sh - Prepare Datadog notification for release outcome +# +# Requires: VERSION, RUN_URL, HAS_FAILURE, GH_TOKEN, GITHUB_REPOSITORY +# Optional: IS_FIRST_RC, MAJOR_MINOR, GITHUB_URL, PYPI_URL, DOCKER_URL, BUMP_VERSION_PR_URL +# Output: alert_type, title, event_text, released_rc (via GITHUB_OUTPUT or stdout) +# +# This script is used in the release.yml workflow to prepare the notification payload +# sent to Datadog after a release completes (success or failure). + +set -euo pipefail + +OUTPUT_FILE="${GITHUB_OUTPUT:-/dev/stdout}" + +IS_RC="false" +[[ "${VERSION}" == *"-rc"* ]] && IS_RC="true" + +if [[ "${HAS_FAILURE}" == "true" ]]; then + { + echo "alert_type=error" + echo "title=Release ${VERSION} failed" + echo "event_text=Release ${VERSION} failed. Check workflow run for details: ${RUN_URL}" + echo "released_rc=false" + } >> "$OUTPUT_FILE" + exit 0 +fi + +# Success case + +TXT="Release ${VERSION} completed successfully\n" + +# Add artifact URLs if available +if [[ -n "${GITHUB_URL:-}" || -n "${PYPI_URL:-}" || -n "${DOCKER_URL:-}" ]]; then + TXT+="\n๐Ÿ“ฆ Artifacts:\n" + [[ -n "${GITHUB_URL:-}" ]] && TXT+="- Release notes (GitHub): ${GITHUB_URL}\n" + [[ -n "${PYPI_URL:-}" ]] && TXT+="- PyPI: ${PYPI_URL}\n" + [[ -n "${DOCKER_URL:-}" ]] && TXT+="- Docker: ${DOCKER_URL}\n" +fi + +# For RCs, include link to the Tests workflow run +if [[ "${IS_RC}" == "true" ]]; then + COMMIT_SHA=$(gh api "repos/${GITHUB_REPOSITORY}/commits/${VERSION}" --jq '.sha' 2>/dev/null || echo "") + if [[ -n "${COMMIT_SHA}" ]]; then + TESTS_RUN=$(gh api "repos/${GITHUB_REPOSITORY}/actions/runs?head_sha=${COMMIT_SHA}" \ + --jq '.workflow_runs[] | select(.name == "Tests") | .html_url' 2>/dev/null | head -1 || echo "") + if [[ -n "${TESTS_RUN}" ]]; then + TXT+="\n๐Ÿงช Tests: ${TESTS_RUN}\n" + fi + fi +fi + +# For first RC, include the PRs to merge from branch-off +if [[ "${IS_FIRST_RC:-}" == "true" && -n "${BUMP_VERSION_PR_URL:-}" ]]; then + TXT+="\n๐Ÿ“‹ PRs to merge:\n" + TXT+="- Bump unstable version and create unstable docs: ${BUMP_VERSION_PR_URL}\n" +fi + +# For final minor releases (vX.Y.0), include the docs promotion PR +if [[ "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.0$ && -n "${MAJOR_MINOR:-}" ]]; then + PROMOTE_DOCS_PR_URL=$(gh pr list --repo "${GITHUB_REPOSITORY}" \ + --head "promote-unstable-docs-${MAJOR_MINOR}" --json url --jq '.[0].url' 2>/dev/null || echo "") + if [[ -n "${PROMOTE_DOCS_PR_URL}" ]]; then + TXT+="\n๐Ÿ“‹ PRs to merge:\n" + TXT+="- Promote unstable docs: ${PROMOTE_DOCS_PR_URL}\n" + fi +fi + +# For final releases (not RCs), include info about pushing release notes to website +if [[ "${IS_RC}" == "false" ]]; then + TXT+="\n๐Ÿ“ After refining and finalizing release notes, push them to Haystack website:\n" + TXT+="gh workflow run push_release_notes_to_website.yml -R deepset-ai/haystack -f version=${VERSION}\n" +fi + +{ + echo "alert_type=success" + echo "title=Release ${VERSION} completed successfully" + echo "event_text=${TXT}" + echo "released_rc=${IS_RC}" +} >> "$OUTPUT_FILE" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d377bddc79..ebc1386bdfd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,71 +117,23 @@ jobs: if: always() runs-on: ubuntu-latest steps: - - name: Calculate alert type and message - id: calculator + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Prepare release notification + id: prepare-notification env: VERSION: ${{ inputs.version }} GH_TOKEN: ${{ github.token }} - run: | - RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - - if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then - { - echo "alert_type=error" - echo "title=Release ${VERSION} failed" - echo "event_text=Release ${VERSION} failed. Check workflow run for details: ${RUN_URL}" - } >> "$GITHUB_OUTPUT" - exit 0 - fi - - { - echo "alert_type=success" - echo "title=Release ${VERSION} completed successfully" - [[ "${VERSION}" == *"-rc"* ]] && echo "released_rc=true" - } >> "$GITHUB_OUTPUT" - - TXT="Release ${VERSION} completed successfully\n" - TXT+="\n๐Ÿ“ฆ Artifacts:\n" - TXT+="- Release notes (GitHub): ${{ needs.check-artifacts.outputs.github_url }}\n" - TXT+="- PyPI: ${{ needs.check-artifacts.outputs.pypi_url }}\n" - TXT+="- Docker: ${{ needs.check-artifacts.outputs.docker_url }}\n" - - # For RCs, include link to the Tests workflow run - if [[ "${VERSION}" == *"-rc"* ]]; then - COMMIT_SHA=$(gh api "repos/${{ github.repository }}/commits/${VERSION}" --jq '.sha' 2>/dev/null || echo "") - if [[ -n "${COMMIT_SHA}" ]]; then - TESTS_RUN=$(gh api "repos/${{ github.repository }}/actions/runs?head_sha=${COMMIT_SHA}" \ - --jq '.workflow_runs[] | select(.name == "Tests") | .html_url' 2>/dev/null | head -1 || echo "") - if [[ -n "${TESTS_RUN}" ]]; then - TXT+="\n๐Ÿงช Tests: ${TESTS_RUN}\n" - fi - fi - fi - - # For first RC, include the PRs to merge from branch-off - if [[ "${{ needs.parse-validate-version.outputs.is_first_rc }}" == "true" ]]; then - TXT+="\n๐Ÿ“‹ PRs to merge:\n" - TXT+="- Bump unstable version and create unstable docs: ${{ needs.branch-off.outputs.bump_version_pr_url }}\n" - fi - - # For final minor releases (vX.Y.0), include the docs promotion PR - if [[ "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.0$ ]]; then - PROMOTE_DOCS_PR_URL=$(gh pr list --repo "${{ github.repository }}" \ - --head "promote-unstable-docs-${{ needs.parse-validate-version.outputs.major_minor }}" --json url \ - --jq '.[0].url' 2>/dev/null || echo "") - if [[ -n "${PROMOTE_DOCS_PR_URL}" ]]; then - TXT+="\n๐Ÿ“‹ PRs to merge:\n" - TXT+="- Promote unstable docs: ${PROMOTE_DOCS_PR_URL}\n" - fi - fi - - # For final releases (not RCs), include info about pushing release notes to website - if [[ "${VERSION}" != *"-rc"* ]]; then - TXT+="\n๐Ÿ“ After refining and finalizing release notes, push them to Haystack website:\n" - TXT+="gh workflow run push_release_notes_to_website.yml -R deepset-ai/haystack -f version=${VERSION}\n" - fi - - echo "event_text=${TXT}" >> "$GITHUB_OUTPUT" + RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + HAS_FAILURE: ${{ contains(needs.*.result, 'failure') }} + IS_FIRST_RC: ${{ needs.parse-validate-version.outputs.is_first_rc }} + MAJOR_MINOR: ${{ needs.parse-validate-version.outputs.major_minor }} + GITHUB_URL: ${{ needs.check-artifacts.outputs.github_url }} + PYPI_URL: ${{ needs.check-artifacts.outputs.pypi_url }} + DOCKER_URL: ${{ needs.check-artifacts.outputs.docker_url }} + BUMP_VERSION_PR_URL: ${{ needs.branch-off.outputs.bump_version_pr_url }} + run: .github/utils/prepare_release_notification.sh - name: Send event to Datadog uses: masci/datadog@v1 @@ -189,9 +141,9 @@ jobs: api-key: ${{ secrets.CORE_DATADOG_API_KEY }} api-url: https://api.datadoghq.eu events: | - - title: "${{ steps.calculator.outputs.title }}" - text: "${{ steps.calculator.outputs.event_text }}" - alert_type: "${{ steps.calculator.outputs.alert_type }}" + - title: "${{ steps.prepare-notification.outputs.title }}" + text: "${{ steps.prepare-notification.outputs.event_text }}" + alert_type: "${{ steps.prepare-notification.outputs.alert_type }}" source_type_name: "Github" host: ${{ github.repository_owner }} tags: @@ -200,4 +152,4 @@ jobs: - "run_id:${{ github.run_id }}" - "workflow:${{ github.workflow }}" - "version:${{ inputs.version }}" - - "released_rc:${{ steps.calculator.outputs.released_rc || 'false' }}" + - "released_rc:${{ steps.prepare-notification.outputs.released_rc }}" From cf54e03186787f885e30f052dcb09938bb758584 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 12 Dec 2025 11:53:18 +0100 Subject: [PATCH 3/7] swap if/needs --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebc1386bdfd..e3bcb8f0d59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,8 +29,8 @@ jobs: run: .github/utils/parse_validate_version.sh "${{ inputs.version }}" branch-off: + needs: ["parse-validate-version"] if: needs.parse-validate-version.outputs.is_first_rc == 'true' - needs: parse-validate-version uses: ./.github/workflows/branch_off.yml # https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows#passing-secrets-to-nested-workflows secrets: inherit From 29a377c9998ee38ae69b06e40cc257711d2b0e5c Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 12 Dec 2025 12:16:11 +0100 Subject: [PATCH 4/7] slim where makes sense --- .github/workflows/release.yml | 6 +++--- .pre-commit-config.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3bcb8f0d59..83d29d05873 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ on: jobs: parse-validate-version: - runs-on: ubuntu-latest + runs-on: ubuntu-slim outputs: version: ${{ steps.parse-validate.outputs.version }} major_minor: ${{ steps.parse-validate.outputs.major_minor }} @@ -38,7 +38,7 @@ jobs: create-release-tag: needs: ["parse-validate-version", "branch-off"] if: always() && needs.parse-validate-version.result == 'success' && needs.branch-off.result != 'failure' - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: write steps: @@ -115,7 +115,7 @@ jobs: notify: needs: ["parse-validate-version", "branch-off", "create-release-tag", "check-artifacts"] if: always() - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - name: Checkout repository uses: actions/checkout@v6 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8820968d1be..69ca1df43d2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - tomli - repo: https://github.com/rhysd/actionlint - rev: v1.7.7 + rev: v1.7.9 hooks: - id: actionlint-docker args: ["-ignore", "SC2102"] From 2b575d25b304b54384e42d7db43c60fa9351a0ec Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 12 Dec 2025 12:22:13 +0100 Subject: [PATCH 5/7] tmp test for ubuntu slim --- .github/workflows/test-ubuntu-slim.yml | 48 ++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/test-ubuntu-slim.yml diff --git a/.github/workflows/test-ubuntu-slim.yml b/.github/workflows/test-ubuntu-slim.yml new file mode 100644 index 00000000000..5ce1bef5b2c --- /dev/null +++ b/.github/workflows/test-ubuntu-slim.yml @@ -0,0 +1,48 @@ +name: Test ubuntu-slim tools + +on: + pull_request: + workflow_dispatch: + +jobs: + test-tools: + runs-on: ubuntu-slim + steps: + # Tools used by release scripts (parse_validate_version.sh, prepare_release_notification.sh, wait_for_workflows.sh) + - name: Check gh CLI + run: | + echo "=== gh CLI (used by release scripts) ===" + which gh && gh --version || echo "โŒ gh NOT FOUND" + + - name: Check jq + run: | + echo "=== jq (used by wait_for_workflows.sh, github_release.yml) ===" + which jq && jq --version || echo "โŒ jq NOT FOUND" + + - name: Check git + run: | + echo "=== git ===" + which git && git --version || echo "โŒ git NOT FOUND" + + - name: Check curl + run: | + echo "=== curl (used by release.yml/check-artifacts) ===" + which curl && curl --version | head -1 || echo "โŒ curl NOT FOUND" + + # Tools used by other workflows + - name: Check rsync + run: | + echo "=== rsync (used by docusaurus_sync.yml) ===" + which rsync && rsync --version | head -1 || echo "โŒ rsync NOT FOUND" + + # Standard Unix tools used across scripts + - name: Check standard Unix tools + run: | + echo "=== Standard Unix tools ===" + for cmd in awk cut grep sort tail cat echo sed head bash; do + if which $cmd > /dev/null 2>&1; then + echo "โœ… $cmd" + else + echo "โŒ $cmd NOT FOUND" + fi + done From b11d6a6f87bf570ae09c31269613695391f4b5cb Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 12 Dec 2025 12:24:06 +0100 Subject: [PATCH 6/7] revet --- .github/workflows/test-ubuntu-slim.yml | 48 -------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/test-ubuntu-slim.yml diff --git a/.github/workflows/test-ubuntu-slim.yml b/.github/workflows/test-ubuntu-slim.yml deleted file mode 100644 index 5ce1bef5b2c..00000000000 --- a/.github/workflows/test-ubuntu-slim.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Test ubuntu-slim tools - -on: - pull_request: - workflow_dispatch: - -jobs: - test-tools: - runs-on: ubuntu-slim - steps: - # Tools used by release scripts (parse_validate_version.sh, prepare_release_notification.sh, wait_for_workflows.sh) - - name: Check gh CLI - run: | - echo "=== gh CLI (used by release scripts) ===" - which gh && gh --version || echo "โŒ gh NOT FOUND" - - - name: Check jq - run: | - echo "=== jq (used by wait_for_workflows.sh, github_release.yml) ===" - which jq && jq --version || echo "โŒ jq NOT FOUND" - - - name: Check git - run: | - echo "=== git ===" - which git && git --version || echo "โŒ git NOT FOUND" - - - name: Check curl - run: | - echo "=== curl (used by release.yml/check-artifacts) ===" - which curl && curl --version | head -1 || echo "โŒ curl NOT FOUND" - - # Tools used by other workflows - - name: Check rsync - run: | - echo "=== rsync (used by docusaurus_sync.yml) ===" - which rsync && rsync --version | head -1 || echo "โŒ rsync NOT FOUND" - - # Standard Unix tools used across scripts - - name: Check standard Unix tools - run: | - echo "=== Standard Unix tools ===" - for cmd in awk cut grep sort tail cat echo sed head bash; do - if which $cmd > /dev/null 2>&1; then - echo "โœ… $cmd" - else - echo "โŒ $cmd NOT FOUND" - fi - done From 9af422b2c37f648a1eb4e392bffa0aaa4eb8de6d Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 12 Dec 2025 15:08:01 +0100 Subject: [PATCH 7/7] concurrency --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83d29d05873..38b0f5e9b76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,11 @@ on: required: true type: string +# Only one release workflow runs at a time; additional runs are queued. +concurrency: + group: release + cancel-in-progress: false + jobs: parse-validate-version: runs-on: ubuntu-slim