Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Checkpoint command: check if an env needs to be re-concretized #44235

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

scheibelp
Copy link
Member

> spack-python .../checkpoint.py update
(change a package)
> spack-python .../checkpoint.py check
unequal

For large environments, you can potentially save time concretizing using this command, which tells you when you might need to reconcretize.

It might be better implemented as a feature of environments (that is optionally enabled) vs. a spack-python script.

Examples of things that could affect a re-concretization (report unequal):

  • Adding a spec
  • Removing a spec
  • Changing a spec in spack.yaml
  • Changing a package.py file
  • Adding a requirement
    • even for a package that is not part of the original concretization
  • Adding a repository

Examples of things that would not affect a re-concretization (report equal):

  • you changed the source code of a develop package
  • you git pulled and no associated package.py changed
  • you changed a package.py, but your env uses an alternative from another repo that does not inherit from it

@spackbot-app spackbot-app bot added commands core PR affects Spack core functionality tests General test capability(ies) labels May 17, 2024
@scheibelp scheibelp marked this pull request as draft May 17, 2024 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commands core PR affects Spack core functionality tests General test capability(ies)
Projects
Status: In-Progress PRs
Development

Successfully merging this pull request may close these issues.

None yet

1 participant