summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-05-13env: enforce predictable ordering when reading lockfileScott Wittenburg2-9/+19
Without some enforcement of spec ordering, python 2 produced different results in the affected test than did python 3. This change makes the arbitrary but reproducible decision to sort the specs by their lockfile key alphabetically.
2022-05-13spec: fix infinite recursion when computing package hashScott Wittenburg1-6/+14
Issue described in the following PR comment: https://github.com/spack/spack/pull/28504#issuecomment-1051835568 Solution described in subsequent comment: https://github.com/spack/spack/pull/28504#issuecomment-1053986132
2022-05-13Fix how environments are read from lockfileScott Wittenburg16-109/+833
2022-05-13hashes: remove full_hash and build_hash from spackScott Wittenburg28-712/+336
2022-05-13environment: key by dag_hash instead of build_hashScott Wittenburg5-45/+68
2022-05-13tests: fix failing test_hash_changeScott Wittenburg1-2/+4
The full hash appears twice in the spec dict now, replacing just the value replaces it under "hash" and "full_hash". Only replace the one that appears after "full_hash". I'm actually not sure what purpose this test served, so maybe it could be removed, as it may be testing some distinction between full and dag hash which no longer exists.
2022-05-13Include all deps and package content in the `dag_hash()`Todd Gamblin4-41/+45
For a long time, Spack has used a coarser hash to identify packages than it likely should. Packages are identified by `dag_hash()`, which includes only link and run dependencies. Build dependencies are stripped before hashing, and we have notincluded hashes of build artifacts or the `package.py` files used to build. This means the DAG hash actually doesn't represent all the things Spack can build, and it reduces reproducibility. We did this because, in the early days, users were (rightly) annoyed when a new version of CMake, autotools, or some other build dependency would necessitate a rebuild of their entire stack. Coarsening the hash avoided this issue and enabled a modicum of stability when only reusing packages by hash match. Now that we have `--reuse`, we don't need to be so careful. Users can avoid unnecessary rebuilds much more easily, and we can add more provenance to the spec without worrying that frequent hash changes will cause too many rebuilds. This commit starts the refactor with the following major change: - [x] Make `Spec.dag_hash()` include build, run, and link dependencides and the package hash (it is now equivalent to `full_hash()`). It also adds a couple of bugfixes for problems discovered during the switch: - [x] Don't add a `package_hash()` in `to_node_dict()` unless the spec is concrete (fixes breaks on abstract specs) - [x] Don't add source ids to the package hash for packages without a known fetch strategy (may mock packages are like this) - [x] Change how `Spec.patches` is memoized. Using `llnl.util.lang.memoized` on `Spec` objects causes specs to be stored in a `dict`, which means they need a hash. But, `dag_hash()` now includes patch `sha256`'s via the package hash, which can lead to infinite recursion
2022-05-13Reuse concretization by default (#30396)Massimiliano Culpo10-27/+43
* Enable reuse by default in Spack * Update documentation to match new default * Configure pipelines not to reuse software
2022-05-13sarus: fix dependency on boost (#30659)Teodor Nikolov1-1/+1
The program_options variant is disabled by default in Boost and has to be enabled explicitly.
2022-05-13libtree: add v3.0.4, v3.1.1 (#30658)Harmen Stoppels1-0/+2
2022-05-13tutorial stack: allow deprecated versions (#30648)Todd Gamblin1-0/+3
For tutorial builds, we should continue to allow deprecated builds to be installed. We can update them as needed when we update the tutorial, but we don't need to correct them immediately on deprecation in CI. - [x] add `deprecated:true` to tutorial `spack.yaml` config.
2022-05-12Gitlab pipelines: add a small legend in the logs to interpret "[x]" (#30643)Massimiliano Culpo1-5/+2
2022-05-12silo: Cleanup the HDF5 dependency specs (#30593)Chuck Atkins1-4/+16
2022-05-12vtk: fix hdf5 version specification (#30592)Chuck Atkins1-2/+12
2022-05-12py-scikit-learn: add v1.1.0 (#30649)Adam J. Stewart1-2/+2
2022-05-12atompaw: add version 4.2.0.0 (#30650)Simon Pintarelli1-0/+1
2022-05-12Revert "atompaw: add new package (#30619)" (#30647)Massimiliano Culpo1-41/+0
This reverts commit 12b0278f08c5557c8c458fdbf4886c5f67aa40c9.
2022-05-12soapdenovo-trans: add v1.0.5 (#30629)snehring1-2/+5
2022-05-12code-server: add new versions (#30646)Max Zeyen1-8/+44
2022-05-12py-netcdf4: add v1.5.8 (#30598)Adam J. Stewart1-3/+13
2022-05-12precice: add v2.4.0 (#30633)Frédéric Simonis1-5/+17
2022-05-12fakexrandr: remove 'ldconfig' from Makefile (#30632)Qian Jianhua1-2/+2
2022-05-12Add patch for compiling llvm ~omp_as_runtime (#30583)Mikael Simberg2-0/+17
2022-05-12Add cuda 11.7 compat bounds for gcc/clang (#30639)Harmen Stoppels1-2/+2
2022-05-12pigz: add v2.7 (#30640)Harmen Stoppels1-0/+1
2022-05-12platypus: limit install to Python2 (#30624)dlkuehn1-1/+1
Co-authored-by: David Kuehn <las_dkuehn@iastate.edu>
2022-05-12atompaw: add new package (#30619)Simon Pintarelli1-0/+41
2022-05-12cuda: add v11.7 (#30630)Eureka Hwang1-0/+4
2022-05-11quantum-espresso: add gipaw variant (#30628)marcosmazz1-0/+9
Co-authored-by: Marcos Mazzini - <mmazzini@serafin.ccad.unc.edu.ar>
2022-05-11This commit removes the Boost.with_default_variants to variants (#28960)Abhik Sarkar19-103/+24
that packages are precisely dependant upon. This is the second batch of 20 packages with modified boost dependencies.
2022-05-11Allow read-only access to file cache (when needed) (#29693)Tamara Dahlgren2-2/+47
* Allow read-only access to file cache (when needed) * Tweaked and added unit tests * Skip test_cache_init_entry_fails for windows
2022-05-11add darshan-3.4.0-pre1 release (#30569)shanedsnyder2-2/+12
include new dependencies on autotools/m4/etc.
2022-05-11bamutil: updating to 1.0.15 (#30623)snehring1-8/+18
* bamutil: updating to 1.0.15 * bamutil: switching to github archive
2022-05-11lammps: updating googletest version to 1.11 to avoid ↵AMD Toolchain Support2-0/+19
GTEST_DISALLOW_ASSIGN_Error (#30563) * updating googletest version to 1.11 to avoid GTEST_DISALLOW_ASSIGN_ error * limiting the version scope * modified the version limit Co-authored-by: mohan babu <mohbabul@amd.com>
2022-05-11assimp: add v5.2.3 (#29629)Wouter Deconinck1-5/+1
2022-05-11sentieon-genomics: add version 202112.02, remove manual download (#30145)snehring1-10/+11
2022-05-11Add conflict for ROCm and asio in HPX package (#30620)Mikael Simberg1-0/+3
2022-05-11libEnsemble: add v0.9.1 (#30621)Stephen Hudson1-1/+2
2022-05-11rocfft: add spack build test support (#29957)Cory Bloor3-4/+43
* rocfft: add spack build test support * Style cleanup for variant specs
2022-05-11[acts] Add version 19 (#30615)Hadrien G1-0/+1
No build system visible changes, so AFAIK this should Just Work
2022-05-11Fix default buildcache location (#30230)Thomas Dickerson1-1/+1
Resolve path/URL parsing issues introduced by #27021
2022-05-11ReFrame: add v3.11.0 (#30578)Vasileios Karakasis1-0/+2
2022-05-11eccodes: add v2.25.0 (#30618)Harmen Stoppels1-0/+1
2022-05-11jasper: avoid --gc-sections / hidden symbols (#30617)Harmen Stoppels1-0/+5
Jasper v3.x changed a default to hide hidden symbols, but apparently eccodes relies on those symbols and fails to link otherwise.
2022-05-11jasper: update cmake dependency (#30616)Harmen Stoppels1-1/+2
2022-05-11gobject-introspection: add libffi dependency (#30601)Gregory Lee1-0/+3
2022-05-11Neovim luajit (#28855)Tom Scogland3-41/+148
Upstream neovim builds with luajit-openresty or luajit in almost all cases. To support the current usage, a user can specify that they want lua, but this will allow the use of the normal (faster, better tested and better maintained) setup.
2022-05-11flecsi: add GPU dependencies and refactor (#30543)Richard Berger1-92/+41
2022-05-11vecgeom: new version 1.2.0 (#30586)Seth R. Johnson1-27/+33
2022-05-11pango: updated versions with MesonPackage (#30591)Wouter Deconinck4-27/+142