Skip to content

Commit 15d175c

Browse files
jgillisclaude
andcommitted
main: tee build-libmad.sh output to artifact for runner-stall diagnostics
aarch64 has been failing libmad with the runner dying mid-Build (no streamed log captured). Pipe stdout/stderr through `tee` to a file in build/ and unconditionally upload it as a workflow artifact, so even when the runner heartbeat dies the log is recoverable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 991ff10 commit 15d175c

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/build-libmad.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
description: libMad branch / tag / sha
1717
required: false
1818
default: claude/ubuntu-manylinux-2-28-kLLSc
19+
schedule:
20+
# Weekly rebuild against latest polyglot image, in case upstream libMad
21+
# deps drift. Delete if not wanted.
22+
- cron: "17 4 * * 1"
1923

2024
permissions:
2125
contents: read
@@ -71,16 +75,27 @@ jobs:
7175

7276
- name: Build libMad inside polyglot image
7377
run: |
74-
set -eux
78+
set -euxo pipefail
7579
mkdir -p build out
80+
# Tee output to a file so a runner-side log-stream death (which is
81+
# what aarch64 has been hitting at the long juliac AOT step) still
82+
# leaves a forensics trail we can upload as an artifact.
7683
docker run --rm \
7784
-v "$PWD/libMad:/work/libMad:ro" \
7885
-v "$PWD/polyglot/scripts:/work/scripts:ro" \
7986
-v "$PWD/build:/work/build" \
8087
-v "$PWD/out:/work/out" \
8188
-e JULIA_PKG_USE_CLI_GIT=true \
8289
"$POLYGLOT_IMAGE" \
83-
bash /work/scripts/build-libmad.sh
90+
bash /work/scripts/build-libmad.sh 2>&1 | tee build/libmad-build.log
91+
92+
- name: Upload build log (always)
93+
if: always()
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: libmad-build-log-${{ matrix.arch }}
97+
path: build/libmad-build.log
98+
if-no-files-found: warn
8499

85100
- name: Inspect libMad.so manylinux compliance
86101
run: |

0 commit comments

Comments
 (0)