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

Backports 0.19.1 #33966

Merged
merged 27 commits into from
Feb 7, 2023
Merged

Backports 0.19.1 #33966

merged 27 commits into from
Feb 7, 2023

Commits on Feb 7, 2023

  1. Set version to 0.19.1.dev0

    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    09ed3b0 View commit details
    Browse the repository at this point in the history
  2. Revert "Hotfix/namespace (#33870)"

    This reverts commit a869112.
    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    edd62c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c3b4df View commit details
    Browse the repository at this point in the history
  4. docs: fix typo (#33926)

    michaelkuhn authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    204b45f View commit details
    Browse the repository at this point in the history
  5. Fix incorrect timer (#33900)

    Revamp the timer so we always have a designated begin and end.
    
    Fix a bug where the phase timer was stopped before the phase started,
    resulting in incorrect timing reports in timers.json.
    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    0e0e2c0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9c4d70b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8cfc071 View commit details
    Browse the repository at this point in the history
  8. uninstall: fix accidental cubic complexity (#34005)

    * uninstall: fix accidental cubic complexity
    
    Currently spack uninstall runs in worst case cubic time complexity
    thanks to traversal during traversal during traversal while collecting
    the specs to be uninstalled.
    
    Also brings down the number of error messages printed to something
    linear in the amount of matching specs instead of quadratic.
    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    1b46446 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9f8266a View commit details
    Browse the repository at this point in the history
  10. Fix combine_phase_logs text encoding issues (#34657)

    Avoid text decoding and encoding when combining log files, instead
    combine in binary mode.
    
    Also do a buffered copy which is sometimes faster for large log files.
    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    dca74e6 View commit details
    Browse the repository at this point in the history
  11. Improve error message for requirements (#33988)

    refers #33985
    alalazo authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    45cfd43 View commit details
    Browse the repository at this point in the history
  12. PackageBase should not define builder legacy attributes (#33942)

    * Add a regression test for 33928
    
    * PackageBase should not set `(build|install)_time_test_callbacks`
    
    * Fix audits by preserving the current semantic
    
    Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
    2 people authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    0488714 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c7ad46c View commit details
    Browse the repository at this point in the history
  14. Forward lookup of the "run_tests" attribute (#34531)

    fixes #34518
    
    Fix an issue due to the MRO chain of the package wrapper
    during build. Before this PR we were always returning
    False when the builder object was created before the
    run_tests method was monkey patched.
    alalazo authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    d66d7ba View commit details
    Browse the repository at this point in the history
  15. Use a module-like object to propagate changes in the MRO, when settin…

    …g build env (#34059)
    
    This fixes an issue introduced in #32340, which changed the semantics of the "module"
    object passed to the "setup_dependent_package" callback.
    alalazo authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    d88c13d View commit details
    Browse the repository at this point in the history
  16. Propagate exceptions from Spack python console (#34547)

    fixes #34489
    
    Customize sys.excepthook to raise SystemExit when
    any unhandled exception reaches the hook.
    alalazo authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    a479f17 View commit details
    Browse the repository at this point in the history
  17. docs: remove monitors and analyzers (#34358)

    These experimental features were removed in #31130, but the docs were not.
    
    - [x] remove the `spack monitor` and `spack analyze` docs
    tgamblin authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    6530e63 View commit details
    Browse the repository at this point in the history
  18. FileCache: Delete the new cache file on exception (#34623)

    The code in FileCache for write_transaction attempts to delete the temporary file when an exception occurs under the context by calling shutil.rmtree. However, rmtree only operates on directories while the rest of FileCache uses normal files. This causes an empty file to be written to the cache key when unneeded.
    
    Use os.remove instead which operates on normal files.
    
    Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
    blue42u and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    6db65a4 View commit details
    Browse the repository at this point in the history
  19. spack mirror create takes local paths only (#34992)

    spack mirror create cannot work with urls, so it shouldn't promote local
    paths to file urls.
    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    c994916 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    bb76195 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    039b59b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    66bca6a View commit details
    Browse the repository at this point in the history
  23. buildcache create: make "file exists" less verbose (#35019)

    Currently we print 3 lines of "file exist" warning per tarball, this is
    a bit excessive. Instead, it can be a simple single-line tty.warn
    message.
    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    c067ef2 View commit details
    Browse the repository at this point in the history
  24. fix libtool filter for Fujitsu compilers (#34916)

    Since legit regular expressions are matched, do not pass string=True
    to the filter
    
    Refs #34897
    ggouaillardet authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    7224fc1 View commit details
    Browse the repository at this point in the history
  25. Fix path handling in prefix inspections (#35318)

    At least with ZSH, prefix inspections containing `./bin` result in a
    `$PREFIX/./bin` and result in strange `$PATH` handling.
    
    I.e., `module load git` will prepend `/path/to/git/./bin`, `which git`
    will find the right executable, but `git --version` will print the
    system one. Normalize the relative path to avoid this behavior.
    
    See also #31867.
    matz-e authored and haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    3cd689b View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    ab1419c View commit details
    Browse the repository at this point in the history
  27. Set version to 0.19.1

    haampie committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    dd788ba View commit details
    Browse the repository at this point in the history