Skip to content

fix: compare report lock toolchains with hierarchy::toolchains_match - #69

Merged
HaoZeke merged 1 commit into
mainfrom
fix/report-toolchains-match
Nov 20, 2026
Merged

HaoZeke merged 1 commit into
mainfrom
fix/report-toolchains-match

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Problem

provides and classify_stack_diff::same_module in src/report.rs compared toolchain.label() strings instead of calling crate::hierarchy::toolchains_match. Older locks that record a system toolchain with an empty version (system/"") or the legacy dummy/dummy name produce labels that differ from system/system. As a result, provides and format_build_list_excluding failed to recognize already-provided SYSTEM modules, and classify_stack_diff misclassified an unchanged SYSTEM module as a version bump plus an addition when multiple versions of the same package name were present.

Reproducer

provides and classify_stack_diff in src/report.rs compared raw
toolchain labels rather than normalized toolchains. Locks produced by
older EasyBuild or eb-stack versions record system toolchains with an
empty version or the legacy dummy name, so those entries failed to
match system/system. format_build_list_excluding then scheduled
redundant builds, and classify_stack_diff misclassified unchanged
modules when multiple versions of one name existed.

Use crate::hierarchy::toolchains_match in both provides and
classify_stack_diff::same_module. Add unit tests covering legacy empty
system or dummy spellings against system/system alongside a non-system
toolchain guard.
@HaoZeke
HaoZeke merged commit e12552b into main Nov 20, 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