Skip to content

feat: add incremental builds and repository signing - #204

Merged
ReenigneArcher merged 3 commits into
masterfrom
codex/incremental-signed-repositories
Nov 29, 2026
Merged

ReenigneArcher merged 3 commits into
masterfrom
codex/incremental-signed-repositories

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Add opt-in incremental builds for repositories that start each run with an empty output directory.
The builder fingerprints each recipe and its local inputs, verifies matching archives against a previous snapshot,
and carries those archives into the new repository index. A build-context key can invalidate the snapshot after an
SDK or toolchain update. A build-only mode lets cross-builds package target libraries without installing them on the
build host.

Add a shared snapshot download helper and a sign command that stages OpenPGP signatures for the package
archives and Pacman indexes. The staging directory includes the public signing key and the build state for the next run.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Passed cargo fmt --all --check, all 74 tests in cargo test --locked, and
    cargo clippy --locked --all-targets -- -D warnings on Arch Linux.
  • Regression tests cover archive reuse, patch and SDK context changes, corrupted cached archives, and allowed build
    failures. They also check that build-only mode skips installation.
  • An Arch integration run rebuilt one of two fixture packages, reused the other archive byte-for-byte, verified
    OpenPGP signatures, and exercised the snapshot download helper with mocked GitHub responses.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Codex implemented the changes, ran validation, and prepared this description.

@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.77778% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.22%. Comparing base (1d75aa8) to head (83199e2).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/cmd/build.rs 79.79% 20 Missing ⚠️
src/cmd/build_cache.rs 83.95% 13 Missing ⚠️
src/app/run.rs 0.00% 9 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #204      +/-   ##
==========================================
+ Coverage   60.21%   62.22%   +2.01%     
==========================================
  Files          55       56       +1     
  Lines        1317     1448     +131     
==========================================
+ Hits          793      901     +108     
- Misses        524      547      +23     
Files with missing lines Coverage Δ
src/app/run.rs 42.85% <0.00%> (-32.15%) ⬇️
src/cmd/build_cache.rs 83.95% <83.95%> (ø)
src/cmd/build.rs 78.40% <79.79%> (+3.52%) ⬆️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1d75aa8...83199e2. Read the comment docs.

@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit 77886dd into master Nov 29, 2026
15 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/incremental-signed-repositories branch November 29, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant