|
20 | 20 | types: [created] |
21 | 21 | workflow_dispatch: |
22 | 22 | inputs: |
23 | | - platform: |
24 | | - description: 'runs-on argument' |
25 | | - required: false |
26 | | - args: |
27 | | - description: 'argument' |
| 23 | + sha: |
| 24 | + description: 'commit sha' |
| 25 | + required: true |
| 26 | + test_result: |
| 27 | + description: 'test result' |
28 | 28 | required: false |
| 29 | + test_results_url: |
| 30 | + description: 'test results url' |
| 31 | + required: true |
29 | 32 | jobs: |
30 | 33 | Authorization: |
31 | 34 | name: Authorization |
|
35 | 38 |
|
36 | 39 | # This job only runs for pull request comments |
37 | 40 | if: | |
38 | | - github.event.comment.body == '/build' && (github.actor == 'niukuo' || github.actor == 'niukuo') |
| 41 | + startsWith( github.event.comment.body, '/bot' ) && contains('["niukuo", "tburt-nv"]', github.actor) |
39 | 42 | steps: |
40 | 43 | - name: Check if comment is issued by authorized person |
41 | 44 | run: blossom-ci |
@@ -78,14 +81,28 @@ jobs: |
78 | 81 | CI_SERVER: ${{ secrets.CI_SERVER }} |
79 | 82 | REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
80 | 83 |
|
81 | | - Upload-Log: |
82 | | - name: Upload log |
83 | | - runs-on: blossom |
84 | | - if : github.event_name == 'workflow_dispatch' |
| 84 | + Upload-Test: |
| 85 | + name: Upload test results |
| 86 | + runs-on: linux-amd64-cpu4 |
| 87 | + if: github.event_name == 'workflow_dispatch' |
85 | 88 | steps: |
86 | | - - name: Jenkins log for pull request ${{ fromJson(github.event.inputs.args).pr }} (click here) |
87 | | - run: blossom-ci |
88 | | - env: |
89 | | - OPERATION: 'POST-PROCESSING' |
90 | | - CI_SERVER: ${{ secrets.CI_SERVER }} |
91 | | - REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 89 | + - name: Collect test result |
| 90 | + run: rm -rf results && mkdir results && cd results && curl --user svc_tensorrt:${{ secrets.ARTIFACTORY_TOKEN }} -L ${{ github.event.inputs.test_results_url }} | tar -xz |
| 91 | + - name: Create test summary |
| 92 | + id: test_summary |
| 93 | + uses: test-summary/action@dist |
| 94 | + with: |
| 95 | + paths: results/**/results*.xml |
| 96 | + - name: Update commit status |
| 97 | + uses: actions/github-script@v6 |
| 98 | + with: |
| 99 | + script: | |
| 100 | + github.rest.repos.createCommitStatus({ |
| 101 | + owner: context.repo.owner, |
| 102 | + repo: context.repo.repo, |
| 103 | + context: 'blossom-ci', |
| 104 | + sha: '${{ github.event.inputs.sha }}', |
| 105 | + target_url: 'https://github.com/NVIDIA/TensorRT-LLM/actions/runs/' + context.runId, |
| 106 | + state: '${{ steps.test_summary.outputs.failed > 0 && 'failure' || github.event.inputs.test_result || 'success' }}', |
| 107 | + description: '${{ steps.test_summary.outputs.passed }} passed, ${{ steps.test_summary.outputs.failed }} failed, ${{ steps.test_summary.outputs.skipped }} skipped', |
| 108 | + }) |
0 commit comments