Commit 0ddc356
committed
fix(ci): wait for versions json upload before dispatch
The evidence-reporter-upload-package-and-deploy and
environment-reporter-upload-package-and-deploy jobs fire
repository_dispatch events into other Kosli repos. Those repos
dispatch onward to further downstream repos, which read
lambda_layer_versions.json from S3 -- the file written by
environment-reporter-upload-layer in this workflow.
Until now, the two dispatching jobs only declared pre-build and
goreleaser as needs, so they could run before
environment-reporter-upload-layer had finished uploading
lambda_layer_versions.json. Jobs at the end of the dispatch chain
were intermittently failing because the file was not yet in S3;
manually re-running them succeeded, since by then the upload had
completed -- a clear race-condition defect.
Add environment-reporter-upload-layer to the needs list for both
jobs so the dispatches only fire once the file is in S3.1 parent 2023a6e commit 0ddc356
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments