mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
## About The Pull Request <img width="908" height="878" alt="image" src="https://github.com/user-attachments/assets/7262576b-f7d9-4be4-8cff-6662f85698fd" /> Our application of Ubuntu 22.04 versus Ubuntu 24.04 (which is presently the version for `ubuntu-latest`) is pretty inconsistent even within the same suites, I figure we bump it up and set one standard moving forwards. This PR was originally set to autoset it to `ubuntu-latest` but wow the issues are agonizing so let's just bump it up and keep it synchronized also bumps python to `3.11.0` and whatever dependency versions needed that as that was necessary
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: Rerun/Report Flaky Tests
|
|
on:
|
|
workflow_run:
|
|
workflows: [CI Suite]
|
|
types:
|
|
- completed
|
|
jobs:
|
|
rerun_flaky_tests:
|
|
runs-on: ubuntu-24.04
|
|
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- name: Rerun flaky tests
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const { rerunFlakyTests } = await import('${{ github.workspace }}/tools/pull_request_hooks/rerunFlakyTests.js')
|
|
await rerunFlakyTests({ github, context })
|
|
report_flaky_tests:
|
|
runs-on: ubuntu-24.04
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.run_attempt == 2 }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- name: Report flaky tests
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const { reportFlakyTests } = await import('${{ github.workspace }}/tools/pull_request_hooks/rerunFlakyTests.js')
|
|
await reportFlakyTests({ github, context })
|