Commit ca500a6
ci(sdk-regression): full 33-SDK matrix via RUN_REGRESSION comment / dispatch with per-SDK ref overrides (PER-9772) (#2322)
* ci(sdk-regression): auto-run on PRs via `run-sdk-regression` label
Make SDK regression runnable as an automatic PR check, not only via a
manual `RUN_REGRESSION` comment. Adds a `pull_request` trigger gated by
the `run-sdk-regression` label; resolves the PR head ref/sha from either
event; keeps the comment path and its write/admin permission guard intact.
Untrusted head.ref is passed via env (not interpolated into the shell) and
is still validated by the existing regex-match step before any downstream
workflow is triggered.
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): also fan out App Percy + POA on Buildkite
The same regression trigger (RUN_REGRESSION comment or run-sdk-regression
label) now also fires the App Percy + POA suites, which run on Buildkite
(real BrowserStack devices/browsers). A new trigger-app-poa job
repository_dispatches to percy/percy-automation, whose workflow creates the
Buildkite builds against this CLI branch. percy-automation remains the single
owner of App/POA-on-Buildkite; this is just the trigger.
Internal-only guard (write/admin or label) and env-based, regex-validated
branch handling mirror the web job. Requires a PERCY_AUTOMATION_DISPATCH_TOKEN
secret.
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): trigger App/POA on Buildkite directly + report table
Replace the percy-automation repository_dispatch hop with a direct Buildkite
REST call: the app-poa-regression job creates builds on the app-percy and poa
SDK regression suites (CLI built from this branch), polls them to completion,
and upserts a per-SDK pass/fail table comment on the PR.
- Direct Buildkite trigger (BUILDKITE_API_TOKEN in this repo) — no extra repo hop.
- Waits for the builds (bounded by MAX_WAIT_MIN), then posts/edits a marker
comment with each suite's per-job result + build links; fails the job if any
job failed/canceled.
- Internal-only guard + env-based, regex-validated branch handling unchanged.
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): filter bootstrap/wait jobs from the result table
Grounded against real builds of app-percy-sdk-regression-suite: the matrix
jobs are named per SDK+device (e.g. 'Python-Android [...]'), but the build
also has the bootstrap upload step ('App-Percy-SDK-tests'/'POA-SDK-tests')
and an unnamed wait job. Exclude both from the per-SDK pass/fail table and the
failure check.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): add 5 injection-capable SDKs to the fan-out matrix
detox, playwright-python, robotframework, playwright-java, playwright-dotnet
all support CLI-branch injection in their test.yml but were missing from the
matrix, so a CLI change silently skipped them. Added as @main (their default
branch) since the split default ref is master.
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): add workflow_dispatch to run the web fan-out on demand
Lets the SDK regression matrix be triggered manually (and on the PR's own
branch) against a chosen CLI branch, without a comment/label. The Buildkite
App/POA job stays comment/label-only, so a dispatch tests the web fan-out only.
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): set fail-fast: false on the SDK matrix
A regression fan-out must report every SDK's result; with default fail-fast
the first SDK failure cancels all other matrix jobs, hiding the rest.
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): dispatch percy-storybook's versioned test workflow
storybook has no test.yml — it uses test-storybook-vN.yml — so the fan-out
silently failed to trigger it. Dispatch test-storybook-v10.yml for storybook.
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): add appium-dotnet + styleguidist to the matrix
Both now support CLI-branch injection (appium-dotnet#403, styleguidist#25).
Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): add App Percy + remaining SDKs to the matrix
Adds appium-python/java/wd/ruby, maestro-web/app, react-native-app,
tosca-dotnet, uipath, xcui-swift. react-native-app uses storybook-rn-ci.yml
(per-repo workflow filename). Skips puppeteer/ember (per decision) and
katalon/espresso (infeasible / needs emulator). Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): exclude percy-ember and percy-puppeteer
Their tests assert on the PER-7348 readiness-gate contract and fail against an
ahead-of-release cli@master until they adapt + bump @percy/sdk-utils. Skip per
decision. Part of PER-9772.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): paginate job-id lookup + don't gate on it
The fan-out matrix has grown past 30 jobs (currently 35). The
`Get Current Job Log URL` step (Tiryoh/gha-jobid-action) defaults to
per_page=30, so every job on page 2 fails to find itself, resolves
job_id to null, and exits 1 *before* dispatching the SDK workflow —
producing false reds (appium-js, maestro-app, maestro-web,
selenium-ruby) that never actually ran a regression.
Set per_page=100 (jobs API max) to cover the whole matrix, and mark the
step continue-on-error since it only feeds the commit-status target_url
and must never gate the regression itself.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): re-add percy-ember and percy-puppeteer to matrix
Both were excluded because their tests assert on the PER-7348
readiness-gate contract and red against an ahead-of-release cli@master.
Re-adding them as-is: both have a workflow_dispatch trigger on their
default branch, so they dispatch and run. Expected to red on master
until they adapt to the two-call readiness contract + bump
@percy/sdk-utils; we'll fix the reds as they surface.
Matrix is now 36 SDKs (job-id lookup already paginated to per_page=100).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): dispatch ci.yml for tosca-dotnet and uipath
percy-tosca-dotnet and percy-uipath have no test.yml — their @percy/cli
inject step lives in ci.yml (workflow_dispatch + branch input + "Set up
@percy/cli from git" cloning the injected branch are all present there).
The orchestrator was dispatching test.yml, so both 404'd at the trigger
step — previously mis-attributed to a token-access gap. Map both to
ci.yml in the workflow_file_name selector so the fan-out reaches their
real (correct) inject workflow.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(sdk-regression): drop percy-robotframework and percy-nightmare from matrix
percy-robotframework is archived (read-only) so workflow dispatch always
404s; percy-nightmare's downstream run hangs until the 6h job limit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci(sdk-regression): remove App Percy + POA Buildkite job
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci(sdk-regression): comment+dispatch triggers only; per-SDK ref overrides
Drop the run-sdk-regression label (pull_request) trigger — regression now
runs only via a RUN_REGRESSION PR comment or workflow_dispatch. Dispatch
gains an sdk_refs input (comma-separated repo@branch) to run individual
SDKs' workflows from a specific branch (e.g. CLI master + one SDK's
feature branch); unlisted SDKs keep their matrix default ref. Overridden
refs are validated before flowing into the downstream dispatch.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8d11a0c commit ca500a6
1 file changed
Lines changed: 119 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
5 | 18 | | |
6 | 19 | | |
7 | 20 | | |
| |||
15 | 28 | | |
16 | 29 | | |
17 | 30 | | |
18 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
19 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
20 | 43 | | |
21 | 44 | | |
22 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
23 | 50 | | |
24 | | - | |
25 | 51 | | |
| 52 | + | |
26 | 53 | | |
27 | 54 | | |
28 | 55 | | |
29 | 56 | | |
30 | | - | |
31 | 57 | | |
32 | 58 | | |
33 | 59 | | |
| |||
39 | 65 | | |
40 | 66 | | |
41 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
42 | 88 | | |
| 89 | + | |
| 90 | + | |
43 | 91 | | |
| 92 | + | |
44 | 93 | | |
45 | 94 | | |
46 | 95 | | |
| |||
51 | 100 | | |
52 | 101 | | |
53 | 102 | | |
54 | | - | |
| 103 | + | |
55 | 104 | | |
56 | 105 | | |
57 | | - | |
| 106 | + | |
58 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
59 | 127 | | |
60 | 128 | | |
61 | 129 | | |
62 | | - | |
| 130 | + | |
63 | 131 | | |
64 | 132 | | |
65 | 133 | | |
| |||
68 | 136 | | |
69 | 137 | | |
70 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
71 | 142 | | |
72 | 143 | | |
73 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
74 | 149 | | |
75 | 150 | | |
76 | 151 | | |
77 | 152 | | |
78 | 153 | | |
79 | 154 | | |
80 | 155 | | |
81 | | - | |
| 156 | + | |
82 | 157 | | |
83 | 158 | | |
84 | 159 | | |
| |||
96 | 171 | | |
97 | 172 | | |
98 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
99 | 198 | | |
100 | 199 | | |
101 | 200 | | |
102 | 201 | | |
103 | 202 | | |
104 | 203 | | |
105 | 204 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
109 | 213 | | |
110 | 214 | | |
111 | 215 | | |
112 | 216 | | |
113 | 217 | | |
114 | 218 | | |
115 | 219 | | |
116 | | - | |
| 220 | + | |
117 | 221 | | |
118 | 222 | | |
119 | 223 | | |
120 | | - | |
| 224 | + | |
121 | 225 | | |
122 | 226 | | |
123 | 227 | | |
| |||
0 commit comments