Skip to content

solver: exclude externals from deprecation penalties#51764

Merged
haampie merged 6 commits intospack:developfrom
alalazo:bugfix/deprecated-externals
Dec 16, 2025
Merged

solver: exclude externals from deprecation penalties#51764
haampie merged 6 commits intospack:developfrom
alalazo:bugfix/deprecated-externals

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Dec 16, 2025

#51591 started applying deprecation penalties also to external specs. Here we restore the previous semantics and exclude externals from taking a deprecation penalty.

This is done applying a separate:

deprecation_penalty(PackageNode, Penalty).

in the ASP problem, according to certain rules. This makes it easier to debug whether a penalty for deprecation was taken, and to add or modify behavior around deprecation in following PRs.

Benchmarks

radiuss.develop.csv
radiuss.pr.csv

comparison

@alalazo alalazo marked this pull request as ready for review December 16, 2025 07:22
@haampie haampie merged commit 8ecc2ef into spack:develop Dec 16, 2025
30 of 31 checks passed
@alalazo alalazo deleted the bugfix/deprecated-externals branch December 16, 2025 11:03
@alalazo alalazo added the v1.1.1 label Jan 15, 2026
@alalazo alalazo mentioned this pull request Jan 15, 2026
2 tasks
becker33 pushed a commit that referenced this pull request Jan 16, 2026
#51591 started applying deprecation penalties also to external specs. Here we restore  the previous semantics and exclude externals from taking a deprecation penalty.

This is done applying a separate:

```prolog
deprecation_penalty(PackageNode, Penalty).
```

in the ASP problem, according to certain rules. This makes it easier to debug whether a penalty for deprecation was taken, and to add or modify behavior around deprecation  in following PRs.


Signed-off-by: Massimiliano Culpo <[email protected]>
vjranagit pushed a commit to vjranagit/spack that referenced this pull request Jan 18, 2026
spack#51591 started applying deprecation penalties also to external specs. Here we restore  the previous semantics and exclude externals from taking a deprecation penalty.

This is done applying a separate:

```prolog
deprecation_penalty(PackageNode, Penalty).
```

in the ASP problem, according to certain rules. This makes it easier to debug whether a penalty for deprecation was taken, and to add or modify behavior around deprecation  in following PRs.


Signed-off-by: Massimiliano Culpo <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 22, 2026
#51591 started applying deprecation penalties also to external specs. Here we restore  the previous semantics and exclude externals from taking a deprecation penalty.

This is done applying a separate:

```prolog
deprecation_penalty(PackageNode, Penalty).
```

in the ASP problem, according to certain rules. This makes it easier to debug whether a penalty for deprecation was taken, and to add or modify behavior around deprecation  in following PRs.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 26, 2026
#51591 started applying deprecation penalties also to external specs. Here we restore  the previous semantics and exclude externals from taking a deprecation penalty.

This is done applying a separate:

```prolog
deprecation_penalty(PackageNode, Penalty).
```

in the ASP problem, according to certain rules. This makes it easier to debug whether a penalty for deprecation was taken, and to add or modify behavior around deprecation  in following PRs.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants