perf: Compile input providers at their first admitted import #727

Open
erikinkinen wants to merge 3 commits from perf/owned-input-module-compilation into perf/owned-input-root-imports
Owner

Input owners were compiling every captured provider during startup, including providers never imported by that command. Keep the complete source and literal-import closure checks, then compile a provider's original immutable bytes at its first admitted import.

The actual module is registered before compilation. Its filename, header and import registry must pass the body POST before completion is published. Compile errors retain the partial module and original failure; repeated imports reuse the same module. No AST or executable-code approval is stored in the source records.

Based on #723.

  • Complete captured-source and import-closure checks.
  • Original module, constructor and nested import lifetime controls.
  • Actual unused invalid source, encoding, future flags and warning refusals.
  • All fifteen original input controls under their existing readiness and cleanup limits.
Input owners were compiling every captured provider during startup, including providers never imported by that command. Keep the complete source and literal-import closure checks, then compile a provider's original immutable bytes at its first admitted import. The actual module is registered before compilation. Its filename, header and import registry must pass the body POST before completion is published. Compile errors retain the partial module and original failure; repeated imports reuse the same module. No AST or executable-code approval is stored in the source records. Based on #723. - [x] Complete captured-source and import-closure checks. - [x] Original module, constructor and nested import lifetime controls. - [x] Actual unused invalid source, encoding, future flags and warning refusals. - [x] All fifteen original input controls under their existing readiness and cleanup limits.
erikinkinen added this to the Alpha 1 milestone 2026-11-11 09:44:38 +01:00
Retain complete captured-source and literal-import closure validation before provider execution, then compile only an actually admitted module from its original immutable bytes. Register its partial lifetime before compilation and finish it only after the body and registry checks succeed, preserving original errors and rollback without a mutable AST or executable-code approval cache.
Record the complete immutable provider closure for the input entry so every captured byte and filename remains tied to one source revision.
build: Bind the module compilation source declaration
Some checks failed
Markdown / markdown (push) Successful in 49s
CI / cargo_publications (pull_request) Has been skipped
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
Coreutils provider graph / coreutils (push) Failing after 3m36s
CI / cargo_publications (push) Failing after 8m15s
CI / rust (push) Failing after 9m1s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
e250cd67b6
Authenticate the complete source declaration before the input entry admits its original provider modules.
Some checks failed
Markdown / markdown (push) Successful in 49s
CI / cargo_publications (pull_request) Has been skipped
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
Coreutils provider graph / coreutils (push) Failing after 3m36s
CI / cargo_publications (push) Failing after 8m15s
CI / rust (push) Failing after 9m1s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (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 'perf/owned-input-module-compilation:perf/owned-input-module-compilation'
git switch 'perf/owned-input-module-compilation'

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 'perf/owned-input-root-imports'
git merge --no-ff 'perf/owned-input-module-compilation'
git switch 'perf/owned-input-module-compilation'
git rebase 'perf/owned-input-root-imports'
git switch 'perf/owned-input-root-imports'
git merge --ff-only 'perf/owned-input-module-compilation'
git switch 'perf/owned-input-module-compilation'
git rebase 'perf/owned-input-root-imports'
git switch 'perf/owned-input-root-imports'
git merge --no-ff 'perf/owned-input-module-compilation'
git switch 'perf/owned-input-root-imports'
git merge --squash 'perf/owned-input-module-compilation'
git switch 'perf/owned-input-root-imports'
git merge --ff-only 'perf/owned-input-module-compilation'
git switch 'perf/owned-input-root-imports'
git merge 'perf/owned-input-module-compilation'
git push origin 'perf/owned-input-root-imports'
Sign in to join this conversation.
No description provided.