Commit Graph

6040 Commits

Author SHA1 Message Date
Gregory Becker
c39610e5a0 update test to match new behavior 2023-04-03 23:51:06 -07:00
Gregory Becker
3146dbee05 typo 2023-04-03 23:51:06 -07:00
becker33
e6c34d39ba [@spackbot] updating style on behalf of becker33 2023-04-03 23:51:05 -07:00
Gregory Becker
9a1e9574aa remove auto replace with [exchange, symlink] 2023-04-03 23:51:05 -07:00
Gregory Becker
b97107af54 increase coverage 2023-04-03 23:51:05 -07:00
Gregory Becker
b48dfe6589 style 2023-04-03 23:51:04 -07:00
Gregory Becker
b8e58e9bd8 tinker with error message 2023-04-03 23:51:04 -07:00
Gregory Becker
bd305d48a9 enable spack env view regenerate -f 2023-04-03 23:50:53 -07:00
Gregory Becker
ae3a5f3848 additional testing 2023-04-03 23:49:58 -07:00
Gregory Becker
24dad071d4 remove vestigial code 2023-04-03 23:49:57 -07:00
Gregory Becker
5fc3dd7a26 Revert "test"
This reverts commit 23e65646d5.
2023-04-03 23:49:57 -07:00
Gregory Becker
14f0ad4dd3 indentation typo 2023-04-03 23:49:57 -07:00
Gregory Becker
e156679b5a test 2023-04-03 23:49:57 -07:00
Gregory Becker
6f959badcb refactor for review 2023-04-03 23:49:56 -07:00
Gregory Becker
6bad473e4e ensure renameat2 checks only run when required 2023-04-03 23:49:56 -07:00
Gregory Becker
9baea936f2 fix CDLL failure on windows 2023-04-03 23:49:56 -07:00
Gregory Becker
a30b07dd36 address review comments 2023-04-03 23:49:56 -07:00
Gregory Becker
553a9036eb typo 2023-04-03 23:49:55 -07:00
Gregory Becker
d9637751cb flake 2023-04-03 23:49:55 -07:00
Gregory Becker
f6c895ce10 more robust switching between atomic update methods 2023-04-03 23:49:55 -07:00
Gregory
17381f0281 fixup 2023-04-03 23:49:55 -07:00
Gregory
0d4acde1bf clean up code/address review 2023-04-03 23:49:54 -07:00
Gregory
d3000d540e remove vestigial code 2023-04-03 23:49:54 -07:00
Gregory
9df9bfa4b7 attempt at fixing typing info 2023-04-03 23:49:54 -07:00
becker33
5af37b7059 [@spackbot] updating style on behalf of becker33 2023-04-03 23:49:54 -07:00
Gregory
d31efd67ff flake 2023-04-03 23:49:53 -07:00
Gregory
db3ee62dc0 use renameat2 for atomic view updates. 2023-04-03 23:49:53 -07:00
Gregory Becker
5a23819165 style 2023-03-23 12:48:02 -07:00
Gregory Becker
9df3b57f1f update broadcast test to test excludes as well 2023-03-23 11:24:47 -07:00
Gregory Becker
788ad561bd fix excludes with bcast 2023-03-23 11:24:06 -07:00
becker33
c8c025215d [@spackbot] updating style on behalf of becker33 2023-03-13 17:14:28 +00:00
Gregory Becker
1df6a3196a matrix broadcast: more robust test 2023-02-23 15:47:11 -08:00
Gregory Becker
7014eb3236 matrices: broadcast key combinatorially applies to all nodes in matrix 2023-02-23 15:40:34 -08:00
Todd Gamblin
6b27aebeb4
colify.py: get rid of **kwargs (#35641)
`colify` is an old module in Spack that still uses `**kwargs` liberally. 

We should be more explicit. Doing this eliminates the need for many 
checks (can't pass the wrong arg if it isn't allowed) and makes the 
function documentation more clear.
2023-02-23 11:18:54 -08:00
Harmen Stoppels
3d41b71664
buildcache push: ensure bool arguments for include_* (#35632)
Fixes a bug introduced in 44ed0de8c0
where the push method of binary_distribution now takes named args
include_root and include_depedencies, to avoid the **kwarg hole.

But the call site wasn't update and we passed a dict of keys/values instead
of arguments, which resulted in a call like this:

```
push(include_root={"include_root": True, "include_dependencies": False})
```

This commit fixes that, and adds a test to see if we push the correct packages.
2023-02-23 01:44:47 +01:00
Harmen Stoppels
3be9af8c13
copy_files_to_artifacts: error -> warning (#35613)
This error shows up a lot, typically it's harmless because an error
happened before the source build even started, in which case we don't
have build logs to copy. So, warn instead of error, cause it distracts
from the actual CI error.
2023-02-22 11:53:42 +00:00
Harmen Stoppels
6e477d547d
add cdash arg to source build only (#35565) 2023-02-22 11:08:32 +01:00
Harmen Stoppels
9d6630e245
spack build-env: error when deps are not installed (#35533)
Currently we attempt to setup the build environment even when
dependencies are not installed, which typically results in error while
searching for libraries or executables in a dependency's prefix.

With this change, we get a more user friendly error:

```
$ spack build-env perl
==> Error: Not all dependencies of perl are installed, cannot setup build environment:
 -   qpj6dw5  perl@5.36.0%apple-clang@14.0.0+cpanm+open+shared+threads build_system=generic arch=darwin-ventura-m1
 -   jq2plbe      ^berkeley-db@18.1.40%apple-clang@14.0.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=darwin-ventura-m1
...
$ echo $?
1
```
2023-02-22 10:35:44 +01:00
psakievich
b8d15e816b
Allow users to specify root env dir (#32836)
* Allow users to specify root env dir

Environments managed by spack have some advantages over anonymous Environments
but they are tucked away inside spack's directory tree. This PR gives
users the ability to specify where the environments should live.

See #32823

This is also taken as an opportunity to ensure that all references are to "managed environments",
rather than "named environments". Prior to this PR some references to the latter persisted.

Co-authored-by: Tom Scogland <scogland1@llnl.gov>
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Co-authored-by: Gregory Becker <becker33@llnl.gov>
2023-02-22 00:37:14 +00:00
Harmen Stoppels
bc24a8f290
Spec.satisfies should be commutative when strict=False (#35598)
The call:
```
x.satisfies(y[, strict=False])
```
is commutative, and tests non-empty intersection, whereas:
```
x.satsifies(y, strict=True)
```
is not commutative, and tests set-inclusion.

There are 2 fast paths. When strict=False both self and other need to 
be concrete, when strict=True we can optimize when other is concrete.
2023-02-21 14:30:47 +01:00
simon-Leary42
33bf1fd033
nonexistent module concise error message (#35502) 2023-02-21 04:50:56 -08:00
Adam J. Stewart
ce9f8143cc
Fix view support for optional Python extensions (#35489)
Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
2023-02-20 11:58:28 -08:00
Harmen Stoppels
c1ff7bbf04
environment views: better, earlier error on clash (#35541)
Spack generally ignores file-file projection clashes in environment
views, but would eventually error when linking the `.spack` directory
for two specs of the same package.

This leads to obscure errors where users have no clue what the issue is
and how to fix it. On top of that, the error comes very late, since it
happens when the .spack dir contents are linked (which happens after
everything else)

This PR improves that by doing a quick check ahead of time if clashes
are going to be anticipated (by simply checking for clashes in the
projection of each spec's .spack metadir). If there are clashes, a
human-readable error is thrown which shows two of the conflicting specs,
and tells users to user unify:true, view:false, or set up custom
projections.
2023-02-20 19:14:27 +01:00
Ben Wibking
e8238fe330
Patchel shutil.copystat to avoid PermissionError on Lustre (#27247) 2023-02-20 17:28:03 +01:00
Harmen Stoppels
5e337d907b
spack ci: remove 120s db timeout since 60s is the default now (#35566) 2023-02-20 14:41:26 +01:00
Harmen Stoppels
208c9585b8
Revert "lib/spack/spack/store.py: Fix #28170 for padding relocation (#33122)" (#35077)
This reverts commit c721aab006.
2023-02-20 13:56:11 +01:00
elenimath
c769582709
Pass tests argument to solver method when concretizing together (#35290)
to make the workaround for #29447 work with `concretizer:unify:true` option
2023-02-20 10:21:24 +01:00
Adam J. Stewart
7c01d3ba35
Fix broken links in docs (#35582) 2023-02-20 09:21:18 +01:00
Harmen Stoppels
86320eb569
Improve error handling in buildcache downloads (#35568)
The checksum exception was not detailed enough and not reraised when using cache only, resulting in useless error messages.

Now it dumps the file path, expected
hash, computed hash, and the downloaded file summary.
2023-02-18 19:22:48 +01:00
Harmen Stoppels
fb644de086
clang/apple-clang correct c/c++ standard flags (#35062) 2023-02-17 23:18:01 +01:00