feat: Select explicit source history depth #606

Open
erikinkinen wants to merge 1 commit from feature/source-history-depth into feature/catalog-compilation-input-lifetime
Owner

Implements #604. Native source recipes can request a finite Git history depth while retaining the complete selected source tree. Original acquisition passes the explicit request to its pinned Git fetch and records the actual returned context and shallow metadata. An absent policy keeps the existing fetch arguments unchanged.

Maintained native matrix and retained EFI/host recipes select depth one. Other callers, including ancestry-sensitive external toolchain recipes, retain their declared history behavior. Full current-byte and namespace checks, Git integrity, original/generated workspace separation, file durability, limits and actual retirement remain mandatory. Failed acquisition cannot retry with broader history.

Eight new actual Git/policy controls, twenty-three existing acquisition controls, sixteen matrix controls including actual Cargo queries, eight compilation-input controls and five complete syntax controls passed. The controls compare complete current trees and literal contents for full-history and depth-one acquisition, verify the real Git integer boundary, and exercise mutation and partial-fetch failure. The complete 281-helper cohort checks twice and all seven original native-owner bodies remain exact. A fresh uninstrumented original Integration-library, EFI and Boot-tool prefix passed in 279.85 seconds. All three producers kept their original 120/30/15-second limits; final source observations and actual retirement completed. Full graph, image, guest and CI acceptance remain separate and are not claimed.

Depends on #603.

Implements #604. Native source recipes can request a finite Git history depth while retaining the complete selected source tree. Original acquisition passes the explicit request to its pinned Git fetch and records the actual returned context and shallow metadata. An absent policy keeps the existing fetch arguments unchanged. Maintained native matrix and retained EFI/host recipes select depth one. Other callers, including ancestry-sensitive external toolchain recipes, retain their declared history behavior. Full current-byte and namespace checks, Git integrity, original/generated workspace separation, file durability, limits and actual retirement remain mandatory. Failed acquisition cannot retry with broader history. Eight new actual Git/policy controls, twenty-three existing acquisition controls, sixteen matrix controls including actual Cargo queries, eight compilation-input controls and five complete syntax controls passed. The controls compare complete current trees and literal contents for full-history and depth-one acquisition, verify the real Git integer boundary, and exercise mutation and partial-fetch failure. The complete 281-helper cohort checks twice and all seven original native-owner bodies remain exact. A fresh uninstrumented original Integration-library, EFI and Boot-tool prefix passed in 279.85 seconds. All three producers kept their original 120/30/15-second limits; final source observations and actual retirement completed. Full graph, image, guest and CI acceptance remain separate and are not claimed. Depends on #603.
erikinkinen added this to the Alpha 1 milestone 2026-11-08 15:10:26 +01:00
feat: Declare original source history depth
Some checks failed
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
Markdown / markdown (push) Successful in 10s
CI / rust (push) Failing after 45s
Coreutils provider graph / coreutils (push) Successful in 4m9s
CI / native_sources (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 / host_one (push) Has been skipped
CI / integration (push) Has been skipped
01b112cec7
Allow original acquisition to request a positive history depth without changing absent-policy fetches. Declare depth one in compatible native matrix and retained shell recipes while preserving actual returned contexts, complete selected trees, durability and input checks, original resource bounds, and once-only failure semantics.
Some checks failed
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
Markdown / markdown (push) Successful in 10s
CI / rust (push) Failing after 45s
Coreutils provider graph / coreutils (push) Successful in 4m9s
CI / native_sources (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 / host_one (push) Has been skipped
CI / integration (push) Has been skipped
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/source-history-depth:feature/source-history-depth'
git switch 'feature/source-history-depth'

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/catalog-compilation-input-lifetime'
git merge --no-ff 'feature/source-history-depth'
git switch 'feature/source-history-depth'
git rebase 'feature/catalog-compilation-input-lifetime'
git switch 'feature/catalog-compilation-input-lifetime'
git merge --ff-only 'feature/source-history-depth'
git switch 'feature/source-history-depth'
git rebase 'feature/catalog-compilation-input-lifetime'
git switch 'feature/catalog-compilation-input-lifetime'
git merge --no-ff 'feature/source-history-depth'
git switch 'feature/catalog-compilation-input-lifetime'
git merge --squash 'feature/source-history-depth'
git switch 'feature/catalog-compilation-input-lifetime'
git merge --ff-only 'feature/source-history-depth'
git switch 'feature/catalog-compilation-input-lifetime'
git merge 'feature/source-history-depth'
git push origin 'feature/catalog-compilation-input-lifetime'
Sign in to join this conversation.
No description provided.