From 563a1c4ecdb7d26dd12d2d6ea602ff291e737cb2 Mon Sep 17 00:00:00 2001 From: Farshid Tavakolizadeh Date: Thu, 9 Jul 2026 11:34:16 +0200 Subject: [PATCH 1/4] Add Testflinger credentials as workflow input secrets --- .github/workflows/reuse-pr-build-test.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reuse-pr-build-test.yaml b/.github/workflows/reuse-pr-build-test.yaml index aa35d59..ad039d7 100644 --- a/.github/workflows/reuse-pr-build-test.yaml +++ b/.github/workflows/reuse-pr-build-test.yaml @@ -66,6 +66,12 @@ on: github-token: description: GitHub token used by build pre-check and label operations required: true + testflinger-client-id: + description: Testflinger client ID for test job + required: true + testflinger-secret-key: + description: Testflinger secret key for test job + required: true jobs: remove-trigger-labels: @@ -122,7 +128,6 @@ jobs: matrix: jobs: ${{ fromJSON(inputs.test-jobs-matrix) }} uses: canonical/inference-snaps-testing/.github/workflows/test-snap.yaml@v1 - secrets: inherit with: job-queue: ${{ matrix.jobs.job-queue }} provision-data: ${{ matrix.jobs.provision-data }} @@ -137,3 +142,6 @@ jobs: expected-tps: ${{ matrix.jobs.expected-tps }} test-image-prompt: ${{ matrix.jobs.test-image-prompt == true}} devmode: ${{ matrix.jobs.devmode == true }} + secrets: + testflinger-client-id: ${{ secrets.testflinger-client-id }} + testflinger-secret-key: ${{ secrets.testflinger-secret-key }} From bea35831b166b6e72eb5f5a8d983ac4ae0717240 Mon Sep 17 00:00:00 2001 From: Farshid Tavakolizadeh Date: Thu, 9 Jul 2026 11:58:09 +0200 Subject: [PATCH 2/4] Use test-snap from working branch --- .github/workflows/reuse-pr-build-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reuse-pr-build-test.yaml b/.github/workflows/reuse-pr-build-test.yaml index ad039d7..5ef0bdc 100644 --- a/.github/workflows/reuse-pr-build-test.yaml +++ b/.github/workflows/reuse-pr-build-test.yaml @@ -127,7 +127,7 @@ jobs: fail-fast: false matrix: jobs: ${{ fromJSON(inputs.test-jobs-matrix) }} - uses: canonical/inference-snaps-testing/.github/workflows/test-snap.yaml@v1 + uses: canonical/inference-snaps-testing/.github/workflows/test-snap.yaml@tf-auth # v1 with: job-queue: ${{ matrix.jobs.job-queue }} provision-data: ${{ matrix.jobs.provision-data }} From 17416899b1b64cee683d6375db0d9e294cd5c543 Mon Sep 17 00:00:00 2001 From: Farshid Tavakolizadeh Date: Thu, 9 Jul 2026 16:42:03 +0200 Subject: [PATCH 3/4] Move client id to inputs --- .github/workflows/reuse-pr-build-test.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reuse-pr-build-test.yaml b/.github/workflows/reuse-pr-build-test.yaml index 5ef0bdc..8e5af23 100644 --- a/.github/workflows/reuse-pr-build-test.yaml +++ b/.github/workflows/reuse-pr-build-test.yaml @@ -59,6 +59,10 @@ on: ] required: true type: string + testflinger-client-id: + description: Testflinger client ID for test job + required: true + type: string secrets: store-credentials: description: Snap Store credentials for publishing PR builds @@ -66,9 +70,6 @@ on: github-token: description: GitHub token used by build pre-check and label operations required: true - testflinger-client-id: - description: Testflinger client ID for test job - required: true testflinger-secret-key: description: Testflinger secret key for test job required: true @@ -142,6 +143,6 @@ jobs: expected-tps: ${{ matrix.jobs.expected-tps }} test-image-prompt: ${{ matrix.jobs.test-image-prompt == true}} devmode: ${{ matrix.jobs.devmode == true }} + testflinger-client-id: ${{ inputs.testflinger-client-id }} secrets: - testflinger-client-id: ${{ secrets.testflinger-client-id }} testflinger-secret-key: ${{ secrets.testflinger-secret-key }} From 80b773eecb98bdb321bb7dff3f6a48db0cb0e6cb Mon Sep 17 00:00:00 2001 From: Farshid Tavakolizadeh Date: Fri, 10 Jul 2026 12:25:40 +0200 Subject: [PATCH 4/4] Revert to v1 --- .github/workflows/reuse-pr-build-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reuse-pr-build-test.yaml b/.github/workflows/reuse-pr-build-test.yaml index 8e5af23..7593e9d 100644 --- a/.github/workflows/reuse-pr-build-test.yaml +++ b/.github/workflows/reuse-pr-build-test.yaml @@ -128,7 +128,7 @@ jobs: fail-fast: false matrix: jobs: ${{ fromJSON(inputs.test-jobs-matrix) }} - uses: canonical/inference-snaps-testing/.github/workflows/test-snap.yaml@tf-auth # v1 + uses: canonical/inference-snaps-testing/.github/workflows/test-snap.yaml@v1 with: job-queue: ${{ matrix.jobs.job-queue }} provision-data: ${{ matrix.jobs.provision-data }}