Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check job results in pr-builder #237

Merged
merged 13 commits into from
Aug 22, 2024
Merged

Conversation

KyleFromNVIDIA
Copy link
Contributor

@KyleFromNVIDIA KyleFromNVIDIA commented Aug 22, 2024

Add a new input, needs, which should just be the value of ${{ toJSON(needs) }} from the calling workflow. This input will be checked to see if all of the needed jobs have a result of either success or skipped. This allows dependencies of pr-builder to be skipped. See rapidsai/cudf#16642 (comment) for the motivating use case.

Workflows that use pr-builder should have if: always() and with: needs: ${{ toJSON(needs) }}. Workflows that have not yet been updated for this new input will continue to work as before, because the needs input has a default value of {}, which will always pass this check, just as if the old exit 0 had been called.

Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to work well in the cudf PR that was testing it. Seems fine to me.

@KyleFromNVIDIA KyleFromNVIDIA merged commit a11c2b0 into branch-24.10 Aug 22, 2024
@KyleFromNVIDIA KyleFromNVIDIA deleted the pr-builder-needs-check branch August 22, 2024 21:07
KyleFromNVIDIA added a commit to KyleFromNVIDIA/gha-tools that referenced this pull request Aug 23, 2024
With rapidsai/shared-workflows#237, workflows
may now specify `if: always()` to allow skipping jobs. This requires
passing a `needs` input with `${{ toJSON(needs) }}`. Enforce this
new rule in `rapids-check-pr-job-dependencies`, and add some tests
for the tool.
rapids-bot bot pushed a commit to nv-morpheus/Morpheus that referenced this pull request Aug 23, 2024
…celled" (#1860)

CIs are failing because of #1736 not playing well with  rapidsai/shared-workflows#237

As a stopgap I am reverting the changes in #1736

Authors:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - David Gardner (https://github.com/dagardner-nv)

URL: #1860
dagardner-nv pushed a commit to dagardner-nv/Morpheus that referenced this pull request Aug 23, 2024
…celled" (nv-morpheus#1860)

CIs are failing because of nv-morpheus#1736 not playing well with  rapidsai/shared-workflows#237

As a stopgap I am reverting the changes in nv-morpheus#1736

Authors:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - David Gardner (https://github.com/dagardner-nv)

URL: nv-morpheus#1860
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants