Skip to content

Restack the parity fixes onto main - #73

Merged
HaoZeke merged 7 commits into
developfrom
stack/parity-ready
Nov 21, 2026
Merged

HaoZeke merged 7 commits into
developfrom
stack/parity-ready

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Restacks the parity-ready line onto main at its current tip, after #71 and #72 merged.

Commits

  1. fix(eb_parse): evaluate known conditional guards for augassign
  2. fix(build_order): match full-module pins across toolchains
  3. fix(hierarchy): order gfbf before gompi in foss derivation
  4. fix(hierarchy): keep compiler levels in sparse trees

Each commit has the same git patch-id --stable as its counterpart on the earlier parity line, so the series carries the same four changes.

Dropped

Two replayed commits from the earlier line are already on main, matched by git patch-id --stable:

Notes

The fixtures under fixtures/parity_sparse_compiler_hierarchy/ are vendored upstream easyconfigs and framework toolchain files with the upstream GPL-2.0 LICENSE and README. Cargo.toml excludes fixtures/parity_*/ from the package.

Generalize branch-condition evaluation in eb_parse from ARCH-only
guards to decidable boolean predicates over parsed recipe variables
such as `if 'gpu' in local_pennylane_lightning_extras:`. Unmodeled
conditions continue to skip safely.

Vendor verbatim PennyLane-0.37.0-foss-2023a-CUDA-12.1.1 plus cuQuantum
and CUDA fixtures under fixtures/parity_pennylane_cond/ with upstream
GPL-2.0 LICENSE and README.md. Exclude fixtures/parity_*/ in
Cargo.toml and assert the resolved cuQuantum module against EasyBuild.
Allow build_order::within_generation and eb_parse::candidate_matches_dep
to keep candidates when an un-toolchained exact pin spells the target
module's full toolchain-suffixed version, such as jemalloc
5.3.0-GCCcore-13.3.0 in SYSTEM recipe sentieon-genomics-202503.02.eb.

Vendor the verbatim 19-file sentieon-genomics-202503.02 robot closure
under fixtures/parity_sentieon_system_dep/ with upstream GPL-2.0
LICENSE and README.md.
Match EasyBuild's Foss.SUBTOOLCHAIN precedence and the foss
fixtures when deriving foss hierarchies from the easyconfig tree by
placing gfbf before gompi. Previously derived generations such as
foss-2022a and foss-2024.05 emitted gompi before gfbf.

Vendor the verbatim 32-file foss-2022a closure and framework foss.py
under fixtures/parity_foss_subtoolchain/ with upstream GPL-2.0
LICENSE and README.md.
Recognize SYSTEM Toolchain and GCCcore-based compiler recipes as
subtoolchains in derive_hierarchy_by_walking even when no recipe in a
sparse tree names them as its toolchain, such as iimkl-2025b without
intel-compilers-toolchain dependents. Resolve split version plus
versionsuffix compiler definitions such as
rocm-compilers-19.0.0-ROCm-6.4.1.

Vendor verbatim iimkl-2025b and rompi-2025a closures with framework
toolchain files under fixtures/parity_sparse_compiler_hierarchy/
alongside upstream GPL-2.0 LICENSE and README.md.
Exclude parity fixture directories from site-name scanning while retaining coverage elsewhere.
recipe check and build_order each decided on their own whether a
dependency tuple without a toolchain may select a SYSTEM build, and
recipe check also accepted any toolchain-suffixed version outright. A
foss recipe listing ('zlib', '1.3.1-special') therefore took a SYSTEM
zlib whose versionsuffix happened to complete the version string.

hierarchy::bare_dependency_allows_system now encodes the rule: a SYSTEM
build is admissible only to a SYSTEM recipe. build_order applies it
directly, since it ranks hierarchy levels by distance itself, and
ToolchainHierarchy::admits_bare_dependency_candidate combines it with
hierarchy membership for recipe check. The full-module shortcut in
candidate_matches_dep_core goes with it.
Dropping the full-module shortcut in the previous commit also stopped
recipe check from resolving a dependency version that spells the whole
toolchain-suffixed module, such as ('jemalloc', '5.3.0-GCCcore-13.3.0')
in the SYSTEM recipe sentieon-genomics-202503.02. build_order still
accepts such a pin in within_generation, so the two disagreed.

candidate_matches_dep_core accepts the pin again, wherever the named
build sits in the hierarchy, as build_order does. The SYSTEM rule from
bare_dependency_allows_system still applies, so a non-SYSTEM recipe
cannot reach a SYSTEM build this way either.
@HaoZeke
HaoZeke changed the base branch from main to develop November 21, 2026 05:28
@HaoZeke
HaoZeke merged commit 7891069 into develop Nov 21, 2026
22 checks passed
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