Skip to content

Free runner disk before pulling the LaTeX image for paper previews - #209

Merged
jbragg merged 1 commit into
mainfrom
free-runner-disk-for-paper-image
Oct 13, 2026
Merged

jbragg merged 1 commit into
mainfrom
free-runner-disk-for-paper-image

Conversation

@gas2own

@gas2own gas2own commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The paper-preview step pulls the -tex image, which takes about 6 GB on disk. On a site with large committed artifacts, the hosted runner can have less than that left after checkout and render, so the pull fails with no space left on device on every retry and paper-gate fails even though the paper itself is fine. A recent caller run had 7.0 GB free before the pull and failed; the same caller's main build had 8.3 GB free and finished with 2.3 GB to spare.

This adds a Free runner disk for the LaTeX image step just before Build paper preview. It removes preinstalled Android, .NET and GHC toolchains (well over 10 GB on ubuntu-latest) that no step of this job uses. It does nothing when the repo tracks no main.tex, so sites without a paper don't pay for it.

Tests: a new test in tests/test_workspace_workflow.py pins the step's position, guard and removal list. The file has 69 passing tests; the 7 that fail locally need make, which isn't installed here, and fail the same way without this change. Ruff passes.

Reviewer requested: jbragg

The -tex image needs about 6 GB once pulled. A site with large committed
artifacts can leave less than that on the hosted runner, so the pull fails
with 'no space left on device' and the paper gate goes red. Remove
preinstalled Android, .NET and GHC toolchains first, only when the repo has a
paper to build.
@gas2own

gas2own commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Automated review status

  • codex review of bf28dd7 (job gas2own-b058908166c2) — findings posted; follow-up on executor dispatch-6ba861cd17914148 done

Now: automated cycle open — it closes once two different reviewer backends have posted a whole-PR review of the same head (bf28dd7).

@gas2own

gas2own commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Independent AI code review (Codex)

Automated review of the PR by a separately invoked Codex reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate.

P0 (blocking)

None.

P1 (should fix)

None.

P2 (nits)

None.

Recommendation: approve

@gas2own

gas2own commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

On bf28dd7, the independent review reports no P0, P1 or P2 findings. All eight CI checks pass on that same head. No code changes were warranted.

The AI review cycle ends with one clean pass, without confirmation from a second backend. This narrow workflow change is being handed over for human review.

@gas2own
gas2own requested a review from jbragg October 13, 2026 23:10
@gas2own
gas2own marked this pull request as ready for review October 13, 2026 23:10
@jbragg
jbragg merged commit 7993c31 into main Oct 13, 2026
8 checks passed
@jbragg
jbragg deleted the free-runner-disk-for-paper-image branch October 13, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants