Skip to content

Commit 0008520

Browse files
committed
Use Node-verified benchmark inputs directly for Pages
1 parent 91e3572 commit 0008520

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • .github/workflows/Features/BenchmarkComparisons/QualifySite

‎.github/workflows/Features/BenchmarkComparisons/QualifySite/action.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ runs:
4949
if jq -e '.result.state == "unavailable"' "$EVIDENCE_DIR/isolated-capture-envelope.json" > /dev/null; then
5050
benchmark_mode=none
5151
else
52+
# Node aggregation has verified every input against its original digest-bound ZIP.
53+
# Materialize that validated output directly; Website never invokes test hooks.
54+
jq -e '.state == "metadata_verified"' "$isolated_proof" > /dev/null
55+
prepared="$KEYLOAD_SITE_ISOLATED_CAPTURE/prepared-input"
56+
input="$KEYLOAD_SITE_ISOLATED_CAPTURE/input"
57+
[[ -d "$prepared" && ! -L "$prepared" && ! -e "$input" && ! -L "$input" ]]
58+
[[ ! -e "$KEYLOAD_SITE_ISOLATED_ARCHIVE_RECEIPT" && ! -L "$KEYLOAD_SITE_ISOLATED_ARCHIVE_RECEIPT" ]]
59+
mv -- "$prepared" "$input"
60+
jq '.state = "archive_verified"' "$isolated_proof" > "$KEYLOAD_SITE_ISOLATED_ARCHIVE_RECEIPT"
5261
printf 'KEYLOAD_SITE_ISOLATED_MEASURED_REVISION=%s\n' "$(jq -er '.source.measured' "$isolated_proof")" >> "$GITHUB_ENV"
5362
printf 'isolated_measured_revision=%s\n' "$(jq -er '.source.measured' "$isolated_proof")" >> "$GITHUB_OUTPUT"
5463
fi

0 commit comments

Comments
 (0)