diff --git a/pipeline/release-cycle.py b/pipeline/release-cycle.py index bb0144d..6f808eb 100644 --- a/pipeline/release-cycle.py +++ b/pipeline/release-cycle.py @@ -203,12 +203,18 @@ mkdir -p {shlex.quote(config['worker_source_root'])}/target {shlex.quote(config[ docker run --rm --network=none --mount type=bind,src={remote_root}/source/src,dst=/build/src,readonly --mount type=bind,src={shlex.quote(config['worker_source_root'])}/target,dst=/build/target --mount type=bind,src={shlex.quote(config['worker_root'])}/cache/cargo,dst=/usr/local/cargo/registry {shlex.quote(config['worker_tools_image'])} cargo build --manifest-path /build/src/cli/Cargo.toml --offline --locked --release cp {shlex.quote(config['worker_source_root'])}/target/release/archipelago {remote_root}/archipelago cp {shlex.quote(config['worker_source_root'])}/target/release/archipelagod {remote_root}/archipelagod -docker run --rm --network=none --mount type=bind,src={remote_root}/source/src,dst=/build/src,readonly --mount type=bind,src={shlex.quote(config['worker_source_root'])}/target,dst=/build/target --mount type=bind,src={shlex.quote(config['worker_root'])}/cache/cargo,dst=/usr/local/cargo/registry {shlex.quote(config['worker_tools_image'])} cargo test --manifest-path /build/src/cli/Cargo.toml --offline --locked --release -p archipelago-system -p archipelago-contracts > {remote_root}/service-contract-checks.log 2>&1 +docker run --rm --network=none --mount type=bind,src={remote_root}/source/src,dst=/build/src,readonly --mount type=bind,src={shlex.quote(config['worker_source_root'])}/target,dst=/build/target --mount type=bind,src={shlex.quote(config['worker_root'])}/cache/cargo,dst=/usr/local/cargo/registry {shlex.quote(config['worker_tools_image'])} cargo test --manifest-path /build/src/cli/Cargo.toml --offline --locked --release -p archipelago-system -p archipelago-contracts -p archipelago-composer > {remote_root}/service-contract-checks.log 2>&1 +python3 {remote_root}/source/src/composer/tests/materialize.py > {remote_root}/composer-filesystem-checks.log 2>&1 +python3 {remote_root}/source/src/composer/tests/artifact.py >> {remote_root}/composer-filesystem-checks.log 2>&1 +python3 {remote_root}/source/src/composer/tests/package_db.py >> {remote_root}/composer-filesystem-checks.log 2>&1 +python3 {remote_root}/source/src/composer/tests/base.py >> {remote_root}/composer-filesystem-checks.log 2>&1 +python3 {remote_root}/source/src/builder/tests/indexed_overlay.py >> {remote_root}/composer-filesystem-checks.log 2>&1 sha256sum {remote_root}/archipelago > {remote_root}/inputs.sha256 sha256sum {remote_root}/archipelagod >> {remote_root}/inputs.sha256 sha256sum {remote_root}/source.tar >> {remote_root}/inputs.sha256 find {remote_root}/probes -type f -name '*.py' -exec sha256sum {{}} + >> {remote_root}/inputs.sha256''') call(['rsync', '-a', f'{worker}:{remote_root}/service-contract-checks.log', str(run / 'service-contract-checks.log')]) + call(['rsync', '-a', f'{worker}:{remote_root}/composer-filesystem-checks.log', str(run / 'composer-filesystem-checks.log')]) if config.get('flatpak_cache') and not args.existing: remote(f'test "$(df -PB1 {remote_root} | awk \'NR==2 {{print $4}}\')" -ge {config.get("minimum_build_free_bytes", 45000000000)}') phase('updating-flatpak-cache')