Skip to content

Commit 122f766

Browse files
[opt](ci) support skip check_coverage (apache#53974)
1 parent fe80f3c commit 122f766

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/comment-to-trigger-teamcity.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,27 @@ jobs:
8585
echo "COMMENT_USER_ID ${COMMENT_USER_ID} is not allowed to skip buildall."
8686
exit
8787
fi
88+
elif [[ "${COMMENT_BODY}" == *'skip check_coverage'* ]] &&
89+
[[ "${COMMENT_USER_ID}" == '37901441' ||
90+
"${COMMENT_USER_ID}" == '27881198' ||
91+
"${COMMENT_USER_ID}" == '9208457' ||
92+
"${COMMENT_USER_ID}" == '10553413' ||
93+
"${COMMENT_USER_ID}" == '1736049' ||
94+
"${COMMENT_USER_ID}" == '64513324' ||
95+
"${COMMENT_USER_ID}" == '2274896' ||
96+
"${COMMENT_USER_ID}" == '98214048' ||
97+
"${COMMENT_USER_ID}" == '19986811' ||
98+
"${COMMENT_USER_ID}" == '48427519' ||
99+
"${COMMENT_USER_ID}" == '6919662' ||
100+
"${COMMENT_USER_ID}" == '101034200' ||
101+
"${COMMENT_USER_ID}" == '2899462' ]]; then
102+
echo "comment_trigger=false" | tee -a "$GITHUB_OUTPUT"
103+
echo "comment_skip=false" | tee -a "$GITHUB_OUTPUT"
104+
echo "comment_skip_coverage=true" | tee -a "$GITHUB_OUTPUT"
88105
else
89106
echo "comment_trigger=false" | tee -a "$GITHUB_OUTPUT"
90107
echo "comment_skip=false" | tee -a "$GITHUB_OUTPUT"
108+
echo "comment_skip_coverage=false" | tee -a "$GITHUB_OUTPUT"
91109
echo "find no keyword in comment body, skip this action."
92110
exit
93111
fi
@@ -188,6 +206,13 @@ jobs:
188206
# if: ${{ failure() }}
189207
# uses: mxschmitt/action-tmate@v3
190208

209+
- name: "skip check coverage"
210+
if: ${{ fromJSON(steps.parse.outputs.comment_skip_coverage) }}
211+
run: |
212+
source ./regression-test/pipeline/common/teamcity-utils.sh
213+
set -x
214+
skip_build "${{ steps.parse.outputs.COMMIT_ID_FROM_TRIGGER }}" check_coverage
215+
191216
- name: "Trigger or Skip feut"
192217
if: ${{ fromJSON(steps.parse.outputs.comment_trigger) && contains(fromJSON('["feut", "buildall"]'), steps.parse.outputs.COMMENT_TRIGGER_TYPE) }}
193218
run: |

0 commit comments

Comments
 (0)