Skip to content

Commit d2bf6cc

Browse files
committed
ci: TEMP windows Makefile parse-failure diagnostic
The windows legs die instantly at make: 'Makefile:1025: target pattern contains no %' — a rule-position drive-letter path is the classic cause, but the generated Makefile is not an artifact. On failure, dump lines 1000-1050 plus every drive-letter-carrying line. REMOVE once the parse failure is diagnosed and fixed.
1 parent dc2deba commit d2bf6cc

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎.github/workflows/_build-platform.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,21 @@ jobs:
230230
git config --global core.longpaths true
231231
tools/build_runtime --python "${{ matrix.python }}"
232232
233+
# TEMP diagnostic (the 02 round-3 probe): the windows legs die at
234+
# make's parse — "Makefile:1025: target pattern contains no '%'".
235+
# Dump the region plus every drive-letter-carrying line; REMOVE once
236+
# the parse failure is diagnosed and fixed.
237+
- name: Diagnose the windows Makefile parse failure
238+
if: failure() && matrix.os == 'windows'
239+
shell: msys2 {0}
240+
run: |
241+
mf=$(echo .build/src/tfs-python-*-src/Makefile)
242+
[ -f "$mf" ] || { echo "no generated Makefile"; exit 0; }
243+
echo "== lines 1000-1050 of $mf"
244+
sed -n '1000,1050p' "$mf"
245+
echo "== lines carrying a drive-letter path"
246+
grep -nE '[A-Za-z]:/' "$mf" | head -30 || true
247+
233248
# --- the gates (a red gate skips the upload, and the release
234249
# job's completeness check then fails the run loudly) -------------
235250
- name: Check symbol provenance (container legs)

0 commit comments

Comments
 (0)