From f230131e5a9a65014d28cef873ba1996fd2978bf Mon Sep 17 00:00:00 2001 From: Theo Date: Tue, 10 Nov 2026 10:07:23 +0700 Subject: [PATCH 1/2] ci: warn on Matrix when the nightly runtime diff finds breaking changes --- .github/workflows/nightly-release.yml | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 9d454d13..424e0363 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -137,6 +137,52 @@ jobs: kind: Nightly access_token: ${{ secrets.ENG_AUT_MATRIX_TOKEN }} + # The gate passed, but its runtime diff found breaking changes for product-sdk, or + # could not check some candidates. A warning only: publish-nightly does not wait on + # this job, and the gate's result is unchanged. Both counts come from chain-tests' + # runtime_diff_breaking and runtime_diff_unknown outputs (release-gate.yml's + # runtime-diff-summary job, which sums every candidate). + notify-breaking-diff: + needs: chain-tests + if: ${{ always() && needs.chain-tests.result == 'success' && needs.chain-tests.outputs.runtime_diff_breaking != '' && needs.chain-tests.outputs.runtime_diff_unknown != '' && (needs.chain-tests.outputs.runtime_diff_breaking != '0' || needs.chain-tests.outputs.runtime_diff_unknown != '0') }} + runs-on: parity-ubuntu + permissions: + contents: read + steps: + # Built in a shell step, as notify-gate-failure does, so the lines can depend on + # the counts. Values come in through env:, never interpolated into the script. + - name: Compose the message + id: msg + env: + BREAKING: ${{ needs.chain-tests.outputs.runtime_diff_breaking }} + UNKNOWN: ${{ needs.chain-tests.outputs.runtime_diff_unknown }} + REF: ${{ github.ref_name }} + RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + run: | + set -euo pipefail + if [ "$BREAKING" != "0" ]; then + HEAD="[WARNING] E2E Nightly runtime diff: $BREAKING breaking change(s) for product-sdk, tests passed ($REF)" + else + HEAD="[WARNING] E2E Nightly runtime diff could not be checked for $UNKNOWN candidate(s), tests passed ($REF); $BREAKING breaking change(s) found in the rest" + fi + { + echo "text<> "$GITHUB_OUTPUT" + + - uses: s3krit/matrix-message-action@v0.0.3 + with: + room_id: "!llIELBsiHpuJTvtzhb:parity.io" + access_token: ${{ secrets.ENG_AUT_MATRIX_TOKEN }} + server: m.parity.io + message: ${{ steps.msg.outputs.text }} + publish-nightly: runs-on: parity-ubuntu needs: [check-changes, build-runtimes, chain-tests] From 62af64c57fda6e2e0826ade29b628e5ec5b75c1f Mon Sep 17 00:00:00 2001 From: Theo Date: Thu, 12 Nov 2026 19:30:11 +0700 Subject: [PATCH 2/2] ci: warn when the nightly runtime diff summary is missing --- .github/workflows/nightly-release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 424e0363..a0f18ef9 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -144,7 +144,7 @@ jobs: # runtime-diff-summary job, which sums every candidate). notify-breaking-diff: needs: chain-tests - if: ${{ always() && needs.chain-tests.result == 'success' && needs.chain-tests.outputs.runtime_diff_breaking != '' && needs.chain-tests.outputs.runtime_diff_unknown != '' && (needs.chain-tests.outputs.runtime_diff_breaking != '0' || needs.chain-tests.outputs.runtime_diff_unknown != '0') }} + if: ${{ always() && needs.chain-tests.result == 'success' && (needs.chain-tests.outputs.runtime_diff_breaking == '' || needs.chain-tests.outputs.runtime_diff_unknown == '' || needs.chain-tests.outputs.runtime_diff_breaking != '0' || needs.chain-tests.outputs.runtime_diff_unknown != '0') }} runs-on: parity-ubuntu permissions: contents: read @@ -160,16 +160,18 @@ jobs: RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} run: | set -euo pipefail - if [ "$BREAKING" != "0" ]; then + if [ -z "$BREAKING" ] || [ -z "$UNKNOWN" ]; then + HEAD="[WARNING] E2E Nightly runtime diff summary produced no counts, tests passed ($REF)" + elif [ "$BREAKING" != "0" ]; then HEAD="[WARNING] E2E Nightly runtime diff: $BREAKING breaking change(s) for product-sdk, tests passed ($REF)" else - HEAD="[WARNING] E2E Nightly runtime diff could not be checked for $UNKNOWN candidate(s), tests passed ($REF); $BREAKING breaking change(s) found in the rest" + HEAD="[WARNING] E2E Nightly runtime diff: $UNKNOWN runtime diff(s) could not be checked, tests passed ($REF); $BREAKING breaking change(s) found in the rest" fi { echo "text<