Skip to content

INTERPLANE-PACKAGE and -ADAPTER-AIEN pass on the Spark judge (offline, read-only cargo home) - #115

Merged
drakestapleton merged 3 commits into
mainfrom
fix/package-offline
Oct 19, 2026
Merged

drakestapleton merged 3 commits into
mainfrom
fix/package-offline

Conversation

@drakestapleton

@drakestapleton drakestapleton commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Makes the INTERPLANE-PACKAGE and INTERPLANE-ADAPTER-AIEN gates pass on the Spark judge. All three causes are in the judge environment, none in the PRs that hit them (#111 at bb6e857, #114 at 1d62139):

  1. No network (PACKAGE). cargo package --workspace --locked updates the crates.io index first; on the judge it failed with Could not resolve host: index.crates.io. Fix: --offline, so it packages from the local registry cache like every other gate.
  2. Read-only CARGO_HOME (PACKAGE). With --offline, verifying interplane-crossaxis unpacks the just-packaged interplane-core from cargo's temporary registry into $CARGO_HOME/registry/src; on the judge's read-only home that fails with no hash listed for interplane-core v0.3.0 (operator run of bd09ebc; reproduced with CARGO_HOME=/var/lib/aien-run/cargo). Fix: package with a scratch CARGO_HOME inside the step's temp dir (index copied, .crate cache and unpacked sources linked read-only, registry/src writable).
  3. Read-only leftover in the shared target dir (ADAPTER-AIEN). libsqlite3-sys copies its bundled bindings from the read-only registry, so OUT_DIR/bindgen.rs is left mode 0444; the next time its build script runs it cannot overwrite the file (Could not copy bindings to output directory: Permission denied, operator run of 657081c). Fix: before building, make such leftovers under the target dir writable; the build script then rewrites them.

The checks themselves are unchanged: every crate still packages and builds from its .crate alone, and the adapter still runs fmt, clippy, its tests and the T4 subset.

Checked on the Spark with the judge's read-only CARGO_HOME/RUSTUP_HOME, offline:

  • tests/gates/run.sh package: exit 0 (was no hash listed); also exit 0 with a normal home.
  • tests/gates/run.sh adapter-aien, clean build: exit 0. Then with the libsqlite3-sys build script forced to run again: without the fix it fails with Permission denied (red), with the fix exit 0 (green).

This changes tests/gates/, so it is a pipeline configuration change (rule A4): the desk runs the operator judge on the exact head and merges on PASS.

Drake Stapleton added 3 commits October 19, 2026 08:19
…twork)

cargo package --workspace --locked tried to update the crates.io index and
failed on the Spark judge (index.crates.io does not resolve there), so every
head that selected INTERPLANE-PACKAGE failed it (bundles 1d62139, bb6e857).
--offline packages from the local registry cache, as every other gate does.
Checked on the Spark: tests/gates/run.sh package exits 0 in 16 s.
…ge's is read-only)

With --offline the operator run of bd09ebc failed verifying interplane-crossaxis:
cargo unpacks the just-packaged interplane-core from its temporary registry into
$CARGO_HOME/registry/src, and on the judge's read-only home it fails with
'no hash listed for interplane-core v0.3.0' (reproduced with
CARGO_HOME=/var/lib/aien-run/cargo). Package with a scratch home in the step's
temp dir: index copied, .crate cache and unpacked sources linked read-only,
registry/src writable. Passes with the judge's home and with a normal one.
…overs

libsqlite3-sys copies its bundled bindings from the read-only registry, so
OUT_DIR/bindgen.rs stays mode 0444 in the judge's shared target dir and the next
run of its build script fails with 'Could not copy bindings to output directory:
Permission denied' (operator run of 657081c). Make such leftovers writable
before building. Red/green on the Spark with the judge's CARGO_HOME: forced
rerun fails without this, passes with it.
@drakestapleton drakestapleton changed the title INTERPLANE-PACKAGE packages offline (the Spark judge has no network) INTERPLANE-PACKAGE and -ADAPTER-AIEN pass on the Spark judge (offline, read-only cargo home) Oct 19, 2026
@drakestapleton
drakestapleton merged commit 43fc97c into main Oct 19, 2026
6 of 7 checks passed
@drakestapleton
drakestapleton deleted the fix/package-offline branch October 19, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant