Skip to content

concretization cache: use user input spec#52716

Merged
alalazo merged 2 commits into
spack:developfrom
haampie:hs/fix/conc-cache-user-input-spec
Jul 14, 2026
Merged

concretization cache: use user input spec#52716
alalazo merged 2 commits into
spack:developfrom
haampie:hs/fix/conc-cache-user-input-spec

Conversation

@haampie

@haampie haampie commented Jul 13, 2026

Copy link
Copy Markdown
Member

Workaround for "Conditional specs do not round trip as dict #52720".

That issue should be fixed independently, but I don't see why
the concretization cache swaps the user input for the abstract spec
from a file. It feels like it could result in more subtle issues, so this
commit avoids possible future issues.

@haampie haampie added the v1.2.2 PRs to backport for v1.2.2 label Jul 13, 2026
@haampie haampie force-pushed the hs/fix/conc-cache-user-input-spec branch 2 times, most recently from f226c12 to 826d61b Compare July 13, 2026 16:20
haampie added 2 commits July 13, 2026 20:40
Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>
There is a pre-existing bug in JSON (de)serialization of abstract specs
related to conditional specs like `mpileaks %[when='+shared'] c=gcc`,
which loses the `when=...` condition.

There's no technical reason that we should replace the abstract spec
from the user with the deserialized one from the cache, so stop doing
that.

Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>
@haampie haampie force-pushed the hs/fix/conc-cache-user-input-spec branch from 826d61b to acb0537 Compare July 13, 2026 18:41

@alalazo alalazo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair, the ASP input is authoritative, not the abstract spec serialization.

@alalazo alalazo merged commit f914f5f into spack:develop Jul 14, 2026
33 of 34 checks passed
@alalazo alalazo self-assigned this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

solver unit-tests v1.2.2 PRs to backport for v1.2.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants