Skip to content

ci: restore hide-vt's prepared inputs in every job that builds it - #2632

Merged
yansfil merged 2 commits into
mainfrom
ci/vt-cache-everywhere
Nov 18, 2026
Merged

yansfil merged 2 commits into
mainfrom
ci/vt-cache-everywhere

Conversation

@yansfil

@yansfil yansfil commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2631

Summary

Problem

On 2026-11-18 codeberg.org stopped resolving, and every pull request's verify failed at its first build: five jobs could not fetch translate-c, one of hide-vt's pinned Zig packages (#2629, run 44276157654, two attempts).
The prepared inputs are saved on main and restored by .github/actions/vt-cache, but eight jobs that build hide-vt never restored them and downloaded every package on every run, and Linux arm64 had no saved entry at all.

Before → After

Before After
What the user gets A package host outage fails every pull request Pull requests build from the inputs main saved; a host is reached only when hide-vt/build-inputs.json changes
Flow Job starts → downloads Zig, Herdr source and packages → builds Job starts → restores main's saved inputs → builds

No screenshot: CI configuration and a script test only, no screen changes.

  • Added the restore to web-e2e (build, e2e), agent-journey (fixture, fake), agent-trust-contract, desktop-e2e, perf and the device helpers' build.
  • The remote mailbox lane's arm64 run saves the Linux arm64 entry on main, since the vt lane has no arm64 leg.
  • test_vt_cache.py now fails any job whose verify-cargo.sh call (or the device helpers' build) builds hide-vt without the action, so a new job cannot drop it again.

Decide

  • Linux arm64's saver is the remote mailbox arm64 run on main rather than a new arm64 leg of the vt lane, which would add a runner to every vt run.

Not verified

  • Linux arm64 jobs (remote mailbox arm64, helper (linux-aarch64)) still download until main saves the arm64 entry, so they fail on this pull request while codeberg.org is down; on the first run the other jobs restored main's entries and passed.
  • Whether main's next full run saves the arm64 entry: it does only if remote-mailbox-arm is in main's plan.
  • That the added jobs hit the cache on their next runs; this pull request's own CI is the first observation.
  • scripts/tests/test_agent_live_protection.py::test_linux_reaping_adopted_children_leaves_the_root_to_its_own_wait fails on macOS on main too; it is not touched here.
Evidence
  • Verified: python3 -m pytest scripts/tests locally, 1057 passed; the one other failure is the Linux-only test above, failing on main as well.
  • The failed jobs of run 44276157654 prepared into ~/.cache/hide-build (or %LOCALAPPDATA%\hide-build), not the $RUNNER_TEMP/hide-build the action restores; the arm64 job logged Cache not found for input keys: vt-inputs-v1-Linux-ARM64-....
Tests
  • Layer: unit (scripts/tests/test_vt_cache.py, reading the workflow files).
  • Catches: a job that builds hide-vt without the action; planted by restoring perf.yml without the step, and the test failed naming perf.yml:measure.
  • Repeat: deterministic file read; 1 local run.
  • Waits: none.
Risky files
  • .github/workflows/remote-mailbox.yml - a new saver; its condition saves only on main and only on an ARM64 runner, so it cannot race the vt lane's Linux x64 entry.
  • .github/workflows/agent-journey.yml - the fake-model job's cap rose from 181 to 186 minutes, the sum of its step caps with the 5-minute restore.
Verification record
  • Base 7f624a962678.
  • python3 -m pytest -q scripts/tests (1057 passed, 1 unrelated Linux-only failure), test_vt_cache.py and test_agent_journey_workflow.py 7 passed.

@yansfil
yansfil added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 8893a0a Nov 18, 2026
68 checks passed
@yansfil
yansfil deleted the ci/vt-cache-everywhere branch November 18, 2026 11:59
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.

CI: hide-vt builds fetch Zig packages from codeberg.org on every run, so a host outage fails every PR

1 participant