Skip to content

Commit

Permalink
chore(ci): Make "Required Tests passed" job depend on artifact upload…
Browse files Browse the repository at this point in the history
… and other required jobs (#8751)

Adjust our final "Required Tests Passed" CI job to not only
depend on required _test_ jobs but on _all_ required jobs. Specifically,
this adds

* Lint
* Circular deps check
* Most importantly: Upload Artifacts

With this change, we can configure craft's status provider to
specifically wait for this job which should fix the artifacts download
timeout (getsentry/craft#482). It's worth
noting that this PR will only fix this timeout in our repo and in a way
we're adjusting to the status provider check. However, given that we're
apparently the only repo where this happens, it's probably justified and
it makes things more explicit.
  • Loading branch information
Lms24 committed Aug 8, 2023
1 parent a4ae291 commit 672e56c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,8 @@ jobs:
timeout-minutes: 5
run: yarn test:assert

job_required_tests:
name: All required tests passed or skipped
job_required_jobs_passed:
name: All required jobs passed or were skipped
needs:
[
job_build,
Expand All @@ -870,6 +870,9 @@ jobs:
job_browser_loader_tests,
job_remix_integration_tests,
job_e2e_tests,
job_artifacts,
job_lint,
job_circular_dep_check,
]
# Always run this, even if a dependent job failed
if: always()
Expand Down

0 comments on commit 672e56c

Please sign in to comment.