Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,33 @@ jobs:

- name: Setup and build wasm
uses: ./.github/actions/setup_build_wasm

gate:
name: PR Gate
runs-on: ubuntu-latest
timeout-minutes: 5
# Branch-protection fan-in: one stable required context for this whole workflow.
# A matrix job skipped by its job-level `if:` reports a single check run under the
# *unexpanded* name (`Test for ${{ matrix.platform.target }}`) because the matrix is
# never evaluated -- so per-leg contexts never report and required checks hang on
# "Expected". This job always runs, so its name always reports.
if: always()
needs: [build_release, test, trunk_check_runner, build_pyo3, build_wasm]
steps:
- name: Check fan-in results
env:
RESULTS: ${{ join(needs.*.result, ' ') }}
shell: bash
run: |
read -ra results <<<"${RESULTS}"
for result in "${results[@]}"; do
case "${result}" in
# A skipped job is a pass: it was deliberately not run for this change.
success | skipped) ;;
*)
echo "::error::a needed job reported '${result}'"
exit 1
;;
esac
done
echo "needed jobs all passed or were skipped: ${RESULTS}"
32 changes: 32 additions & 0 deletions .github/workflows/pyo3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,3 +300,35 @@ jobs:
- name: Annotate workflow with S3 reference
run: |
echo "::notice title=Published bindings::context-py bindings published to S3 at ${{ needs.get-date-sha.outputs.reference }}"

gate:
name: context-py Gate
runs-on: ubuntu-latest
timeout-minutes: 5
# Branch-protection fan-in: one stable required context for this whole workflow.
# A matrix job skipped by its job-level `if:` reports a single check run under the
# *unexpanded* name (`Test for ${{ matrix.platform.target }}`) because the matrix is
# never evaluated -- so per-leg contexts never report and required checks hang on
# "Expected". This job always runs, so its name always reports.
# linux-pytest is omitted: it is not a required check today, and this job
# preserves that set rather than widening it.
if: always()
needs: [linux, macos, sdist]
steps:
- name: Check fan-in results
env:
RESULTS: ${{ join(needs.*.result, ' ') }}
shell: bash
run: |
read -ra results <<<"${RESULTS}"
for result in "${results[@]}"; do
case "${result}" in
# A skipped job is a pass: it was deliberately not run for this change.
success | skipped) ;;
*)
echo "::error::a needed job reported '${result}'"
exit 1
;;
esac
done
echo "needed jobs all passed or were skipped: ${RESULTS}"
31 changes: 31 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,34 @@ jobs:
platform: x86_64-linux
artifact-pattern: ""
knapsack-pro-test-suite-token-rspec: ${{ secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC }}

gate:
name: rspec Gate
runs-on: ubuntu-latest
timeout-minutes: 5
# Branch-protection fan-in: one stable required context for this whole workflow.
# A matrix job skipped by its job-level `if:` reports a single check run under the
# *unexpanded* name (`Test for ${{ matrix.platform.target }}`) because the matrix is
# never evaluated -- so per-leg contexts never report and required checks hang on
# "Expected". This job always runs, so its name always reports.
# build-ruby-gem / test-ruby-gem-uploads are omitted: not required checks today.
if: always()
needs: [build]
steps:
- name: Check fan-in results
env:
RESULTS: ${{ join(needs.*.result, ' ') }}
shell: bash
run: |
read -ra results <<<"${RESULTS}"
for result in "${results[@]}"; do
case "${result}" in
# A skipped job is a pass: it was deliberately not run for this change.
success | skipped) ;;
*)
echo "::error::a needed job reported '${result}'"
exit 1
;;
esac
done
echo "needed jobs all passed or were skipped: ${RESULTS}"
30 changes: 30 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,33 @@ jobs:
if: "!cancelled() && github.event_name != 'pull_request'"
run: |
echo "::notice title=Published bindings::context-js bindings published to S3 at ${{ steps.get-date-sha.outputs.reference }}"

gate:
name: context-js Gate
runs-on: ubuntu-latest
timeout-minutes: 5
# Branch-protection fan-in: one stable required context for this whole workflow.
# A matrix job skipped by its job-level `if:` reports a single check run under the
# *unexpanded* name (`Test for ${{ matrix.platform.target }}`) because the matrix is
# never evaluated -- so per-leg contexts never report and required checks hang on
# "Expected". This job always runs, so its name always reports.
if: always()
needs: [build]
steps:
- name: Check fan-in results
env:
RESULTS: ${{ join(needs.*.result, ' ') }}
shell: bash
run: |
read -ra results <<<"${RESULTS}"
for result in "${results[@]}"; do
case "${result}" in
# A skipped job is a pass: it was deliberately not run for this change.
success | skipped) ;;
*)
echo "::error::a needed job reported '${result}'"
exit 1
;;
esac
done
echo "needed jobs all passed or were skipped: ${RESULTS}"
Loading