Reuse derived helper imports within each Cargo consumer #577

Open
erikinkinen wants to merge 5 commits from feature/retained-helper-import-edges into feature/retained-git-validation-duties
Owner

Derive literal helper imports once within each Cargo consumer. Every input check still rereads the complete current code, verifies modes and named file/directory identities, and checks the full import closure and consumer entry.

Keep a fixed per-consumer record set, charge retained data and reads to the original material counter, and preserve raw first failures across restoration. Copied owners cannot borrow the analysis. The fresh bootstrap interface remains uncached.

Depends on #576; relates to #65.

  • Reuse only pure import tuples after complete current code checks.
  • Bind analysis to the original consumer, descriptor and counter.
  • Retain first and independent secondary failures without resetting failed consumers.

Complete startup, native graph, image and guest acceptance remain separate.

Derive literal helper imports once within each Cargo consumer. Every input check still rereads the complete current code, verifies modes and named file/directory identities, and checks the full import closure and consumer entry. Keep a fixed per-consumer record set, charge retained data and reads to the original material counter, and preserve raw first failures across restoration. Copied owners cannot borrow the analysis. The fresh bootstrap interface remains uncached. Depends on #576; relates to #65. - [x] Reuse only pure import tuples after complete current code checks. - [x] Bind analysis to the original consumer, descriptor and counter. - [x] Retain first and independent secondary failures without resetting failed consumers. Complete startup, native graph, image and guest acceptance remain separate.
Derive literal import edges once for each immutable consumer while rereading all current helper bytes and named edges at every input check. Keep original material accounting and sticky failures so code changes or copied analysis cannot become a new source claim.
Keep warning-denial probes independent when a failed consumer retains its original error. Select a fresh checked consumer for the separate Bash invocation without resetting the failed Python consumer.
test: Retain the original helper close error as a raw cause
Some checks failed
CI / rust (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) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
1fdfb17aeb
Check the retained close exception directly instead of requiring its text to be interpolated into a note. Preserve the separate inline reader contract and prove that the actual descriptor was closed without replacing the original read failure.
erikinkinen added this to the Alpha 1 milestone 2026-11-08 04:40:32 +01:00
perf: Traverse statement containers when collecting helper imports
Some checks failed
CI / rust (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) Failing after 16s
CI / rust (push) Failing after 2m22s
Coreutils provider graph / coreutils (push) Successful in 4m9s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
8c4fbfa8dc
Skip expression subtrees while retaining the original breadth-first import order, including handler and match-case bridge depths. Keep complete AST parsing and current helper byte checks, and compare the projected result with the independent generic walker across the declared code cohort.
docs: Wrap feature documentation consistently
Some checks failed
CI / rust (push) Failing after 1m57s
Markdown / markdown (push) Successful in 11s
CI / rust (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
Coreutils provider graph / coreutils (push) Successful in 4m26s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
fb09ddaad4
Keep the existing feature documentation within the shared Markdown layout rules without changing its content.
Some checks failed
CI / rust (push) Failing after 1m57s
Markdown / markdown (push) Successful in 11s
CI / rust (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
Coreutils provider graph / coreutils (push) Successful in 4m26s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/retained-helper-import-edges:feature/retained-helper-import-edges'
git switch 'feature/retained-helper-import-edges'

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/retained-git-validation-duties'
git merge --no-ff 'feature/retained-helper-import-edges'
git switch 'feature/retained-helper-import-edges'
git rebase 'feature/retained-git-validation-duties'
git switch 'feature/retained-git-validation-duties'
git merge --ff-only 'feature/retained-helper-import-edges'
git switch 'feature/retained-helper-import-edges'
git rebase 'feature/retained-git-validation-duties'
git switch 'feature/retained-git-validation-duties'
git merge --no-ff 'feature/retained-helper-import-edges'
git switch 'feature/retained-git-validation-duties'
git merge --squash 'feature/retained-helper-import-edges'
git switch 'feature/retained-git-validation-duties'
git merge --ff-only 'feature/retained-helper-import-edges'
git switch 'feature/retained-git-validation-duties'
git merge 'feature/retained-helper-import-edges'
git push origin 'feature/retained-git-validation-duties'
Sign in to join this conversation.
No description provided.