Skip to content

show_duplicate_packages.py: use spack.lock instead of 'spack concretize' output#1601

Merged
climbfuji merged 7 commits intoJCSDA:developfrom
AlexanderRichert-NOAA:duplicates_via_json
Apr 30, 2025
Merged

show_duplicate_packages.py: use spack.lock instead of 'spack concretize' output#1601
climbfuji merged 7 commits intoJCSDA:developfrom
AlexanderRichert-NOAA:duplicates_via_json

Conversation

@AlexanderRichert-NOAA
Copy link
Copy Markdown
Collaborator

Summary

This PR updates show_duplicate_packages.py to use spack.lock to detect duplicates rather than spack concretize stdout. It is safer (especially if an environment has been concretized in multiple steps), it simplifies the code, and it's cleaner. It removes the -d option (it now only shows duplicates), and the -c option (which at this point we don't really have any use for because we're doing one-compiler environments).

Testing

Tested on personal machine (+updating util tests).

Applications affected

n/a

Systems affected

all

Dependencies

none

Issue(s) addressed

none

Checklist

  • This PR addresses one issue/problem/enhancement, or has a very good reason for not doing so.
  • These changes have been tested on the affected systems and applications.
  • All dependency PRs/issues have been resolved and this PR can be merged.

@AlexanderRichert-NOAA AlexanderRichert-NOAA marked this pull request as draft April 8, 2025 22:22
@AlexanderRichert-NOAA AlexanderRichert-NOAA marked this pull request as ready for review April 29, 2025 22:40
@AlexanderRichert-NOAA
Copy link
Copy Markdown
Collaborator Author

This is good to go assuming the remaining CIs succeed

@climbfuji climbfuji merged commit f677059 into JCSDA:develop Apr 30, 2025
8 checks passed
climbfuji added a commit that referenced this pull request Apr 30, 2025
PR #1601 updated show_duplicate_packages.py, but many places were missed (documentation and actual use in scripts).
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.

2 participants