Commit 7dc5e39
committed
ci: let fork PRs enter the merge queue (skip e2e on forks, keep unit+coverage)
Fork PRs could not enter the merge queue. The required `coverage` check
`needs: [unit-test, e2e-test]`, but `e2e-test` uses the azure-prod environment
and warehouse secrets that GitHub withholds from a fork's pull_request run — so
e2e-test can't pass on a fork, coverage is skipped, and the required coverage
check never posts on the fork head, leaving the PR permanently BLOCKED.
Skip e2e on fork PRs only; keep unit-test and coverage running everywhere:
- e2e-test: `if: github.event.pull_request.head.repo.fork != true`. Runs on
internal PRs, push, and merge_group (no fork context there); skipped on forks.
A fork's code is still e2e-tested in the merge queue before it can merge.
- coverage: `if: !cancelled() && needs.unit-test.result == 'success' &&
needs.e2e-test.result != 'failure'` so a SKIPPED e2e (forks) doesn't auto-skip
coverage, while a genuine e2e FAILURE still blocks it (no regression).
- codecov upload step: gated to non-forks (CODECOV_TOKEN is absent on forks and
fail_ci_if_error would fail the required check); the report still generates
from unit-test artifacts, only the external upload is skipped.
Result: fork PRs run unit-test + coverage → coverage posts success → they can
auto-enqueue; the real e2e suite runs in the merge queue.
Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <115501094+eric-wang-1990@users.noreply.github.com>1 parent 6fdff86 commit 7dc5e39
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
162 | 171 | | |
163 | 172 | | |
164 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
165 | 180 | | |
166 | 181 | | |
167 | 182 | | |
| |||
188 | 203 | | |
189 | 204 | | |
190 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
191 | 210 | | |
| 211 | + | |
192 | 212 | | |
193 | 213 | | |
194 | 214 | | |
| |||
0 commit comments