Skip to content

Commit 6ee6641

Browse files
committed
gate scripts: chmod +x python after build, fix crash grep word boundary
build_phoenix.sh: add chmod +x after binary verification (LTO builds sometimes produce non-executable binaries). gate_phoenix.sh: use -w word boundary in crash grep to avoid matching test_crashers test name as a false positive crash.
1 parent f711497 commit 6ee6641

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/build_phoenix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,12 @@ if [ "$MAKE_EXIT" -ne 0 ]; then
190190
fi
191191
rm -f "$MAKE_LOG"
192192

193-
# Step 7: Verify binary exists
193+
# Step 7: Verify binary exists and is executable
194194
if [ ! -f "$CPYTHON_ROOT/python" ]; then
195195
echo "FAIL: python binary not built"
196196
exit 1
197197
fi
198+
chmod +x "$CPYTHON_ROOT/python"
198199

199200
echo "=== Build complete ==="
200201
echo "Binary: $CPYTHON_ROOT/python"

scripts/gate_phoenix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ echo "CPython: $CPYTHON_TOTAL_TESTS tests, $CPYTHON_FILES_RUN/$CPYTHON_FILES_TOT
136136
echo "$CPYTHON_SUMMARY" | tee -a "$RESULTS_FILE"
137137

138138
# Check for crashes (hard failures)
139-
CPYTHON_CRASHES=$(echo "$CPYTHON_OUTPUT" | grep -c -E "CRASH|Segmentation fault|Aborted" || true)
139+
CPYTHON_CRASHES=$(echo "$CPYTHON_OUTPUT" | grep -c -wE "CRASH|Segmentation fault|Aborted" || true)
140140
CPYTHON_CRASHES=${CPYTHON_CRASHES:-0}
141141
if [ "$CPYTHON_CRASHES" -gt 0 ]; then
142142
GATE_PASS=0

0 commit comments

Comments
 (0)