WIP: feat: Retain owned streaming release output files #642

Draft
erikinkinen wants to merge 0 commits from feature/owned-release-file-writer into feature/owned-native-build-pipeline
Owner

Summary and rationale

Add a reusable writer for bounded release files, with exclusive creation, complete streaming readback and original read-only consumption. Image and source-bundle producers can share output custody without duplicating it.

Tracking and scope

Supports #8 and #628. This feature supplies output file ownership; the image and source producers retain their own origin and whole-build acceptance duties.

Architecture, authority and failure behavior

Register actual file slots before capture. Keep original capacities, file rosters, reader fields and first failures bound throughout use. Close only original capturers, preserve partial acquisitions and retain independent cleanup errors. Host filesystem and stable parent namespaces remain explicit premises.

Validation evidence

  • Fifteen actual descriptor/write/readback, substitution, partial-capture, restored-failure and cleanup controls.
  • Five maintained syntax controls and warning-denied Python checks.
  • Markdown: 190 files, no errors.
  • Exact-head CI.

Rust formatting and Clippy are inapplicable to this Python-only feature. No guest behavior changes.

Review checklist

  • Signed commit, inline documentation and changed code files below 1,000 lines.
  • CI and syntax coverage enrolled; architecture and roadmap updated.
  • No native interface or dependency-policy change.
## Summary and rationale Add a reusable writer for bounded release files, with exclusive creation, complete streaming readback and original read-only consumption. Image and source-bundle producers can share output custody without duplicating it. ## Tracking and scope Supports #8 and #628. This feature supplies output file ownership; the image and source producers retain their own origin and whole-build acceptance duties. ## Architecture, authority and failure behavior Register actual file slots before capture. Keep original capacities, file rosters, reader fields and first failures bound throughout use. Close only original capturers, preserve partial acquisitions and retain independent cleanup errors. Host filesystem and stable parent namespaces remain explicit premises. ## Validation evidence - [x] Fifteen actual descriptor/write/readback, substitution, partial-capture, restored-failure and cleanup controls. - [x] Five maintained syntax controls and warning-denied Python checks. - [x] Markdown: 190 files, no errors. - [ ] Exact-head CI. Rust formatting and Clippy are inapplicable to this Python-only feature. No guest behavior changes. ## Review checklist - [x] Signed commit, inline documentation and changed code files below 1,000 lines. - [x] CI and syntax coverage enrolled; architecture and roadmap updated. - [x] No native interface or dependency-policy change.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 02:06:57 +01:00
feat: Retain owned streaming release output files
Some checks failed
Markdown / markdown (push) Successful in 23s
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Failing after 3m4s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Failing after 5m14s
ae54063d6a
Provide exclusive bounded output production with original read-only consumption and explicit retirement. Preserve selected capacities, receiver identities and first failures through partial acquisitions and independent cleanup.
Some checks failed
Markdown / markdown (push) Successful in 23s
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Failing after 3m4s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Failing after 5m14s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/owned-release-file-writer:feature/owned-release-file-writer'
git switch 'feature/owned-release-file-writer'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/owned-native-build-pipeline'
git merge --no-ff 'feature/owned-release-file-writer'
git switch 'feature/owned-release-file-writer'
git rebase 'feature/owned-native-build-pipeline'
git switch 'feature/owned-native-build-pipeline'
git merge --ff-only 'feature/owned-release-file-writer'
git switch 'feature/owned-release-file-writer'
git rebase 'feature/owned-native-build-pipeline'
git switch 'feature/owned-native-build-pipeline'
git merge --no-ff 'feature/owned-release-file-writer'
git switch 'feature/owned-native-build-pipeline'
git merge --squash 'feature/owned-release-file-writer'
git switch 'feature/owned-native-build-pipeline'
git merge --ff-only 'feature/owned-release-file-writer'
git switch 'feature/owned-native-build-pipeline'
git merge 'feature/owned-release-file-writer'
git push origin 'feature/owned-native-build-pipeline'
Sign in to join this conversation.
No description provided.