Skip to content

Commit 3ada7d1

Browse files
XxdpavelxXclaude
andcommitted
ci(infra-3596): provider-aware runs-on in update-e2e-fixtures.yml
Adds runner_provider input to workflow_dispatch and makes all runs-on expressions provider-aware so this workflow can be dispatched on Namespace runners on the trial path. Per Phase 4 inventory: - The macOS update-fixtures job (line 183) → namespace-profile-metamask-ios-e2e - All ubuntu-latest orchestration jobs → namespace-profile-metamask-ci-linux The dispatch job at line 37 only runs on issue_comment events where inputs.runner_provider is undefined; it falls through to ubuntu-latest in that case, so bot-triggered fixture updates remain on Cirrus while manual workflow_dispatch can opt into Namespace. Per the ticket, this is gated only on run-e2e-workflow.yml stability, which Step 4 (ci.yml iOS smoke tests, 13/15 shards passing) confirmed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a8964e7 commit 3ada7d1

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/update-e2e-fixtures.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ on:
2222
description: 'PR number to update fixtures for'
2323
required: true
2424
type: string
25+
runner_provider:
26+
description: Runner provider for this manual trial run
27+
required: false
28+
type: choice
29+
options:
30+
- current
31+
- namespace
32+
default: current
2533

2634
jobs:
2735
# ── issue_comment dispatcher ──────────────────────────────────────────
@@ -34,7 +42,7 @@ jobs:
3442
github.event.issue.pull_request &&
3543
startsWith(github.event.comment.body, '@metamaskbot update-mobile-fixture')
3644
}}
37-
runs-on: ubuntu-latest
45+
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
3846
timeout-minutes: 5
3947
steps:
4048
- uses: actions/checkout@v4
@@ -72,7 +80,7 @@ jobs:
7280
is-fork-pull-request:
7381
name: Validate PR
7482
if: ${{ github.event_name == 'workflow_dispatch' }}
75-
runs-on: ubuntu-latest
83+
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
7684
timeout-minutes: 5
7785
outputs:
7886
IS_FORK: ${{ steps.is-fork.outputs.IS_FORK }}
@@ -89,7 +97,7 @@ jobs:
8997

9098
prepare:
9199
name: Prepare build artifacts
92-
runs-on: ubuntu-latest
100+
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
93101
timeout-minutes: 10
94102
needs: is-fork-pull-request
95103
if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'false' }}
@@ -180,7 +188,7 @@ jobs:
180188
update-fixtures:
181189
name: Export & update fixtures
182190
needs: [prepare]
183-
runs-on: ghcr.io/cirruslabs/macos-runner:tahoe
191+
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ios-e2e' || 'ghcr.io/cirruslabs/macos-runner:tahoe' }}
184192
timeout-minutes: 30
185193

186194
env:
@@ -268,7 +276,7 @@ jobs:
268276

269277
commit-updated-fixtures:
270278
name: Commit the updated fixtures
271-
runs-on: ubuntu-latest
279+
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
272280
timeout-minutes: 10
273281
permissions:
274282
contents: write
@@ -343,7 +351,7 @@ jobs:
343351

344352
check-status:
345353
name: Check whether the fixture update succeeded
346-
runs-on: ubuntu-latest
354+
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
347355
timeout-minutes: 5
348356
if: ${{ !cancelled() && needs.is-fork-pull-request.outputs.IS_FORK == 'false' }}
349357
needs:
@@ -364,7 +372,7 @@ jobs:
364372
failure-comment:
365373
name: Comment about the fixture update failure
366374
if: ${{ !cancelled() && needs.is-fork-pull-request.outputs.IS_FORK == 'false' }}
367-
runs-on: ubuntu-latest
375+
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
368376
timeout-minutes: 5
369377
permissions:
370378
contents: read

0 commit comments

Comments
 (0)