@samitouri / QOS-React / commits / a7f3b49be2

[ci] Make some workflows dispatchable

The previous checks for prerelease_commit_sha was incorrectly implemented for devtools regression tests so I fixed it. I also made some other workflows dispatchable so they can be manually run from GitHub's UI as needed. Test plan: https://github.com/facebook/react/actions/runs/10165564989 ghstack-source-id: b30c7b48e7dba3e27c59496aac5ace1a090dcfc3 Pull Request resolved: https://github.com/facebook/react/pull/30529

Lauren Tan committed Jul 30, 2024 at 11:53 UTC a7f3b49be2c0111757bec48e8ee0820c7495a2f9
4 files changed +12 -11
.github/workflows/devtools_regression_tests.yml
+3 -3
@@ -5,8 +5,9 @@ on:
5 - cron: 0 0 * * *
6 workflow_dispatch:
7 inputs:
8 - prerelease_commit_sha:
8 + commit_sha:
9 required: false
10 + type: string
11
12 env:
13 TZ: /usr/share/zoneinfo/America/Los_Angeles
@@ -15,7 +16,6 @@ env:
16
17 jobs:
18 download_build:
18 - if: inputs.prerelease_commit_sha == ''
19 name: Download base build
20 runs-on: ubuntu-latest
21 steps:
@@ -37,7 +37,7 @@ jobs:
37 - name: Download react-devtools artifacts for base revision
38 run: |
39 git fetch origin main
40 - GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=$(git rev-parse origin/main)
40 + GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || '$(git rev-parse origin/main)' }}
41 - name: Display structure of build
42 run: ls -R build
43 - name: Archive build
.github/workflows/runtime_commit_artifacts.yml
+6 -1
@@ -6,6 +6,11 @@ on:
6 types: [completed]
7 branches:
8 - main
9 + workflow_dispatch:
10 + inputs:
11 + commit_sha:
12 + required: false
13 + type: string
14
15 env:
16 TZ: /usr/share/zoneinfo/America/Los_Angeles
@@ -72,7 +77,7 @@ jobs:
77 working-directory: scripts/release
78 - name: Download artifacts for base revision
79 run: |
75 - GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ github.event.workflow_run.head_sha }}
80 + GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || github.event.workflow_run.head_sha }}
81 - name: Display structure of build
82 run: ls -R build
83 - name: Strip @license from eslint plugin and react-refresh
.github/workflows/runtime_fuzz_tests.yml
+2 -7
@@ -1,24 +1,19 @@
1 name: (Runtime) Fuzz tests
2 +
3 on:
4 schedule:
4 - - cron: 0 * * * *
5 + - cron: 0 * * * *
6 push:
7 branches:
8 - main
9 workflow_dispatch:
9 - inputs:
10 - prerelease_commit_sha:
11 - required: false
10
11 env:
12 TZ: /usr/share/zoneinfo/America/Los_Angeles
13
14 jobs:
15 test_fuzz:
18 - if: inputs.prerelease_commit_sha == ''
16 runs-on: ubuntu-latest
20 - env:
21 - TZ: "/usr/share/zoneinfo/America/Los_Angeles"
17 steps:
18 - uses: actions/checkout@v4.1.0
19 - uses: actions/setup-node@v4
.github/workflows/shared_stale.yml
+1
@@ -4,6 +4,7 @@ on:
4 schedule:
5 # Run hourly
6 - cron: '0 * * * *'
7 + workflow_dispatch:
8
9 env:
10 TZ: /usr/share/zoneinfo/America/Los_Angeles