From 2864e867fa31a4ad8e808c934d37e5172b443b7a Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 5 Oct 2026 15:00:37 +0200 Subject: [PATCH] End all the remaining sessions of the Maestro account after the tests Each Maestro run logs in to @maestroelement:matrix.org, and the sessions pile up on the account. Run tools/mas/delete_all_sessions.py at the end of the Maestro job, even if the tests failed, to end them all. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/maestro-local.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/maestro-local.yml b/.github/workflows/maestro-local.yml index 1195c7b53d..01f0a9acb7 100644 --- a/.github/workflows/maestro-local.yml +++ b/.github/workflows/maestro-local.yml @@ -124,6 +124,19 @@ jobs: disk-size: 3G script: | .github/workflows/scripts/maestro/maestro-local-with-screen-recording.sh app-gplay-x86_64-debug.apk + - name: Set up Python + if: always() + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: 3.14 + - name: End all the remaining sessions of the Maestro account + if: always() + continue-on-error: true + env: + MAS_PASSWORD: ${{ secrets.MATRIX_MAESTRO_ACCOUNT_PASSWORD }} + run: | + pip install requests + python3 ./tools/mas/delete_all_sessions.py --homeserver matrix.org --username maestroelement - name: Upload test results uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: