Skip to content

CI Supervisor: Rerun flaky failures #45373

CI Supervisor: Rerun flaky failures

CI Supervisor: Rerun flaky failures #45373

name: "CI Supervisor: Rerun flaky failures"
on: # zizmor: ignore[dangerous-triggers] checks out only scripts/rerun-flaky.sh from default branch (explicit ref); GITHUB_TOKEN scoped to actions:write
workflow_run:
workflows:
- "PR checks"
- "Lint"
- "Unit tests"
- "Unit tests (privileged)"
- "BPF verifier"
- "Integration tests"
- "Integration tests ARM"
- "Integration tests K8S"
- "OATS tests"
- "Build test"
- "Integration tests VM"
- "Java Agent CI"
types: [completed]
permissions: {}
concurrency:
group: "supervisor-${{ github.event.workflow_run.id }}"
cancel-in-progress: false
jobs:
evaluate-and-rerun:
name: Evaluate failed checks
if: >
github.event.workflow_run.conclusion == 'failure' ||
github.event.workflow_run.conclusion == 'timed_out'
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
sparse-checkout: scripts/rerun-flaky.sh
sparse-checkout-cone-mode: false
- name: Evaluate and rerun flaky failures
env:
GH_TOKEN: ${{ github.token }}
RUN_ID: ${{ github.event.workflow_run.id }}
WORKFLOW_NAME: ${{ github.event.workflow_run.name }}
REPO: ${{ github.repository }}
run: bash scripts/rerun-flaky.sh