fix: Keep native compiler metadata self-contained #627

Open
erikinkinen wants to merge 4 commits from fix/self-contained-native-metadata into fix/native-graph-fixture-toolchain
Owner

Cargo can request metadata stubs in native archives, causing the archive payload to differ from its separately produced full metadata file. Normalize only an existing metadata-embedding option to request full output, retain both original and executed arguments, and preserve that choice in replay and unit identity. The complete byte comparison stays enforced. Runtime-target metadata companions remain separate work.

Depends on #626.

Cargo can request metadata stubs in native archives, causing the archive payload to differ from its separately produced full metadata file. Normalize only an existing metadata-embedding option to request full output, retain both original and executed arguments, and preserve that choice in replay and unit identity. The complete byte comparison stays enforced. Runtime-target metadata companions remain separate work. Depends on [#626](https://git.erikinkinen.fi/erix/integration/pulls/626).
erikinkinen added this to the Alpha 1 milestone 2026-11-09 15:39:13 +01:00
Normalize only Cargo metadata-embedding options already selected by the actual compiler invocation. Retain both original and effective arguments, validate the closed transformation, and preserve it during native replay so complete archive metadata still equals the separately held compiler output.
Preserve the order and arity of repeated recognized embedding options while recording the actual full-output policy in unit identity. Keep compiler-default absence distinct and prove that changed same-name metadata bytes remain refused after restoration.
Preserve Rustc parameter data and terminal source arguments while deriving one canonical effective embedding policy. Check paired metadata through the actual graph unit that retains both outputs rather than inferring a metadata path for archive-only Cargo artifacts.
fix: Preserve tracked compiler metadata field selection
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) Successful in 6s
Coreutils provider graph / coreutils (push) Successful in 1m56s
CI / rust (push) Successful in 3m2s
CI / host_zero (push) Successful in 9m19s
CI / host_two (push) Successful in 13m1s
CI / host_three (push) Successful in 13m12s
CI / host_one (push) Failing after 13m29s
CI / integration (push) Has been skipped
e216c9ee85
Canonicalize repeated and inline metadata options within each tracked compiler field while keeping codegen and unstable field presence distinct. Preserve compiler-default absence so unit identity does not conflate different original tracked selections.
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) Successful in 6s
Coreutils provider graph / coreutils (push) Successful in 1m56s
CI / rust (push) Successful in 3m2s
CI / host_zero (push) Successful in 9m19s
CI / host_two (push) Successful in 13m1s
CI / host_three (push) Successful in 13m12s
CI / host_one (push) Failing after 13m29s
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 'fix/self-contained-native-metadata:fix/self-contained-native-metadata'
git switch 'fix/self-contained-native-metadata'

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 'fix/native-graph-fixture-toolchain'
git merge --no-ff 'fix/self-contained-native-metadata'
git switch 'fix/self-contained-native-metadata'
git rebase 'fix/native-graph-fixture-toolchain'
git switch 'fix/native-graph-fixture-toolchain'
git merge --ff-only 'fix/self-contained-native-metadata'
git switch 'fix/self-contained-native-metadata'
git rebase 'fix/native-graph-fixture-toolchain'
git switch 'fix/native-graph-fixture-toolchain'
git merge --no-ff 'fix/self-contained-native-metadata'
git switch 'fix/native-graph-fixture-toolchain'
git merge --squash 'fix/self-contained-native-metadata'
git switch 'fix/native-graph-fixture-toolchain'
git merge --ff-only 'fix/self-contained-native-metadata'
git switch 'fix/native-graph-fixture-toolchain'
git merge 'fix/self-contained-native-metadata'
git push origin 'fix/native-graph-fixture-toolchain'
Sign in to join this conversation.
No description provided.