Skip to content
Draft
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
18 changes: 18 additions & 0 deletions .github/workflows/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,24 @@ jobs:
- name: Run Test ${{ matrix.test }} on ${{ matrix.container-image }}
run: fluent-package/apt/systemd-test/test.sh ${{ matrix.container-image }} ${{ matrix.test }}

retry_test:
runs-on: ubuntu-latest
needs: test
if: failure() && github.run_attempt == 1
permissions:
actions: write
steps:
- name: Trigger Retry via GitHub API
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
console.log(`Job failed. Attempt number: ${context.runAttempt}. Triggering automatic retry...`);
await github.rest.actions.reRunWorkflowFailedJobs({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId
});

confluent_test:
name: Confluent Test
runs-on: ubuntu-latest
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,21 @@ jobs:
--volume ${PWD}:C:\fluentd:ro `
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\${{ matrix.test }}"

retry_test:
runs-on: windows-2022
needs: test
if: failure() && github.run_attempt == 1
permissions:
actions: write
steps:
- name: Trigger Retry via GitHub API
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
console.log(`Job failed. Attempt number: ${context.runAttempt}. Triggering automatic retry...`);
await github.rest.actions.reRunWorkflowFailedJobs({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId
});
18 changes: 18 additions & 0 deletions .github/workflows/yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,24 @@ jobs:
- name: Run Test ${{ matrix.test }} on ${{ matrix.test-incus-image }}
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-incus-image }} ${{ matrix.test }}

retry_v2test:
runs-on: ubuntu-latest
needs: v2test
if: failure() && github.run_attempt == 1
permissions:
actions: write
steps:
- name: Trigger Retry via GitHub API
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
console.log(`Job failed. Attempt number: ${context.runAttempt}. Triggering automatic retry...`);
await github.rest.actions.reRunWorkflowFailedJobs({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId
});

confluent_test:
name: Confluent Test
runs-on: ubuntu-latest
Expand Down
Loading