summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-06-01formetis: add new package (#24048)Seth R. Johnson1-0/+71
2021-06-01Fix leading / during spack buildcache -f ... (#24028)Harmen Stoppels1-1/+1
For me the buildcache force overwrite option does not work. It tries to delete a file, but errors with a key error, apparently because the leading / has to be removed.
2021-06-01cctools: add v7.2.10 (#24051)Ben Darwin1-0/+1
2021-06-01elfutils: add v0.183 through v0.185 (#24052)Mark W. Krentel1-0/+3
2021-06-01acts: add v8.3.0 (#24053)Hadrien G1-0/+1
2021-05-31Log performance improvement (#23925)Tom Scogland1-22/+37
* util.tty.log: read up to 100 lines if ready Rework to read up to 100 lines from the captured stdin as long as data is ready to be read immediately. Adds a helper function to poll with `select` for ready data. This showed a roughly 5-10x perf improvement for high-rate writes through the logger with relatively short lines. * util.tty.log: Defer flushes to end of ready reads Rather than flush per line, flush per set of reads. Since this is a non-blocking loop, the total perceived wait is short. * util.tty.log: only scan each line once, usually Rather than always find all control characters then substitute them all, use `subn` to count the number of control characters replaced. Only if control characters exist find out what they are. This could be made truly single pass with sub with a function, but it's a more intrusive change and this got 99%ish of the performance improvement (roughly another 2x in some cases). * util.tty.log: remove check for `readable` Python < 3 does not support a readable check on streams, should not be necessary here since we control the only use and it's explicitly a stream to be read.
2021-05-31py-lxml: add 4.6.3 (#24037)Manuela Kuhn1-2/+3
* py-lxml: add 4.6.3 Also add missing libxml2 and libxslt versions dependencies [1] [1] https://github.com/lxml/lxml/blob/lxml-4.6.3/INSTALL.txt * Update var/spack/repos/builtin/packages/py-lxml/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * py-lxml: remove cython dependency again Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-05-31py-prov: add new package (#24040)Manuela Kuhn1-0/+31
2021-05-31py-click: add 8.0.1 (#24041)Manuela Kuhn1-2/+11
2021-05-31py-traits: add 6.2.0 (#24044)Manuela Kuhn1-1/+3
2021-05-31py-simplejson: add 3.17.2 (#24042)Manuela Kuhn1-0/+2
Also fix python version dependency.
2021-05-31py-networkx: add 2.5.1 (#24038)Manuela Kuhn1-0/+3
2021-05-31py-nibabel: add new package (#24036)Manuela Kuhn1-0/+20
2021-05-31py-packaging: add 20.9 (#24034)Manuela Kuhn1-3/+5
2021-05-31py-etelemetry: add new package (#24033)Manuela Kuhn1-0/+21
2021-05-31py-ci-info: add new package (#24031)Manuela Kuhn1-0/+22
2021-05-31py-pydot: add v1.4.2 (#24039)Manuela Kuhn1-0/+2
2021-05-31py-requests: add 2.25.1 (#24032)Manuela Kuhn1-3/+6
2021-05-31Propagate openmp to blas for sirius and spla (#24027)Harmen Stoppels2-11/+27
And also update lowerbounds of dependencies
2021-05-31Bugfix: not providing fftw-api@3 (#24024)h-murai1-1/+1
2021-05-31xqilla: add patches for newer xerces-c, gcc (#24021)Valentin Volkl1-0/+4
2021-05-31libfabric: add debug variant (#24018)Michael Kuhn1-0/+5
2021-05-30CI: E4S: enable full E4S (#24011)eugeneswalker1-78/+295
* e4s ci: enable full e4s * add llvm-amdgpu to list of specs needing an xlarge tagged runner * comment out qt and qwt because of intermittent build failures * remove +rocm specs because rocblas job consistently fails due to infrastructure
2021-05-30vbfnlo: add missing build dependencies (#24022)Valentin Volkl1-0/+4
2021-05-29New versions: py-sphinxcontrib-bibtex, py-sphinx-rtd-theme, ↵Paul R. C. Kent4-4/+18
py-pybtex-docutils, py-pybtex (#24009) * New versions * update deps * py-sphinxcontrib-bibtex deps
2021-05-29New versions: py-gpaw, py-ase (#24008)Paul R. C. Kent2-8/+29
* New gpaw and ase versions * Update ase deps * flask dep removed after 3.18.0
2021-05-29qt: skip multimedia when ~opengl (#23989)Seth R. Johnson1-6/+23
* qt: skip multimedia when ~opengl On 5.9 on macOS the multimedia option causes build errors; on other platforms and versions it should probably be assumed inoperative anyway. * qt: Omit flags when disabling multimedia ``` ERROR: Unknown command line option '-no-pulseaudio'. ``` * Work around another qt@5.9 error * qt: Fix build error on darwin
2021-05-28adding support for export of private gpg key (#22557)Vanessasaurus6-14/+117
This PR allows users to `--export`, `--export-secret`, or both to export GPG keys from Spack. The docs are updated that include a warning that this usually does not need to be done. This addresses an issue brought up in slack, and also represented in #14721. Signed-off-by: vsoch <vsoch@users.noreply.github.com> Co-authored-by: vsoch <vsoch@users.noreply.github.com>
2021-05-28Cache compiler lookup per package (#23988)Harmen Stoppels1-1/+3
Before: ``` $ hyperfine '~/spack/bin/spack -e . build-env rocfft' Benchmark #1: ~/spack/bin/spack -e . build-env rocfft Time (mean ± σ): 1.593 s ± 0.016 s [User: 1.468 s, System: 0.126 s] Range (min … max): 1.575 s … 1.628 s 10 runs ``` After: ``` $ hyperfine '~/spack/bin/spack -e . build-env rocfft' Benchmark #1: ~/spack/bin/spack -e . build-env rocfft Time (mean ± σ): 1.407 s ± 0.020 s [User: 1.280 s, System: 0.127 s] Range (min … max): 1.393 s … 1.455 s 10 runs ```
2021-05-28Separable module configuration -- without the bugs this time (#23703)Greg Becker36-222/+691
Currently, module configurations are inconsistent because modulefiles are generated with the configs for the active environment, but are shared among all environments (and spack outside any environment). This PR fixes that by allowing Spack environments (or other spack config scopes) to define additional sets of modules to generate. Each set of modules can enable either lmod or tcl modules, and contains all of the previously available module configuration. The user defines the name of each module set -- the set configured in Spack by default is named "default", and is the one returned by module manipulation commands in the absence of user intervention. As part of this change, the module roots configuration moved from the config section to inside each module configuration. Additionally, it adds a feature that the modulefiles for an environment can be configured to be relative to an environment view rather than the underlying prefix. This will not be enabled by default, as it should only be enabled within an environment and for non-default views constructed with separate projections per-spec.
2021-05-28New Package:py-ucsf-pyem (#23961)Desmond Orton1-0/+38
* New Package:py-ucsf-pyem * Dep additions, eun env deletion * extraction step change Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-05-28mpich: add v3.4.2 (#24002)Ken Raffenetti1-0/+1
2021-05-28New Package: py-retry-decorator (#23967)Desmond Orton1-0/+19
* New Package: py-retry-decorator * pypi link correction Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2021-05-28Pipelines: reproducible builds (#22887)Scott Wittenburg15-559/+1679
### Overview The goal of this PR is to make gitlab pipeline builds (especially build failures) more reproducible outside of the pipeline environment. The two key changes here which aim to improve reproducibility are: 1. Produce a `spack.lock` during pipeline generation which is passed to child jobs via artifacts. This concretized environment is used both by generated child jobs as well as uploaded as an artifact to be used when reproducing the build locally. 2. In the `spack ci rebuild` command, if a spec needs to be rebuilt from source, do this by generating and running an `install.sh` shell script which is then also uploaded as a job artifact to be run during local reproduction. To make it easier to take advantage of improved build reproducibility, this PR also adds a new subcommand, `spack ci reproduce-build`, which, given a url to job artifacts: - fetches and unzips the job artifacts to a local directory - looks for the generated pipeline yaml and parses it to find details about the job to reproduce - attempts to provide a copy of the same version of spack used in the ci build - if the ci build used a docker image, the command prints a `docker run` command you can run to get an interactive shell for reproducing the build #### Some highlights One consequence of this change will be much smaller pipeline yaml files. By encoding the concrete environment in a `spack.lock` and passing to child jobs via artifacts, we will no longer need to encode the concrete root of each spec and write it into the job variables, greatly reducing the size of the generated pipeline yaml. Additionally `spack ci rebuild` output (stdout/stderr) is no longer internally redirected to a log file, so job output will appear directly in the gitlab job trace. With debug logging turned on, this often results in log files getting truncated because they exceed the maximum amount of log output gitlab allows. If this is a problem, you still have the option to `tee` command output to a file in the within the artifacts directory, as now each generated job exposes a `user_data` directory as an artifact, which you can fill with whatever you want in your custom job scripts. There are some changes to be aware of in how pipelines should be set up after this PR: #### Pipeline generation Because the pipeline generation job now writes a `spack.lock` artifact to be consumed by generated downstream jobs, `spack ci generate` takes a new option `--artifacts-root`, inside which it creates a `concrete_env` directory to place the lockfile. This artifacts root directory is also where the `user_data` directory will live, in case you want to generate any custom artifacts. If you do not provide `--artifacts-root`, the default is for it to create a `jobs_scratch_dir` within your `CI_PROJECT_DIR` (a gitlab predefined environment variable) or whatever is your current working directory if that variable isn't set. Here's the diff of the PR testing `.gitlab-ci.yml` taking advantage of the new option: ``` $ git diff develop..pipelines-reproducible-builds share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml diff --git a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml index 579d7b56f3..0247803a30 100644 --- a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml +++ b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml @@ -28,10 +28,11 @@ default: - cd share/spack/gitlab/cloud_pipelines/stacks/${SPACK_CI_STACK_NAME} - spack env activate --without-view . - spack ci generate --check-index-only + --artifacts-root "${CI_PROJECT_DIR}/jobs_scratch_dir" --output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/cloud-ci-pipeline.yml" artifacts: paths: - - "${CI_PROJECT_DIR}/jobs_scratch_dir/cloud-ci-pipeline.yml" + - "${CI_PROJECT_DIR}/jobs_scratch_dir" tags: ["spack", "public", "medium", "x86_64"] interruptible: true ``` Notice how we replaced the specific pointer to the generated pipeline file with its containing folder, the same folder we passed as `--artifacts-root`. This way anything in that directory (the generated pipeline yaml, as well as the concrete environment directory containing the `spack.lock`) will be uploaded as an artifact and available to the downstream jobs. #### Rebuild jobs Rebuild jobs now must activate the concrete environment created by `spack ci generate` and provided via artifacts. When the pipeline is generated, a directory called `concrete_environment` is created within the artifacts root directory, and this is where the `spack.lock` file is written to be passed to the generated rebuild jobs. The artifacts root directory can be specified using the `--artifacts-root` option to `spack ci generate`, otherwise, it is assumed to be `$CI_PROJECT_DIR`. The directory containing the concrete environment files (`spack.yaml` and `spack.lock`) is then passed to generated child jobs via the `SPACK_CONCRETE_ENV_DIR` variable in the generated pipeline yaml file. When you don't provide custom `script` sections in your `mappings` within the `gitlab-ci` section of your `spack.yaml`, the default behavior of rebuild jobs is now to change into `SPACK_CONCRETE_ENV_DIR` and activate that environment. If you do provide custom rebuild scripts in your `spack.yaml`, be aware those scripts should do the same thing: assume `SPACK_CONCRETE_ENV_DIR` contains the concretized environment to activate. No other changes to existing custom rebuild scripts should be required as a result of this PR. As mentioned above, one key change made in this PR is the generation of the `install.sh` script by the rebuild jobs, as that same script is both run by the CI rebuild job as well as exported as an artifact to aid in subsequent attempts to reproduce the build outside of CI. The generated `install.sh` script contains only a single `spack install` command with arguments computed by `spack ci rebuild`. If the install fails, the job trace in gitlab will contain instructions on how to reproduce the build locally: ``` To reproduce this build locally, run: spack ci reproduce-build https://gitlab.next.spack.io/api/v4/projects/7/jobs/240607/artifacts [--working-dir <dir>] If this project does not have public pipelines, you will need to first: export GITLAB_PRIVATE_TOKEN=<generated_token> ... then follow the printed instructions. ``` When run locally, the `spack ci reproduce-build` command shown above will download and process the job artifacts from gitlab, then print out instructions you can copy-paste to run a local reproducer of the CI job. This PR includes a few other changes to the way pipelines work, see the documentation on pipelines for more details. This PR erelies on ~- [ ] #23194 to be able to refer to uninstalled specs by DAG hash~ EDIT: that is going to take longer to come to fruition, so for now, we will continue to install specs represented by a concrete `spec.yaml` file on disk. - [x] #22657 to support install a single spec already present in the active, concrete environment
2021-05-28Add cxxstd to trilinos deps in nalu-wind (#23976)psakievich1-3/+3
Co-authored-by: Philip Sakievich <psakiev@sanida.gov>
2021-05-28armadillo: update and allow build with MKL (#23875)Glenn Johnson1-0/+28
2021-05-28argon2: ensure libraries are installed under lib (#21805)Olivier Cessenat1-1/+1
Make a standard installation for libs in lib not lib/x86_64-linux-gnu for cmake
2021-05-28aocc version detection (#23907)Greg Becker1-1/+4
2021-05-28freebayes: add v1.3.5, move to MesonPackage (#23772)Desmond Orton1-2/+28
2021-05-28r-boot: add v1.3-28 (#23992)Manuela Kuhn1-0/+1
2021-05-28opencv: add v4.5.2 (#23913)Adam J. Stewart1-0/+1
2021-05-28root: disable afterimage when ~x (#23962)Seth R. Johnson1-1/+1
2021-05-28r-matrix: add v1.3-3 (#23995)Manuela Kuhn1-0/+1
2021-05-28openfst: add v1.8.1, add "python" variant (#23850)archxlith1-7/+7
2021-05-28r-lattice: add v0.20-44 (#23994)Manuela Kuhn1-0/+1
2021-05-28vecgeom: add v1.1.15 (#23973)Seth R. Johnson1-0/+1
2021-05-28modeltest-ng: add new package (#23765)Desmond Orton1-0/+29
2021-05-28r-mass: add v7.3-54 (#23996)Manuela Kuhn1-0/+1
2021-05-28r-nlme: add v3.1-152 (#23997)Manuela Kuhn1-0/+1
2021-05-28r-lme4: add v1.1-27 (#23998)Manuela Kuhn1-0/+1