Check embedded RFC schema before worker compilation

This commit is contained in:
Pavel Isaev 2026-11-06 14:33:50 +03:00
parent 06f4e713c1
commit db19987983
2 changed files with 5 additions and 1 deletions

View file

@ -6,6 +6,10 @@ The latest user instruction replaces the tall-bridge worker/downloader proposal:
**Core, GNOME, Flatpak downloads/updates and VM acceptance all run on yabloko**.
Terra coordinates the daily trigger, stores results, signs and publishes.
The current worker configuration has no tall-bridge or jump-host dependency.
The source tree at `/opt/archipelago/revision/src` must include all Rust modules,
Purpose assets, probes, infrastructure scripts **and `rfc/schemas`**: the Rust
contracts crate embeds the layer schema. Preflight checks that schema before
compilation; the driver creates its Cargo target/cache mount directories.
Human entry point on terra (manual and timer use the same driver):

View file

@ -154,7 +154,7 @@ python3 {remote_root}/probes/core_iso_acceptance.py --iso {shlex.quote(builds['c
old['worker_recovery_run'] = stamp
atomic(old_path, old)
phase('preflight')
remote(f'mkdir -p {shlex.quote(remote_root)}; test -c /dev/kvm; command -v qemu-system-x86_64; python3 -c "import pexpect"')
remote(f'mkdir -p {shlex.quote(remote_root)}; test -c /dev/kvm; command -v qemu-system-x86_64; python3 -c "import pexpect"; test -f {shlex.quote(config["worker_source_root"])}/src/rfc/schemas/layer-v1.schema.json')
# Compile from the frozen source tree, not a possibly stale deployed CLI.
phase('freezing-and-compiling-source')
remote(f'''tar --exclude=.git --exclude=target --exclude=__pycache__ -C {shlex.quote(config['worker_source_root'])} -cf {remote_root}/source.tar src