From ca74545b3092111ae762b2f3f05c461b928fa33c Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Thu, 26 Nov 2026 15:14:20 +0400 Subject: [PATCH 1/6] ci(e2e): run each nightly suite whatever the other build did The two builds are one matrix job, so its result is a failure as soon as one of them fails, and both suites were skipped. A suite whose own build is missing fails when it unpacks it. --- .github/workflows/e2e-nightly.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-nightly.yml b/.github/workflows/e2e-nightly.yml index 84df6a5ab52..9d4d3afbc32 100644 --- a/.github/workflows/e2e-nightly.yml +++ b/.github/workflows/e2e-nightly.yml @@ -121,7 +121,8 @@ jobs: suite: needs: package - if: ${{ !cancelled() && needs.package.result == 'success' }} + # Whatever the other build did: a suite whose own build is missing fails when it unpacks it. + if: ${{ !cancelled() }} permissions: contents: read actions: read @@ -140,7 +141,8 @@ jobs: keycard: needs: package - if: ${{ !cancelled() && needs.package.result == 'success' }} + # Whatever the other build did: a suite whose own build is missing fails when it unpacks it. + if: ${{ !cancelled() }} permissions: contents: read actions: read From 45d67012690f38d67eca74fb07a4c9dd3c737077 Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Thu, 26 Nov 2026 15:14:32 +0400 Subject: [PATCH 2/6] ci(e2e): run the nightly workflow in a pull request that changes it With a schedule and a manual start only, the workflow could not run before it was on master. --- .github/workflows/e2e-nightly.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/e2e-nightly.yml b/.github/workflows/e2e-nightly.yml index 9d4d3afbc32..0774e49e7a4 100644 --- a/.github/workflows/e2e-nightly.yml +++ b/.github/workflows/e2e-nightly.yml @@ -4,6 +4,10 @@ on: schedule: - cron: '0 1 * * *' workflow_dispatch: + # A schedule runs only what is on master: a change to this workflow is tried in its pull request. + pull_request: + paths: + - .github/workflows/e2e-nightly.yml permissions: contents: read From 204474259d366fad0d2087121a8daa52bc37e6e0 Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Thu, 26 Nov 2026 15:14:37 +0400 Subject: [PATCH 3/6] ci(e2e): restore the caches master saved, save none in the nightly The nightly had Go and ccache caches of its own, one pair per build. The Go cache alone is about 550 MB and the store is near its 10 GB limit. Both builds now restore what the linux job of ci.yml saves on master. --- .github/workflows/e2e-nightly.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/e2e-nightly.yml b/.github/workflows/e2e-nightly.yml index 0774e49e7a4..729615ecf47 100644 --- a/.github/workflows/e2e-nightly.yml +++ b/.github/workflows/e2e-nightly.yml @@ -64,6 +64,7 @@ jobs: env: | APPIMAGE_EXTRACT_AND_RUN=1 USE_SIMULATED_KEYCARD=${{ matrix.simulated }} + # The caches the linux job of ci.yml saves on master. None is saved here. - name: Cache keys id: keys run: | @@ -75,14 +76,14 @@ jobs: id: go with: path: .ci-cache/go-build - key: go-linux-${{ matrix.id }}-${{ steps.keys.outputs.status-go }} - restore-keys: go-linux-${{ matrix.id }}- + key: go-linux-${{ steps.keys.outputs.status-go }} + restore-keys: go-linux- - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 id: ccache with: path: .ci-cache/ccache - key: ccache-linux-${{ matrix.id }}-${{ steps.keys.outputs.day }} - restore-keys: ccache-linux-${{ matrix.id }}- + key: ccache-linux-${{ steps.keys.outputs.day }} + restore-keys: ccache-linux- - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 id: nimble with: @@ -107,16 +108,6 @@ jobs: STATUS_BUILD_KLIPY_API_KEY: ${{ secrets.STATUS_BUILD_KLIPY_API_KEY }} USE_SIMULATED_KEYCARD: ${{ matrix.simulated }} run: $IN_IMAGE make tgz-linux - - uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 - if: ${{ !cancelled() && steps.go.outputs.cache-hit != 'true' }} - with: - path: .ci-cache/go-build - key: go-linux-${{ matrix.id }}-${{ steps.keys.outputs.status-go }} - - uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 - if: ${{ !cancelled() && steps.ccache.outputs.cache-hit != 'true' }} - with: - path: .ci-cache/ccache - key: ccache-linux-${{ matrix.id }}-${{ steps.keys.outputs.day }} - uses: ./.github/actions/build-artifact with: platform: linux-x86_64-${{ matrix.id }} From 5cafd09791cc7116485806a1a34e8d53c3e3f43b Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Thu, 26 Nov 2026 15:14:46 +0400 Subject: [PATCH 4/6] ci(e2e): pass the marker expression through the environment Pasted into the script text, a value with a quote or a command substitution would run as shell. --- .github/workflows/e2e.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 78ece519575..9da5200aa2f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -95,12 +95,14 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} WALLET_TEST_USER_SEED: ${{ secrets.WALLET_TEST_USER_SEED }} + # Through the environment: pasted into the script, it would run as shell. + MARKERS: ${{ inputs.pytest-args }} run: | if [ "$RUNNER_OS" = Linux ]; then echo "$GITHUB_TOKEN" | docker login ghcr.io --username "$GITHUB_ACTOR" --password-stdin || echo "No GHCR login." fi test/e2e/scripts/ci/run.sh "$RUNNER_TEMP/pkg" "$RUNNER_TEMP/qmlinspector/plugins" \ - -m "${{ inputs.pytest-args }}" -v --reruns=1 --timeout=300 -o timeout_func_only=true --disable-warnings \ + -m "$MARKERS" -v --reruns=1 --timeout=300 -o timeout_func_only=true --disable-warnings \ --junitxml=junit.xml --alluredir=./allure-results # Logs, reports and failure screenshots only: the app data of a run is hundreds of megabytes. - name: Upload results From 74a362c85710f0f030dc11004e455a4afea9b455 Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Thu, 26 Nov 2026 19:52:23 +0400 Subject: [PATCH 5/6] ci(e2e): install the WalletConnect dApp's packages before the tests The Linux run starts the tests in the test image, where nothing ran npm ci, so the three WalletConnect tests failed with "dApp dependencies are missing". The Jenkins job had this step. --- test/e2e/scripts/inspector/in-image.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/e2e/scripts/inspector/in-image.sh b/test/e2e/scripts/inspector/in-image.sh index 6ef6d790127..6756095641a 100755 --- a/test/e2e/scripts/inspector/in-image.sh +++ b/test/e2e/scripts/inspector/in-image.sh @@ -22,6 +22,15 @@ fluxbox > /tmp/fluxbox.log 2>&1 & cd /work/test/e2e [ -e configs/_local.py ] || cp configs/_local.ci.py configs/_local.py +# The WalletConnect tests start a dApp that needs these packages. A failed install fails those tests only. +dapp=scripts/wallet_connect_dapp +if [ ! -f "$dapp/node_modules/@walletconnect/sign-client/package.json" ]; then + (cd "$dapp" && npm ci --no-audit --no-fund) > /tmp/npm-ci.log 2>&1 || { + echo "in-image: npm ci failed in $dapp" >&2 + tail -n 20 /tmp/npm-ci.log >&2 + } +fi + export STATUS_RUNTIME_HTTP_API=False STATUS_RUNTIME_WS_API=False export QML_DISABLE_CACHE=1 QT_QPA_PLATFORM=linuxfb QT_LOGGING_RULES='*.warning=true' export STATUS_RUNTIME_TEST_MODE=1 STATUS_NO_DESKTOP_INTEGRATION=1 LIBGL_ALWAYS_SOFTWARE=1 From 2f7de343261ed2638d703ff1dd88c8a80556eb9b Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Thu, 26 Nov 2026 19:58:36 +0400 Subject: [PATCH 6/6] ci(e2e): one e2e check that a branch rule can require A rule that requires the check of the Linux suite by its own name waits forever when the suite is skipped: a skipped e2e-linux reports as "e2e-linux", not as "e2e-linux / tests". The e2e job reports on every run: it passes when the suite passed or when nothing was built, and fails otherwise. --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bfa5bfaac3..54b683fd6a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -365,6 +365,33 @@ jobs: os: macos run-id: ${{ github.run_id }} + # The check a branch rule can require. It reports on every run; a skipped + # e2e-linux reports nothing under the name of its tests, and a rule that + # requires that name then waits forever. Windows and macOS are not counted: + # they do not fail the workflow yet. + e2e: + name: e2e + needs: [linux, e2e-linux] + if: ${{ !cancelled() }} + runs-on: ubuntu-24.04 + timeout-minutes: 5 + steps: + - name: Result + env: + BUILD: ${{ needs.linux.result }} + TESTS: ${{ needs.e2e-linux.result }} + run: | + echo "linux build: $BUILD, e2e-linux: $TESTS, event: $GITHUB_EVENT_NAME" + case "$BUILD/$TESTS" in + success/success) exit 0 ;; + # Nothing was built: a change in documentation only. + skipped/skipped) exit 0 ;; + # A push to master builds and does not run the suite. + success/skipped) [ "$GITHUB_EVENT_NAME" = push ] && exit 0 ;; + esac + echo "::error::The Linux e2e suite did not pass (build: $BUILD, tests: $TESTS)." + exit 1 + android: name: android needs: [changes, image]