Skip to content

ci: drop soldr's job-wide CARGO_ENCODED_RUSTFLAGS in cross jobs (soldr#4597) - #699

Queued
zackees wants to merge 3 commits into
mainfrom
fix/drop-global-encoded-rustflags
Queued

zackees wants to merge 3 commits into
mainfrom
fix/drop-global-encoded-rustflags

Conversation

@zackees

@zackees zackees commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

setup-soldr cross-targets (soldr prepare --target) and soldr env export the
target link flags in the global CARGO_ENCODED_RUSTFLAGS as well as the
target-scoped CARGO_TARGET__RUSTFLAGS. Host rustc probes and build
scripts read the global one, so -C linker-flavor=lld-link failed every
host probe on cold slots (full CI 47426570226, all MSVC Build and cross
jobs). Remove it at entry; the target-scoped copy still applies to
--target builds, and soldr build derives its own.

Ci-Attestation: {"at":1796421465,"gate":"python/all/basedpyright","host":"linux-x86_64","key":"","lane":"py-static","parents":["5c9fa44a2ec21e87854b94e5339967f742f0fab6"],"secs":0,"stamp":"8642e7f26467ecb99ba4fa17fb0c3e26","tree":"51a9cd0c0c3162f0251654a4a85bad23c0fd01d0","v":1,"via":"run"}
Ci-Attestation: {"at":1796421465,"gate":"python/all/ruff-check","host":"linux-x86_64","key":"","lane":"py-static","parents":["5c9fa44a2ec21e87854b94e5339967f742f0fab6"],"secs":0,"stamp":"10fa4d81a24067f2a201cc137f2a34cb","tree":"51a9cd0c0c3162f0251654a4a85bad23c0fd01d0","v":1,"via":"run"}
Ci-Attestation: {"at":1796421465,"gate":"python/all/ruff-format","host":"linux-x86_64","key":"","lane":"py-static","parents":["5c9fa44a2ec21e87854b94e5339967f742f0fab6"],"secs":0,"stamp":"6d25ef8f7a7cf6ac804faa23cc756cf8","tree":"51a9cd0c0c3162f0251654a4a85bad23c0fd01d0","v":1,"via":"run"}

…r#4597)

setup-soldr cross-targets (soldr prepare --target) and soldr env export the
target link flags in the global CARGO_ENCODED_RUSTFLAGS as well as the
target-scoped CARGO_TARGET_<T>_RUSTFLAGS. Host rustc probes and build
scripts read the global one, so -C linker-flavor=lld-link failed every
host probe on cold slots (full CI 47426570226, all MSVC Build and cross
jobs). Remove it at entry; the target-scoped copy still applies to
--target builds, and soldr build derives its own.

Ci-Attestation: {"at":1796421465,"gate":"python/all/basedpyright","host":"linux-x86_64","key":"","lane":"py-static","parents":["5c9fa44a2ec21e87854b94e5339967f742f0fab6"],"secs":0,"stamp":"8642e7f26467ecb99ba4fa17fb0c3e26","tree":"51a9cd0c0c3162f0251654a4a85bad23c0fd01d0","v":1,"via":"run"}
Ci-Attestation: {"at":1796421465,"gate":"python/all/ruff-check","host":"linux-x86_64","key":"","lane":"py-static","parents":["5c9fa44a2ec21e87854b94e5339967f742f0fab6"],"secs":0,"stamp":"10fa4d81a24067f2a201cc137f2a34cb","tree":"51a9cd0c0c3162f0251654a4a85bad23c0fd01d0","v":1,"via":"run"}
Ci-Attestation: {"at":1796421465,"gate":"python/all/ruff-format","host":"linux-x86_64","key":"","lane":"py-static","parents":["5c9fa44a2ec21e87854b94e5339967f742f0fab6"],"secs":0,"stamp":"6d25ef8f7a7cf6ac804faa23cc756cf8","tree":"51a9cd0c0c3162f0251654a4a85bad23c0fd01d0","v":1,"via":"run"}
@zackees
zackees enabled auto-merge December 4, 2026 21:58
It ran the real 'soldr cargo nextest --version', so it failed on any runner
whose soldr toolchain was mid-repair (PR #699 run 47433635049, fsx).

Ci-Attestation: {"at":1796422239,"gate":"python/all/basedpyright","host":"linux-x86_64","key":"","lane":"py-static","parents":["27cad86016efa9f308fd7bdd072dd33e34aae414"],"secs":0,"stamp":"4fcd9f76f5da5190b5ba1c8d39d66c45","tree":"d6931da4014fa44948df1099b03a66fffd6a055d","v":1,"via":"run"}
Ci-Attestation: {"at":1796422239,"gate":"python/all/ruff-check","host":"linux-x86_64","key":"","lane":"py-static","parents":["27cad86016efa9f308fd7bdd072dd33e34aae414"],"secs":0,"stamp":"95574dbf4618a6cace732bc787fc9eb7","tree":"d6931da4014fa44948df1099b03a66fffd6a055d","v":1,"via":"run"}
Ci-Attestation: {"at":1796422239,"gate":"python/all/ruff-format","host":"linux-x86_64","key":"","lane":"py-static","parents":["27cad86016efa9f308fd7bdd072dd33e34aae414"],"secs":0,"stamp":"a5c6a147e29aed93d3ed0b7544875e58","tree":"d6931da4014fa44948df1099b03a66fffd6a055d","v":1,"via":"run"}
'soldr rustup run <nightly> cargo test' inherits a stable rustc through
PATH on stamped-lower runners (soldr#4598), failing with '-Z is only
accepted on the nightly compiler' (run 47435707226). 'soldr cargo
+<nightly>' goes through soldr's compiler resolution.

Ci-Attestation: {"at":1796429800,"gate":"python/all/basedpyright","host":"linux-x86_64","key":"","lane":"py-static","parents":["0bbb92f8f52b496fe1dd30b2cdb3a5377585db5d"],"secs":1,"stamp":"463fec61c046d4dfc2a4adcebb9693ea","tree":"14d0d9f75a2060de1808d008e07e6134b8258caf","v":1,"via":"run"}
Ci-Attestation: {"at":1796429800,"gate":"python/all/ruff-check","host":"linux-x86_64","key":"","lane":"py-static","parents":["0bbb92f8f52b496fe1dd30b2cdb3a5377585db5d"],"secs":1,"stamp":"d91c4cc156e35c56754123079f3c7b57","tree":"14d0d9f75a2060de1808d008e07e6134b8258caf","v":1,"via":"run"}
Ci-Attestation: {"at":1796429800,"gate":"python/all/ruff-format","host":"linux-x86_64","key":"","lane":"py-static","parents":["0bbb92f8f52b496fe1dd30b2cdb3a5377585db5d"],"secs":1,"stamp":"e43b5f8093f309b9964ea2b8731d0357","tree":"14d0d9f75a2060de1808d008e07e6134b8258caf","v":1,"via":"run"}
@zackees
zackees added this pull request to the merge queue Dec 5, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant