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
15 changes: 6 additions & 9 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: End-to-end tests

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
merge_group:

Expand Down Expand Up @@ -42,7 +39,7 @@ jobs:
id: matrix
run: |
# PRs: run only amd64 e2e tests to save CI time.
# Merge queue, push to main, and workflow_dispatch run both architectures.
# Merge queue and workflow_dispatch run both architectures.
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo 'e2e-matrix=[{"os": "ubuntu-24.04", "arch": "amd64"}]' >> "$GITHUB_OUTPUT"
else
Expand All @@ -55,7 +52,7 @@ jobs:

build-controller-image:
needs: changes
if: needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
if: needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch'
strategy:
matrix:
include: ${{ fromJson(needs.changes.outputs.e2e-matrix) }}
Expand Down Expand Up @@ -94,7 +91,7 @@ jobs:

build-operator-image:
needs: changes
if: needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
if: needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch'
strategy:
matrix:
include: ${{ fromJson(needs.changes.outputs.e2e-matrix) }}
Expand Down Expand Up @@ -138,7 +135,7 @@ jobs:

build-python-wheels:
needs: changes
if: needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
if: needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
Expand Down Expand Up @@ -243,7 +240,7 @@ jobs:

e2e-compat-old-controller:
needs: changes
# Skip on PRs — compat tests run in merge queue, push to main, and workflow_dispatch.
# Skip on PRs — compat tests run in merge queue and workflow_dispatch.
if: >-
github.event_name != 'pull_request'
&& (needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch')
Expand Down Expand Up @@ -285,7 +282,7 @@ jobs:

e2e-compat-old-client:
needs: [changes, build-controller-image, build-operator-image, build-python-wheels]
# Skip on PRs — compat tests run in merge queue, push to main, and workflow_dispatch.
# Skip on PRs — compat tests run in merge queue and workflow_dispatch.
if: >-
github.event_name != 'pull_request'
&& (needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch')
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Linters

on:
workflow_dispatch:
push:
branches:
- main
- 'release-*'
pull_request:
merge_group:

Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Python Tests

on:
workflow_dispatch:
push:
branches:
- main
- release-*
pull_request:
merge_group:

Expand Down Expand Up @@ -42,7 +38,7 @@ jobs:
id: matrix
run: |
# PRs: test only Python 3.12 on Linux to save CI time.
# Merge queue, push to main, and workflow_dispatch run the full matrix
# Merge queue and workflow_dispatch run the full matrix
# (all Python versions on both Linux and macOS).
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo 'python-versions=["3.12"]' >> "$GITHUB_OUTPUT"
Expand All @@ -62,7 +58,7 @@ jobs:
# Floor: oldest Python in supported platforms (RHEL 9 appstream)
# Ceiling: newest Python in latest Fedora
# Review on each RHEL/Fedora release
# PRs run only 3.12 on Linux; merge queue / push run all versions
# PRs run only 3.12 on Linux; merge queue runs all versions
# on both Linux and macOS.
python-version: ${{ fromJson(needs.changes.outputs.python-versions) }}
steps:
Expand Down
Loading