Include concrete environments with include_concrete#33768
Include concrete environments with include_concrete#33768tgamblin merged 1 commit intospack:developfrom
include_concrete#33768Conversation
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
lib/spack/spack/cmd/env.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
Success: no issues found in 569 source files
mypy checks were clean
==> Running black checks
reformatted lib/spack/spack/cmd/env.py
All done! ✨ 🍰 ✨
1 file reformatted.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
lib/spack/spack/cmd/env.py
lib/spack/spack/environment/environment.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
lib/spack/llnl/util/lang.py:1076: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/llnl/util/lock.py:84: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/spack/bootstrap.py:89: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
Success: no issues found in 569 source files
mypy checks were clean
==> Running black checks
reformatted lib/spack/spack/cmd/env.py
All done! ✨ 🍰 ✨
1 file reformatted, 1 file left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
lib/spack/spack/cmd/env.py
lib/spack/spack/environment/environment.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
lib/spack/llnl/util/lang.py:1076: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/llnl/util/lock.py:84: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/spack/bootstrap.py:89: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
Success: no issues found in 569 source files
mypy checks were clean
==> Running black checks
reformatted lib/spack/spack/cmd/env.py
All done! ✨ 🍰 ✨
1 file reformatted, 1 file left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
lib/spack/spack/cmd/env.py
lib/spack/spack/environment/environment.py
lib/spack/spack/schema/env.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
lib/spack/llnl/util/lang.py:1076: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/llnl/util/lock.py:84: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/spack/bootstrap.py:89: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
Success: no issues found in 569 source files
mypy checks were clean
==> Running black checks
reformatted lib/spack/spack/cmd/env.py
reformatted lib/spack/spack/environment/environment.py
All done! ✨ 🍰 ✨
2 files reformatted, 1 file left unchanged.
black checks were clean
==> Running flake8 checks
lib/spack/spack/environment/environment.py:934: [F841] local variable 'new_dict_roots' is assigned to but never used
lib/spack/spack/environment/environment.py:935: [F841] local variable 'lockfile_meta' is assigned to but never used
lib/spack/spack/environment/environment.py:945: [F841] local variable 'old_env' is assigned to but never used
lib/spack/spack/environment/environment.py:945: [F821] undefined name 'Envinronment'
flake8 found errors
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
lib/spack/spack/cmd/env.py
lib/spack/spack/environment/environment.py
lib/spack/spack/schema/env.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
lib/spack/llnl/util/lang.py:1064: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/spack/util/timer.py:68: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/spack/build_environment.py:291: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
lib/spack/spack/bootstrap/_common.py:52: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
Success: no issues found in 571 source files
mypy checks were clean
==> Running black checks
reformatted lib/spack/spack/cmd/env.py
reformatted lib/spack/spack/environment/environment.py
All done! ✨ 🍰 ✨
2 files reformatted, 1 file left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
lib/spack/spack/cmd/env.py
lib/spack/spack/environment/environment.py
lib/spack/spack/schema/env.py
==> Running isort checks
isort checks were clean
==> Running black checks
All done! ✨ 🍰 ✨
3 files left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
Success: no issues found in 571 source files
mypy checks were clean
==> spack style checks were clean
I wasn't able to make any further changes, but please see the message above for remaining issues you can fix locally! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
lib/spack/spack/cmd/env.py
lib/spack/spack/cmd/find.py
lib/spack/spack/environment/__init__.py
lib/spack/spack/environment/environment.py
lib/spack/spack/schema/env.py
lib/spack/spack/test/cmd/env.py
lib/spack/spack/test/cmd/find.py
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted lib/spack/spack/environment/environment.py
All done! ✨ 🍰 ✨
1 file reformatted, 6 files left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
Success: no issues found in 619 source files
mypy checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
lib/spack/spack/cmd/env.py
lib/spack/spack/cmd/find.py
lib/spack/spack/environment/__init__.py
lib/spack/spack/environment/environment.py
lib/spack/spack/schema/env.py
lib/spack/spack/test/cmd/env.py
lib/spack/spack/test/cmd/find.py
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted lib/spack/spack/cmd/env.py
All done! ✨ 🍰 ✨
1 file reformatted, 6 files left unchanged.
black checks were clean
==> Running flake8 checks
lib/spack/spack/test/cmd/env.py:1819: [F841] local variable 'lockfile_as_dict' is assigned to but never used
flake8 found errors
==> Running mypy checks
Success: no issues found in 619 source files
mypy checks were clean
I've updated the branch with style fixes. |
|
Interesting that it has been 6 hours and prechecks are still in |
|
@spackbot help |
|
You can interact with me in many ways!
I'll also help to label your pull request and assign reviewers! |
|
TBD. Will closing and re-opening force pre-checks to complete despite conflicts? |
There is a unit test -- Goals of the test are to demonstrate:
|
IMO Creation of an environment that includes a concrete environment will have its concrete specs at creation time. The only way the environment will reflect changes in an updated and re-concretized included environment is if the environment itself is re-concretized. The same principle applies for nested included environments. For example, if At least that's how the code is currently implemented. |
|
planning to after I deconflict it |
Okay. I was just starting to do that but won't if you've already started. |
Add the ability to include any number of (potentially nested) concrete
environments.
The contents of included concrete environments' spack.lock files are
included in the environment's lock file at creation time. Any changes
to included concrete environments are only reflected after the environment
is re-concretized from the re-concretized included environments.
Co-authored-by: Kayla Butler <<[email protected]>
Co-authored-by: Tamara Dahlgren <[email protected]
m>
Co-authored-by: Todd Gamblin <[email protected]>
|
The CodeCov numbers currently reported in the checks do not look right at all. Following |
If we are in a hurry to merge a PR, in my opinion we should leave open discussions open and force merge. In that way point of discussions are easier to spot later. Otherwise the "Unresolved conversations" will just push us to close stuff only to the detriment of our workflows. |
Resolves #33313
Add the ability to include any number of (potentially nested) concrete environments, e.g.:
or, from the CLI:
The contents of included concrete environments' spack.lock files are
included in the environment's lock file at creation time. Any changes
to included concrete environments are only reflected after the environment
is re-concretized from the re-concretized included environments.