From db199879832a02c72aed13f3f8f71effa916e6f8 Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Fri, 6 Nov 2026 14:33:50 +0300 Subject: [PATCH] Check embedded RFC schema before worker compilation --- deploy/RELEASE-CYCLE.md | 4 ++++ pipeline/release-cycle.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/RELEASE-CYCLE.md b/deploy/RELEASE-CYCLE.md index 3abf2b8..23bf1c3 100644 --- a/deploy/RELEASE-CYCLE.md +++ b/deploy/RELEASE-CYCLE.md @@ -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): diff --git a/pipeline/release-cycle.py b/pipeline/release-cycle.py index 9ff00fb..dbdc8d7 100644 --- a/pipeline/release-cycle.py +++ b/pipeline/release-cycle.py @@ -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