Skip to content

"spack checksum" QoL#14311

Merged
adamjstewart merged 16 commits intospack:developfrom
iarspider:spack-checksum-quiet
May 7, 2020
Merged

"spack checksum" QoL#14311
adamjstewart merged 16 commits intospack:developfrom
iarspider:spack-checksum-quiet

Conversation

@iarspider
Copy link
Copy Markdown
Contributor

  1. Non-interactive mode for spack checksum (checksum all passed versions)
  2. Allow passing 'package@version' to spack checksum

Copy link
Copy Markdown
Member

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely agree with these changes. One other thing I think you could add: if I pass a list of versions to checksum, we should automatically checksum those versions without asking how many of them to checksum.

@iarspider
Copy link
Copy Markdown
Contributor Author

I will add the second part ("if I pass a list of versions to checksum") a bit later.

@adamjstewart
Copy link
Copy Markdown
Member

Another feature that would be cool is the ability to do:

$ spack checksum [email protected],1.2.4,1.2.5
$ spack checksum [email protected]:1.2.5

and have it download all 3 versions. But I have no idea how difficult this would be to integrate.

@iarspider
Copy link
Copy Markdown
Contributor Author

Another feature that would be cool is the ability to do:

$ spack checksum [email protected],1.2.4,1.2.5
$ spack checksum [email protected]:1.2.5

and have it download all 3 versions. But I have no idea how difficult this would be to integrate.

This behaviour is explicitly forbidden in the code: https://github.com/spack/spack/blob/develop/lib/spack/spack/cmd/checksum.py#L50 . Do you think it's ok to change it?

@iarspider
Copy link
Copy Markdown
Contributor Author

@adamjstewart can this be merged?

Copy link
Copy Markdown
Member

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, but I'll let one more maintainer review before merging.

@adamjstewart
Copy link
Copy Markdown
Member

Can you run spack commands --update-completion and merge the change? Our tests for up-to-date tab completion scripts are pretty picky, so things like order matters.

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Feb 3, 2020

@iarspider There are flake8 issues with this PR, can you fix them?

Copy link
Copy Markdown
Member

@alalazo alalazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a couple of comments/questions. Let me know if something is not clear or if you disagree with them.

@iarspider
Copy link
Copy Markdown
Contributor Author

@tgamblin @alalazo can we get this merged at last?

@iarspider iarspider requested a review from alalazo February 14, 2020 08:31
@adamjstewart
Copy link
Copy Markdown
Member

Ping @alalazo

@adamjstewart
Copy link
Copy Markdown
Member

Ping ping @alalazo

@iarspider
Copy link
Copy Markdown
Contributor Author

Ping ping ping @alalazo

Use batch mode when adding a new package
@iarspider
Copy link
Copy Markdown
Contributor Author

Ping x4 @alalazo

@adamjstewart adamjstewart merged commit 08f449a into spack:develop May 7, 2020
@iarspider iarspider deleted the spack-checksum-quiet branch May 8, 2020 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants