Skip to content

Fix /bench-verify target dirs - #882

Open
jotabulacios wants to merge 5 commits into
mainfrom
fix/bench-recursion-per-ref-host-target
Open

Fix /bench-verify target dirs#882
jotabulacios wants to merge 5 commits into
mainfrom
fix/bench-recursion-per-ref-host-target

Conversation

@jotabulacios

Copy link
Copy Markdown
Collaborator

Motivation

/bench-verify reported #874 as failing to verify its own proof. It wasn't: the PR side ran
main's binary. Both ref worktrees shared one HOST_TARGET_DIR, so cargo declared the
second ref fresh (Finished in 0.06s) instead of building it. Main's prover has no DMA
table, the guest's DMA ecalls had nothing to prove them, and the bundle didn't verify.

Same bug #878 fixed for the guest target dir — except the guest side dies loudly and the
host side just measures the wrong binary.

Description

Fix: each ref gets its own host target dir (${HOST_TARGET_DIR}_<sha8>), like #878 did
for the guest one. Costs ~25s per ref on the first build, warm after that. Pruned the same
way, and the old shared dir is swept once.

@jotabulacios
jotabulacios marked this pull request as ready for review July 31, 2026 17:57
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