Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:
env:
CARGO_BUILD_JOBS: "2"
RUST_TEST_THREADS: "2"
PYTHON_VERSION: "3.15.1"

jobs:
homebrew:
Expand All @@ -25,10 +26,13 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Preload pinned Python
run: ./scripts/setup-ci-python.sh "$PYTHON_VERSION"

- name: Set up stable Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.15.1"
python-version: ${{ env.PYTHON_VERSION }}

- name: Test stable release verification and formula updates
env:
Expand All @@ -52,11 +56,15 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Preload pinned Python
if: matrix.task == 'checks'
run: ./scripts/setup-ci-python.sh "$PYTHON_VERSION"

- name: Set up stable Python
if: matrix.task == 'checks'
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.15.1"
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Linux system dependencies
if: runner.os == 'Linux'
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/homebrew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@ jobs:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ inputs.tag || github.event.release.tag_name }}
PYTHONDONTWRITEBYTECODE: "1"
PYTHON_VERSION: "3.15.1"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

- name: Preload pinned Python
run: ./scripts/setup-ci-python.sh "$PYTHON_VERSION"

- name: Set up stable Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.15.1"
python-version: ${{ env.PYTHON_VERSION }}

- name: Read existing tap
run: |
Expand Down
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ members = [
resolver = "3"

[workspace.package]
version = "0.2.4"
version = "0.2.5"
edition = "2024"
rust-version = "1.93.1"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/sendbox-cli/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn prints_version() {
let output = run(&["--version"]);

assert!(output.status.success());
assert_eq!(String::from_utf8(output.stdout).unwrap(), "sendbox 0.2.4\n");
assert_eq!(String::from_utf8(output.stdout).unwrap(), "sendbox 0.2.5\n");
assert!(output.stderr.is_empty());
}

Expand Down
39 changes: 38 additions & 1 deletion crates/sendbox-cli/tests/release_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,16 @@ exec "$RELEASE_TEST_CARGO" "$@"
}

fn run(&self, arguments: &[&str], scenario: &str) -> Output {
self.run_command(Command::new("/bin/bash"), arguments, scenario)
}

fn run_command(&self, mut command: Command, arguments: &[&str], scenario: &str) -> Output {
let path = std::env::join_paths(
std::iter::once(self.bin.clone())
.chain(std::env::split_paths(&std::env::var_os("PATH").unwrap())),
)
.unwrap();
Command::new("/bin/bash")
command
.arg(self.checkout.join("scripts/release.sh"))
.args(arguments)
.current_dir(self.checkout.join("crates/sendbox-cli"))
Expand Down Expand Up @@ -481,6 +485,39 @@ fn switches_to_updated_main_before_releasing_and_refreshing_every_lockfile() {
assert!(trace.contains("gh release view v0.2.0"));
}

#[test]
fn disables_configured_git_pagers_when_releasing_in_a_terminal() {
let repository = ReleaseRepository::new();
executable(
repository.bin.join("pager"),
"#!/bin/sh\nprintf 'pager invoked\\n' >>\"$RELEASE_TEST_TRACE\"\ncat\n",
);
git(&repository.checkout, &["config", "core.pager", "pager"]);
git(&repository.checkout, &["config", "pager.switch", "true"]);
git(&repository.checkout, &["config", "pager.pull", "true"]);
git(&repository.checkout, &["config", "pager.diff", "true"]);

for version in ["0.2.0", "v0.2.0"] {
let mut command = Command::new("python3");
command
.args([
"-c",
"import os, pty, sys; sys.exit(os.waitstatus_to_exitcode(pty.spawn(sys.argv[1:])))",
"/bin/bash",
])
.env("GIT_PAGER", "pager")
.env("PAGER", "pager");
let result = repository.run_command(command, &[version], "success");
repository.assert_succeeded(&result);
}

let trace = repository.trace();
assert!(
!trace.contains("pager invoked"),
"release invoked the configured Git pager:\n{trace}"
);
}

#[test]
fn rejects_invalid_versions_without_creating_a_release_branch() {
let repository = ReleaseRepository::new();
Expand Down
5 changes: 5 additions & 0 deletions docs/architecture/guest-artifact-bundles.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ Build inputs:
SHA-256 verification;
- libseccomp 2.6.0 source archive with SHA-256 verification.

Supervisor and production bundle builds download the pinned libseccomp source
through GitHub's release-asset API using its immutable asset ID. Requests use
bounded connection, transfer, and retry timeouts. The pinned version and SHA-256
verification remain mandatory; exhausted retries fail the build.

The production bundle, standalone supervisor, and BPF spike Dockerfiles use the
same `musl-dev`, `zlib`, `zlib-dev`, and `zlib-static` revisions, available for both
Alpine 3.23 architectures. The base image digest does not freeze APK repositories;
Expand Down
Loading
Loading