🌐 AI搜索 & 代理 主页
Skip to content

Commit 64728df

Browse files
[PATCH] Template Regression check in CI/CD
* see GHI #5974
1 parent 3dd549f commit 64728df

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

.github/actions/CI-5974-Test-RustPython-Integration/action.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,19 @@ runs:
165165
fi ;
166166
if [ -n ${RAW_COPY_OUTCOME} ]; then
167167
if [[ "${RAW_COPY_OUTCOME}" == "compatible" ]] ; then
168-
printf "%s\n" ":ballot_box_with_check: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
168+
# printf "%s\n" ":ballot_box_with_check: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
169+
printf "## %s\n| Direct copy | :ballot_box_with_check: %s |\n" "\`${reference_file}\`" "${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
169170
else
170-
printf "%s\n" ":black_square_button: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
171+
# printf "%s\n" ":black_square_button: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
172+
printf "## %s\n| Direct copy | :black_square_button: %s |\n" "\`${reference_file}\`" "${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
171173
fi ;
172174
if [ -n ${FIX_COPY_OUTCOME} ]; then
173175
if [[ "${FIX_COPY_OUTCOME}" == "fixed" ]] ; then
174-
printf "%s\n\n" " :ballot_box_with_check: Copying and Auto-fixing the test file \`${reference_file}\` was successful" >> "${TEST_STEP_SUMMARY}" ;
176+
# printf "%s\n\n" " :ballot_box_with_check: Copying and Auto-fixing the test file \`${reference_file}\` was successful" >> "${TEST_STEP_SUMMARY}" ;
177+
printf "| Auto‑fix | :ballot_box_with_check: %s |\n\n" "successful" >> "${TEST_STEP_SUMMARY}" ;
175178
else
176-
printf "%s\n\n" " :grey_exclamation: Copying and Auto-fixing the test file \`${reference_file}\` was ${FIX_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
179+
# printf "%s\n\n" " :grey_exclamation: Copying and Auto-fixing the test file \`${reference_file}\` was ${FIX_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
180+
printf "| Auto‑fix | :grey_exclamation: %s |\n\n" "${FIX_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
177181
fi ; # end auto-fix
178182
else
179183
printf "\n" >> "${TEST_STEP_SUMMARY}" ; # extra space
@@ -229,15 +233,19 @@ runs:
229233
fi ;
230234
if [ -n ${RAW_COPY_OUTCOME} ]; then
231235
if [[ "${RAW_COPY_OUTCOME}" == "compatible" ]] ; then
232-
printf "%s\n" ":ballot_box_with_check: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
236+
# printf "%s\n" ":ballot_box_with_check: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
237+
printf "## %s\n| Direct copy | :ballot_box_with_check: %s |\n" "\`${reference_file}\`" "${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
233238
else
234-
printf "%s\n" ":black_square_button: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
239+
# printf "%s\n" ":black_square_button: Directly copying the test file \`${reference_file}\` is ${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
240+
printf "## %s\n| Direct copy | :black_square_button: %s |\n" "\`${reference_file}\`" "${RAW_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
235241
fi ;
236242
if [ -n ${FIX_COPY_OUTCOME} ]; then
237243
if [[ "${FIX_COPY_OUTCOME}" == "fixed" ]] ; then
238-
printf "%s\n\n" " :ballot_box_with_check: Copying and Auto-fixing the test file \`${reference_file}\` was successful" >> "${TEST_STEP_SUMMARY}" ;
244+
# printf "%s\n\n" " :ballot_box_with_check: Copying and Auto-fixing the test file \`${reference_file}\` was successful" >> "${TEST_STEP_SUMMARY}" ;
245+
printf "| Auto‑fix | :ballot_box_with_check: %s |\n\n" "successful" >> "${TEST_STEP_SUMMARY}" ;
239246
else
240-
printf "%s\n\n" " :grey_exclamation: Copying and Auto-fixing the test file \`${reference_file}\` was ${FIX_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
247+
# printf "%s\n\n" " :grey_exclamation: Copying and Auto-fixing the test file \`${reference_file}\` was ${FIX_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
248+
printf "| Auto‑fix | :grey_exclamation: %s |\n\n" "${FIX_COPY_OUTCOME}" >> "${TEST_STEP_SUMMARY}" ;
241249
fi ; # end auto-fix
242250
else
243251
printf "\n" >> "${TEST_STEP_SUMMARY}" ; # extra space
@@ -259,7 +267,8 @@ runs:
259267
wait ;
260268
else
261269
printf "\nNow Skipping '%s'\n\n" "${reference_file}" ;
262-
printf "%s\n" ":grey_exclamation: Directly copying the filepath \`${reference_file}\` was inconclusive (_testing and validation skipped_)." >> "${TEST_STEP_SUMMARY}" ;
270+
# printf "%s\n" ":grey_exclamation: Directly copying the filepath \`${reference_file}\` was inconclusive (_testing and validation skipped_)." >> "${TEST_STEP_SUMMARY}" ;
271+
printf "## %s\n| Direct copy | :grey_exclamation: %s |\n" "\`${reference_file}\`" "inconclusive" >> "${TEST_STEP_SUMMARY}" ;
263272
printf "\n" >> "${TEST_STEP_SUMMARY}" ; # extra space
264273
fi ;
265274
fi ; # TODO: else can not be run directly and needs to be invoked with -m unittest -v test.

.github/workflows/Check_Tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ jobs:
9595
with:
9696
override-path: rustpython
9797
override-rustpython-path: Lib
98-
override-repository: 'ShaharNaveh/RustPython'
99-
override-ref: auto-updater # Hint: could be changed to ${{ github.ref }}
98+
override-repository: 'RustPython/RustPython'
99+
override-ref: main # Hint: could be changed to ${{ github.ref }}
100100
- name: Fetch Reference Cpython ${{ matrix.python-version }} on ${{ matrix.os }}
101101
id: fetch-cpython
102102
uses: ./.github/actions/CI-5974-Fetch-CPython

0 commit comments

Comments
 (0)