Repository navigation
Commit 485ca40
committed
Read the tests set aside once per job, so no test step holds a token
#2987 gave each test step GH_TOKEN, so its runner could read the open flaky-test issues. On main
that broke three things, and #2990 reverted it:
- The test shard's step held a value the upstream upgrade cannot run (scripts/integrate-upstream.ts
refuses an expression in a step's env).
- The tests inherited the token. scripts/ci-run-tests.test.ts runs ci-run-tests.ts, which then
asked GitHub through the suite's closed network and timed out at 5 seconds, three times.
- api/client-boundary.test.ts did not know the script's fetch() (fixed in the commit before).
Now each test job reads the list once, in a `uses` step of its own
(.github/actions/flaky-tests-quarantine, `bun scripts/flaky-tests.ts quarantine <file>`), into
flaky-tests-quarantine.json in the runner's temporary folder. The test steps read that file and
never ask GitHub, and hold no token. The upstream upgrade skips `uses` steps, so it runs the shard's
steps as before.
Regression tests: a test step with a token in its environment makes no request to GitHub, and
every ci.yml job that runs tests reads the list first and has no token in a test step. Both fail
on #2987 as it landed, as do the upstream checks and ci-run-tests tests it broke.1 parent cb776ce commit 485ca40
6 files changed
Lines changed: 255 additions & 42 deletions
File tree
- .github
- actions/flaky-tests-quarantine
- workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
462 | 465 | | |
463 | 466 | | |
464 | 467 | | |
| |||
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
564 | | - | |
565 | | - | |
566 | 567 | | |
567 | 568 | | |
568 | 569 | | |
| |||
734 | 735 | | |
735 | 736 | | |
736 | 737 | | |
| 738 | + | |
737 | 739 | | |
738 | 740 | | |
739 | 741 | | |
| |||
887 | 889 | | |
888 | 890 | | |
889 | 891 | | |
890 | | - | |
891 | | - | |
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
905 | | - | |
906 | 904 | | |
907 | 905 | | |
908 | 906 | | |
| |||
944 | 942 | | |
945 | 943 | | |
946 | 944 | | |
| 945 | + | |
947 | 946 | | |
948 | 947 | | |
949 | 948 | | |
950 | | - | |
951 | | - | |
952 | | - | |
| 949 | + | |
953 | 950 | | |
954 | 951 | | |
955 | 952 | | |
| |||
964 | 961 | | |
965 | 962 | | |
966 | 963 | | |
967 | | - | |
968 | | - | |
969 | | - | |
| 964 | + | |
970 | 965 | | |
971 | 966 | | |
972 | 967 | | |
| |||
1026 | 1021 | | |
1027 | 1022 | | |
1028 | 1023 | | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1029 | 1028 | | |
1030 | 1029 | | |
1031 | 1030 | | |
1032 | 1031 | | |
1033 | | - | |
1034 | | - | |
1035 | 1032 | | |
1036 | 1033 | | |
1037 | 1034 | | |
| |||
1120 | 1117 | | |
1121 | 1118 | | |
1122 | 1119 | | |
| 1120 | + | |
1123 | 1121 | | |
1124 | 1122 | | |
1125 | 1123 | | |
| |||
1136 | 1134 | | |
1137 | 1135 | | |
1138 | 1136 | | |
1139 | | - | |
1140 | | - | |
1141 | 1137 | | |
1142 | 1138 | | |
1143 | 1139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | | - | |
112 | 113 | | |
| 114 | + | |
113 | 115 | | |
114 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
115 | 143 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
122 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
123 | 168 | | |
124 | 169 | | |
125 | 170 | | |
| |||
254 | 299 | | |
255 | 300 | | |
256 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
257 | 365 | | |
258 | 366 | | |
259 | 367 | | |
| |||
0 commit comments