|
| 1 | +name: Re-run |
| 2 | + |
| 3 | +on: |
| 4 | + issue_comment: |
| 5 | + types: [created] |
| 6 | + |
| 7 | +jobs: |
| 8 | + re-run: |
| 9 | + if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/re-run') && github.event.comment.user.login == github.event.issue.user.login }} |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - name: Cleanup |
| 13 | + run: | |
| 14 | + rm -rf * .[^.]* |
| 15 | +
|
| 16 | + - name: Checkout code |
| 17 | + uses: actions/checkout@v5 |
| 18 | + |
| 19 | + - name: Rerun all failed jobs |
| 20 | + if: ${{ contains(github.event.comment.body, 'all-failed') }} |
| 21 | + uses: ./.github/actions/rerun-workflow |
| 22 | + with: |
| 23 | + PR_ID: ${{ github.event.issue.number }} |
| 24 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 25 | + OWNER: ${{ github.repository_owner }} |
| 26 | + REPO: ${{ github.event.repository.name }} |
| 27 | + JOB_NAME: 'all-failed' |
| 28 | + |
| 29 | + - name: Rerun Approval |
| 30 | + if: ${{ contains(github.event.comment.body, 'approval') }} |
| 31 | + uses: ./.github/actions/rerun-workflow |
| 32 | + with: |
| 33 | + PR_ID: ${{ github.event.issue.number }} |
| 34 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 35 | + OWNER: ${{ github.repository_owner }} |
| 36 | + REPO: ${{ github.event.repository.name }} |
| 37 | + JOB_NAME: 'Approval' |
| 38 | + |
| 39 | + - name: Rerun CI_ILUVATAR |
| 40 | + if: ${{ contains(github.event.comment.body, 'ci_iluvatar') }} |
| 41 | + uses: ./.github/actions/rerun-workflow |
| 42 | + with: |
| 43 | + PR_ID: ${{ github.event.issue.number }} |
| 44 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + OWNER: ${{ github.repository_owner }} |
| 46 | + REPO: ${{ github.event.repository.name }} |
| 47 | + JOB_NAME: 'CI_ILUVATAR' |
| 48 | + |
| 49 | + - name: Rerun CI_XPU |
| 50 | + if: ${{ contains(github.event.comment.body, 'ci_xpu') }} |
| 51 | + uses: ./.github/actions/rerun-workflow |
| 52 | + with: |
| 53 | + PR_ID: ${{ github.event.issue.number }} |
| 54 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 55 | + OWNER: ${{ github.repository_owner }} |
| 56 | + REPO: ${{ github.event.repository.name }} |
| 57 | + JOB_NAME: 'CI_XPU' |
| 58 | + |
| 59 | + - name: Rerun Codestyle-check |
| 60 | + if: ${{ contains(github.event.comment.body, 'codestyle') || contains(github.event.comment.body, 'pre_commit') }} |
| 61 | + uses: ./.github/actions/rerun-workflow |
| 62 | + with: |
| 63 | + PR_ID: ${{ github.event.issue.number }} |
| 64 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 65 | + OWNER: ${{ github.repository_owner }} |
| 66 | + REPO: ${{ github.event.repository.name }} |
| 67 | + JOB_NAME: 'Pre Commit' |
| 68 | + |
| 69 | + - name: Rerun Clone |
| 70 | + if: ${{ contains(github.event.comment.body, 'clone') }} |
| 71 | + uses: ./.github/actions/rerun-workflow |
| 72 | + with: |
| 73 | + PR_ID: ${{ github.event.issue.number }} |
| 74 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 75 | + OWNER: ${{ github.repository_owner }} |
| 76 | + REPO: ${{ github.event.repository.name }} |
| 77 | + JOB_NAME: 'FD-Clone-Linux / code-clone' |
| 78 | + |
| 79 | + - name: Rerun Build |
| 80 | + if: ${{ contains(github.event.comment.body, 'build') }} |
| 81 | + uses: ./.github/actions/rerun-workflow |
| 82 | + with: |
| 83 | + PR_ID: ${{ github.event.issue.number }} |
| 84 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 85 | + OWNER: ${{ github.repository_owner }} |
| 86 | + REPO: ${{ github.event.repository.name }} |
| 87 | + JOB_NAME: 'FD-Build-Linux / fd-build' |
| 88 | + |
| 89 | + - name: Rerun run_ce_cases |
| 90 | + if: ${{ contains(github.event.comment.body, 'run_ce_cases') }} |
| 91 | + uses: ./.github/actions/rerun-workflow |
| 92 | + with: |
| 93 | + PR_ID: ${{ github.event.issue.number }} |
| 94 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 95 | + OWNER: ${{ github.repository_owner }} |
| 96 | + REPO: ${{ github.event.repository.name }} |
| 97 | + JOB_NAME: 'Extracted partial CE model tasks to run in CI. / run_ce_cases' |
| 98 | + |
| 99 | + - name: Rerun accuracy_tests |
| 100 | + if: ${{ contains(github.event.comment.body, 'accuracy_tests') }} |
| 101 | + uses: ./.github/actions/rerun-workflow |
| 102 | + with: |
| 103 | + PR_ID: ${{ github.event.issue.number }} |
| 104 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 105 | + OWNER: ${{ github.repository_owner }} |
| 106 | + REPO: ${{ github.event.repository.name }} |
| 107 | + JOB_NAME: 'Run Accuracy Tests / accuracy_tests' |
| 108 | + |
| 109 | + - name: Rerun base_tests |
| 110 | + if: ${{ contains(github.event.comment.body, 'base_tests') }} |
| 111 | + uses: ./.github/actions/rerun-workflow |
| 112 | + with: |
| 113 | + PR_ID: ${{ github.event.issue.number }} |
| 114 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 115 | + OWNER: ${{ github.repository_owner }} |
| 116 | + REPO: ${{ github.event.repository.name }} |
| 117 | + JOB_NAME: 'Run Base Tests / base_tests' |
| 118 | + |
| 119 | + - name: Rerun run_tests_logprob |
| 120 | + if: ${{ contains(github.event.comment.body, 'run_tests_logprob') }} |
| 121 | + uses: ./.github/actions/rerun-workflow |
| 122 | + with: |
| 123 | + PR_ID: ${{ github.event.issue.number }} |
| 124 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 125 | + OWNER: ${{ github.repository_owner }} |
| 126 | + REPO: ${{ github.event.repository.name }} |
| 127 | + JOB_NAME: 'Run FastDeploy LogProb Tests / run_tests_logprob' |
| 128 | + |
| 129 | + - name: Rerun run_tests_with_coverage |
| 130 | + if: ${{ contains(github.event.comment.body, 'run_tests_with_coverage') }} |
| 131 | + uses: ./.github/actions/rerun-workflow |
| 132 | + with: |
| 133 | + PR_ID: ${{ github.event.issue.number }} |
| 134 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 135 | + OWNER: ${{ github.repository_owner }} |
| 136 | + REPO: ${{ github.event.repository.name }} |
| 137 | + JOB_NAME: 'Run FastDeploy Unit Tests and Coverage / run_tests_with_coverage' |
| 138 | + |
| 139 | + - name: Rerun diff_coverage_report |
| 140 | + if: ${{ contains(github.event.comment.body, 'diff_coverage_report') }} |
| 141 | + uses: ./.github/actions/rerun-workflow |
| 142 | + with: |
| 143 | + PR_ID: ${{ github.event.issue.number }} |
| 144 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 145 | + OWNER: ${{ github.repository_owner }} |
| 146 | + REPO: ${{ github.event.repository.name }} |
| 147 | + JOB_NAME: 'Run FastDeploy Unit Tests and Coverage / diff_coverage_report' |
| 148 | + |
| 149 | + - name: Rerun stable_tests |
| 150 | + if: ${{ contains(github.event.comment.body, 'stable_tests') }} |
| 151 | + uses: ./.github/actions/rerun-workflow |
| 152 | + with: |
| 153 | + PR_ID: ${{ github.event.issue.number }} |
| 154 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 155 | + OWNER: ${{ github.repository_owner }} |
| 156 | + REPO: ${{ github.event.repository.name }} |
| 157 | + JOB_NAME: 'Run Stable Tests / stable_tests' |
0 commit comments