diff --git a/.github/workflows/ci-workflow-pull-request.yml b/.github/workflows/ci-workflow-pull-request.yml index f1990174557..d266162714e 100644 --- a/.github/workflows/ci-workflow-pull-request.yml +++ b/.github/workflows/ci-workflow-pull-request.yml @@ -31,81 +31,81 @@ concurrency: jobs: - build-workflow: - name: Build workflow from matrix - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: read - outputs: - workflow: ${{ steps.build-workflow.outputs.workflow }} - workflow_keys: ${{ steps.build-workflow.outputs.workflow_keys }} - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - name: Lookup PR info - id: get-pr-info - uses: nv-gha-runners/get-pr-info@main - - name: Build workflow - id: build-workflow - uses: ./.github/actions/workflow-build - with: - skip_tests: ${{ toJSON(contains(github.event.head_commit.message, '[skip-tests]')) }} - inspect_changes_script: ${{ toJSON(!contains(github.event.head_commit.message, '[all-projects]') && 'ci/inspect_changes.sh' || '') }} - inspect_changes_base_sha: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.sha }} - workflows: >- - ${{ !contains(github.event.head_commit.message, '[workflow:!pull_request]') && 'pull_request' || '' }} - ${{ contains(github.event.head_commit.message, '[workflow:nightly]') && 'nightly' || '' }} - ${{ contains(github.event.head_commit.message, '[workflow:test]') && 'test' || '' }} - - run-workflow: - name: ${{ matrix.name }} - needs: build-workflow - permissions: - id-token: write - contents: read - strategy: - fail-fast: false - matrix: - name: ${{ fromJSON(needs.build-workflow.outputs.workflow_keys) }} - uses: ./.github/workflows/workflow-dispatch.yml - with: - name: ${{ matrix.name }} - jobs: ${{ toJSON(fromJSON(needs.build-workflow.outputs.workflow)[matrix.name]) }} - - # This job acts as a sentry and will fail if any leaf job in the workflow tree fails, as - # run-workflow always succeeds. Use this job when checking for successful matrix workflow job completion. - verify-workflow: - name: Verify and summarize workflow results - if: ${{ always() && !cancelled() }} - needs: - - build-workflow - - run-workflow - permissions: - contents: read - pull-requests: write # Posts a comment back to the PR. - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Get Base Branch from PR - id: get-pr-info - uses: nv-gha-runners/get-pr-info@main - - - name: Check workflow success - id: check-workflow - uses: ./.github/actions/workflow-results - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - pr_number: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).number }} - - verify-devcontainers: - name: Verify Dev Containers - permissions: - id-token: write - contents: read - uses: ./.github/workflows/verify-devcontainers.yml + # build-workflow: + # name: Build workflow from matrix + # runs-on: ubuntu-latest + # permissions: + # contents: read + # pull-requests: read + # outputs: + # workflow: ${{ steps.build-workflow.outputs.workflow }} + # workflow_keys: ${{ steps.build-workflow.outputs.workflow_keys }} + # steps: + # - name: Checkout repo + # uses: actions/checkout@v3 + # - name: Lookup PR info + # id: get-pr-info + # uses: nv-gha-runners/get-pr-info@main + # - name: Build workflow + # id: build-workflow + # uses: ./.github/actions/workflow-build + # with: + # skip_tests: ${{ toJSON(contains(github.event.head_commit.message, '[skip-tests]')) }} + # inspect_changes_script: ${{ toJSON(!contains(github.event.head_commit.message, '[all-projects]') && 'ci/inspect_changes.sh' || '') }} + # inspect_changes_base_sha: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.sha }} + # workflows: >- + # ${{ !contains(github.event.head_commit.message, '[workflow:!pull_request]') && 'pull_request' || '' }} + # ${{ contains(github.event.head_commit.message, '[workflow:nightly]') && 'nightly' || '' }} + # ${{ contains(github.event.head_commit.message, '[workflow:test]') && 'test' || '' }} + + # run-workflow: + # name: ${{ matrix.name }} + # needs: build-workflow + # permissions: + # id-token: write + # contents: read + # strategy: + # fail-fast: false + # matrix: + # name: ${{ fromJSON(needs.build-workflow.outputs.workflow_keys) }} + # uses: ./.github/workflows/workflow-dispatch.yml + # with: + # name: ${{ matrix.name }} + # jobs: ${{ toJSON(fromJSON(needs.build-workflow.outputs.workflow)[matrix.name]) }} + + # # This job acts as a sentry and will fail if any leaf job in the workflow tree fails, as + # # run-workflow always succeeds. Use this job when checking for successful matrix workflow job completion. + # verify-workflow: + # name: Verify and summarize workflow results + # if: ${{ always() && !cancelled() }} + # needs: + # - build-workflow + # - run-workflow + # permissions: + # contents: read + # pull-requests: write # Posts a comment back to the PR. + # runs-on: ubuntu-latest + # steps: + # - name: Checkout repo + # uses: actions/checkout@v3 + + # - name: Get Base Branch from PR + # id: get-pr-info + # uses: nv-gha-runners/get-pr-info@main + + # - name: Check workflow success + # id: check-workflow + # uses: ./.github/actions/workflow-results + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # pr_number: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).number }} + + # verify-devcontainers: + # name: Verify Dev Containers + # permissions: + # id-token: write + # contents: read + # uses: ./.github/workflows/verify-devcontainers.yml build-rapids: name: Build RAPIDS @@ -127,8 +127,9 @@ jobs: # !! can be bypassed by cancelling CI. See NVIDIA/cccl#605. if: ${{ always() }} needs: - - verify-workflow - - verify-devcontainers + - build-rapids + # - verify-workflow + # - verify-devcontainers runs-on: ubuntu-latest steps: - name: Check results