Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ jobs:
--test cli_ergonomics \
--test cli_reference \
--test cuda_cc \
--test cuda_toolchain_templates \
--test component_reach \
--test doc_walkthrough \
--test eb_robot_paths \
Expand Down Expand Up @@ -218,6 +219,7 @@ jobs:
--test stack_shard_robot_versionprefix_field \
--test planner_traversal \
--test hierarchy_universe \
--test toolchain_hierarchy_parity \
--test jenkins_build_list \
--test lint_fixtures \
--test llms_txt \
Expand All @@ -232,6 +234,8 @@ jobs:
--test pr_overlap_easyconfigs \
--test pr_overlap_easyconfigs_open \
--test pypi_cran_extend \
--test raw_string_literals \
--test dep_matching_and_append \
--test rebuild_set \
--test recipe_commands \
--test repro_scoring \
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+cuda-toolchain-templates.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Expand `%(cudaver)s` and other dependency version templates inside `toolchain.version`, derive `cudaver` from `CUDA-<ver>` toolchain labels when no `CUDA` dependency is listed, and admit suffixed toolchain definitions in `dependency_candidate_scope`.
1 change: 1 addition & 0 deletions changelog.d/+dep-matching-and-append.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Match combined `version + versionsuffix` dependency pins in `candidate_matches_dep_for_recipe` when `dep.versionsuffix` is unset (such as `MCR/R2019b.8`), and accept trailing commas in `list.append(...)` statements.
3 changes: 3 additions & 0 deletions changelog.d/+eb-parse-alt-param-names.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Map EasyBuild's alternative easyconfig parameter spellings such as
`version_suffix`, `version_prefix`, `deps`, and `build_deps` to their
canonical parameter names after parsing.
1 change: 1 addition & 0 deletions changelog.d/+generator-expr-in-calls.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Evaluate single-clause generator expressions inside method call arguments and parentheses (`sep.join(expr for var in seq)`) in `eb_parse`, recovering dropped `exts_list` blocks in `AlphaPulldown`, `jax`, and `scib-metrics`.
1 change: 1 addition & 0 deletions changelog.d/+nvidia-compilers-cuda-hierarchy.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include `versionsuffix` when reading the `nvidia-compilers` or `NVHPC` dependency pin inside `derive_nvidia_family_hierarchy`, so `NVHPC-25.3-CUDA-12.8.0` hierarchies emit `nvidia-compilers-25.3-CUDA-12.8.0` and resolve `libxc` and `GSL` dependencies built against it.
1 change: 1 addition & 0 deletions changelog.d/+raw-string-literals.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Parse Python raw string literals (`r"..."`, `r'...'`, `r"""..."""`) and raw f-strings (`rf"..."`, `fr"..."`) in `eb_parse` instead of rejecting the prefix as an unknown identifier and dropping `exts_list` or command parameters.
3 changes: 3 additions & 0 deletions changelog.d/+satisfies-dep-toolchain.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enforce non-system per-dependency toolchain overrides in
`build_order::satisfies` even when a `SYSTEM` variant shares the exact
module version string.
1 change: 1 addition & 0 deletions changelog.d/+toolchain-hierarchy-parity.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Derive `intel` (`iimkl`) and `lfoss` (`lfbf`) intermediate composite toolchains in topological subtoolchain-first order, and exclude `gompi` from `gfbf` hierarchies.
1 change: 1 addition & 0 deletions changelog.d/+unpack-unparenthesized-tuple.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Parse unparenthesized comma-separated right-hand side tuples in `eb_parse` unpacking assignments (such as `_parallel_tests, _test_type = 1, 'fast'`) so `exts_list` in `CuPy` recipes is preserved.
69 changes: 68 additions & 1 deletion src/build_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,15 @@ pub(crate) fn satisfies(candidate: &Candidate, dep: &DepReq) -> bool {
// is string equality rather than a relaxed match.
if let Some(pinned) = dep.version_req.strip_prefix("==") {
let wanted = format!("{pinned}{}", dep.versionsuffix.as_deref().unwrap_or(""));
if module_version(candidate) == wanted {
let toolchain_ok = match dep.toolchain.as_ref() {
None => true,
Some(want) => {
crate::hierarchy::toolchains_match(&candidate.toolchain, want)
|| (crate::hierarchy::is_system_toolchain(want)
&& dep.versionsuffix.as_deref().is_some_and(|s| !s.is_empty()))
}
};
if toolchain_ok && module_version(candidate) == wanted {
return true;
}
}
Expand Down Expand Up @@ -2338,4 +2346,63 @@ mod tests {
assert!(names(&plain).iter().any(|name| name.starts_with("Base-")));
assert!(names(&plain).iter().any(|name| name.starts_with("Mid-")));
}

#[test]
fn satisfies_honors_explicit_toolchain_when_system_variant_shares_version() {
let binutils_system = Candidate {
name: "binutils".into(),
version: "2.38".into(),
toolchain: tc("system", "system"),
versionsuffix: None,
versionprefix: None,
easyconfig_path: String::new(),
dependencies: vec![],
builddependencies: vec![],
exts_list: vec![],
easyblock: None,
moduleclass: None,
};
let binutils_gcccore = Candidate {
name: "binutils".into(),
version: "2.38".into(),
toolchain: tc("GCCcore", "11.3.0"),
versionsuffix: None,
versionprefix: None,
easyconfig_path: String::new(),
dependencies: vec![],
builddependencies: vec![],
exts_list: vec![],
easyblock: None,
moduleclass: None,
};
let dep = DepReq {
name: "binutils".into(),
version_req: "==2.38".into(),
versionsuffix: Some(String::new()),
toolchain: Some(tc("GCCcore", "11.3.0")),
};
assert!(!satisfies(&binutils_system, &dep));
assert!(satisfies(&binutils_gcccore, &dep));

let system_suffixed = Candidate {
name: "cuQuantum".into(),
version: "25.03.0.11".into(),
toolchain: tc("system", "system"),
versionsuffix: Some("-CUDA-12.6.0".into()),
versionprefix: None,
easyconfig_path: String::new(),
dependencies: vec![],
builddependencies: vec![],
exts_list: vec![],
easyblock: None,
moduleclass: None,
};
let system_dep = DepReq {
name: "cuQuantum".into(),
version_req: "==25.03.0.11-CUDA-12.6.0".into(),
versionsuffix: Some(String::new()),
toolchain: Some(tc("system", "system")),
};
assert!(satisfies(&system_suffixed, &system_dep));
}
}
Loading