|
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_results_url: |
| 27 | + description: 'test results url' |
28 | 28 | required: false
|
29 | 29 | jobs:
|
30 | 30 | Authorization:
|
|
35 | 35 |
|
36 | 36 | # This job only runs for pull request comments
|
37 | 37 | if: |
|
38 |
| - github.event.comment.body == '/build' && (github.actor == 'niukuo' || github.actor == 'niukuo') |
| 38 | + github.event.comment.body == '/build' && contains('["niukuo"]', github.actor) |
39 | 39 | steps:
|
40 | 40 | - name: Check if comment is issued by authorized person
|
41 | 41 | run: blossom-ci
|
@@ -78,14 +78,28 @@ jobs:
|
78 | 78 | CI_SERVER: ${{ secrets.CI_SERVER }}
|
79 | 79 | REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
80 | 80 |
|
81 |
| - Upload-Log: |
82 |
| - name: Upload log |
83 |
| - runs-on: blossom |
84 |
| - if : github.event_name == 'workflow_dispatch' |
| 81 | + Upload-Test: |
| 82 | + name: Upload test results |
| 83 | + runs-on: niukuo |
| 84 | + if: github.event_name == 'workflow_dispatch' |
85 | 85 | 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 }} |
| 86 | + - name: Collect test result |
| 87 | + run: rm -rf results && mkdir results && cd results && curl -L ${{ github.event.inputs.test_results_url }} | tar -xz |
| 88 | + - name: Create test summary |
| 89 | + id: test_summary |
| 90 | + uses: test-summary/action@dist |
| 91 | + with: |
| 92 | + paths: results/**/results*.xml |
| 93 | + - name: Update commit status |
| 94 | + uses: actions/github-script@v6 |
| 95 | + with: |
| 96 | + script: | |
| 97 | + github.rest.repos.createCommitStatus({ |
| 98 | + owner: context.repo.owner, |
| 99 | + repo: context.repo.repo, |
| 100 | + context: 'blossom-ci', |
| 101 | + sha: '${{ github.event.inputs.sha }}', |
| 102 | + target_url: 'https://github.com/NVIDIA/TensorRT-LLM/actions/runs/' + context.runId, |
| 103 | + state: '${{ steps.test_summary.outputs.failed == 0 && 'success' || 'failure' }}', |
| 104 | + description: '${{ steps.test_summary.outputs.passed }} passed, ${{ steps.test_summary.outputs.failed }} failed, ${{ steps.test_summary.outputs.skipped }} skipped', |
| 105 | + }) |
0 commit comments