Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
# NOTE: the arm64 GitHub hosted runner does not have the /mnt-mounted scratch disk
if: "${{ contains(inputs.target, 'rocm') || contains(inputs.target, 'cuda') ||
contains(inputs.target, 'pytorch') || contains(inputs.target, 'tensorflow') ||
inputs.platform == 'linux/arm64' }}"
contains(inputs.target, 'codeserver') || inputs.platform == 'linux/arm64' }}"

- id: install-compsize
run: sudo apt-get install -y btrfs-compsize
Expand Down Expand Up @@ -238,6 +238,16 @@ jobs:
# Compiling pyzmq through UV needs this in CFLAGS
extra_podman_build_args += '--env=CFLAGS=-Dundefined=64 --env=CXXFLAGS=-Dundefined=64 --unsetenv=CFLAGS --unsetenv=CXXFLAGS'

if "codeserver" in "${{ inputs.target }}":
# Hermetic codeserver builds compile from source on every run — there
# is no effective layer cache to reuse. --layers=false stops podman
# from persisting intermediate layers within each stage, cutting peak
# disk use roughly in half.
extra_podman_build_args += ' --layers=false'
# GHA runners (16GB RAM) need reduced VS Code build parallelism.
# apply-patch.sh checks GHA_BUILD and runs patches/tweak-gha.sh.
extra_podman_build_args += ' --build-arg GHA_BUILD=true'

event_name: Literal['push', 'pull_request', 'pull_request_target', 'schedule', 'workflow_dispatch'] = "${{ fromJson(inputs.github).event_name }}"
cache = "${{ env.CACHE }}"

Expand Down Expand Up @@ -300,8 +310,14 @@ jobs:
- name: "Build: make ${{ inputs.target }}"
id: make-target
run: |
# print running stats on disk occupancy
(while true; do df -h | grep "${HOME}/.local/share/containers"; sleep 30; done) &
# Print disk and memory stats every 30s so OOM/disk-full failures
# leave a breadcrumb trail in the logs.
(while true; do
echo "=== $(date -u '+%H:%M:%S') ==="
df -h | grep "${HOME}/.local/share/containers"
free -h
sleep 30
done) &

make ${{ inputs.target }}
env:
Expand Down
Loading