Skip to content

Commit da0f9cc

Browse files
kim-emclaude
andcommitted
chore: remove --rw /tmp landrun workaround for leantar
leantar is now fixed to not require /tmp access, so we can close the sandbox hole. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7193c91 commit da0f9cc

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/build_template.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -486,28 +486,23 @@ jobs:
486486
rm -rf cache-staging
487487
mkdir -p cache-staging
488488
489-
# WORKAROUND: leantar v0.1.18 (bundled with Lean) uses tempfile::NamedTempFile::new()
490-
# which unconditionally writes to /tmp. We need --rw /tmp here until leantar is fixed
491-
# to use NamedTempFile::new_in() with an appropriate directory.
492-
# See: https://github.com/digama0/leangz/commit/6d1691e0a4
493-
# TODO: remove --rw /tmp once a fixed leantar is available
494489
- name: stage Mathlib cache files
495490
if: ${{ always() && (steps.build.outcome == 'success' || steps.build.outcome == 'failure' || steps.build.outcome == 'cancelled') }}
496-
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rw /tmp --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --rw cache-staging/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
491+
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --rw cache-staging/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
497492
run: |
498493
cd pr-branch
499494
lake env ../tools-branch/.lake/build/bin/cache --staging-dir="../cache-staging" stage
500495
501496
- name: stage Archive cache files
502497
if: ${{ steps.archive.outcome == 'success' }}
503-
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rw /tmp --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --rw cache-staging/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
498+
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --rw cache-staging/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
504499
run: |
505500
cd pr-branch
506501
lake env ../tools-branch/.lake/build/bin/cache --staging-dir="../cache-staging" stage Archive.lean
507502
508503
- name: stage Counterexamples cache files
509504
if: ${{ steps.counterexamples.outcome == 'success' }}
510-
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rw /tmp --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --rw cache-staging/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
505+
shell: landrun --rox /usr --ro /etc/timezone --rw /dev --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --rw cache-staging/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
511506
run: |
512507
cd pr-branch
513508
lake env ../tools-branch/.lake/build/bin/cache --staging-dir="../cache-staging" stage Counterexamples.lean

0 commit comments

Comments
 (0)