Skip to content

tutorial stack: allow deprecated versions#30648

Merged
becker33 merged 1 commit intodevelopfrom
tutorial-allow-deprecated
May 13, 2022
Merged

tutorial stack: allow deprecated versions#30648
becker33 merged 1 commit intodevelopfrom
tutorial-allow-deprecated

Conversation

@tgamblin
Copy link
Copy Markdown
Member

@tgamblin tgamblin commented May 12, 2022

Closes #30148.

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.

  • add deprecated:true to tutorial spack.yaml config.

@spackbot-app spackbot-app bot added the gitlab Issues related to gitlab integration label May 12, 2022
@tgamblin tgamblin requested a review from alalazo May 12, 2022 16:38
@tgamblin
Copy link
Copy Markdown
Member Author

@becker33 @alalazo @scottwittenburg: this should supersede #30148 - I think it's better to keep the tutorial pipeline running as-is until we update the tutorial than to fix it in CI right now.

@adamjstewart
Copy link
Copy Markdown
Member

Just a heads up, after each minor release (0.18, 0.19, etc.) I'm planning on going through Spack and removing all deprecated versions from all packages. Hopefully that won't cause any issues here.

@tldahlgren tldahlgren assigned tldahlgren and alalazo and unassigned tldahlgren May 12, 2022
Copy link
Copy Markdown
Contributor

@scottwittenburg scottwittenburg left a comment

Choose a reason for hiding this comment

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

If this allows the old version to build in the tutorial pipeline, then I'm happy with it. I'll close #30148.

@tgamblin
Copy link
Copy Markdown
Member Author

@adamjstewart: I think instead of removing deprecated versions, we need to figure out a better way to deal with them. It's a reproducibility issue to just remove them.

@tgamblin tgamblin force-pushed the tutorial-allow-deprecated branch from 3dc9945 to 063c302 Compare May 12, 2022 19:25
@adamjstewart
Copy link
Copy Markdown
Member

The whole purpose of deprecation is to be able to remove them in future releases without surprising someone. If someone wants to build a deprecated/removed version, they can either use an older version of Spack or offer to help maintain the package. Especially for packages with changing build systems it can drastically increase package complexity to maintain both.

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.

Hope I'm not reading indentation wrong

Comment on lines +12 to +14
# allow deprecated versions in concretizations
deprecated: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
# allow deprecated versions in concretizations
deprecated: true
# allow deprecated versions in concretizations
deprecated: true

@tgamblin
Copy link
Copy Markdown
Member Author

The whole purpose of deprecation is to be able to remove them in future releases without surprising someone. If someone wants to build a deprecated/removed version, they can either use an older version of Spack or offer to help maintain the package. Especially for packages with changing build systems it can drastically increase package complexity to maintain both.

There are three concerns here -- package maintenance, CVE's, and reproducibility. Right now we're marking a lot of things deprecated for CVE's -- which is good -- but I don't think that should make something an automatic candidate for deletion given that someone may have a lock file for that version that they need to reproduce. Without a solution for that, we shouldn't be removing anything but really old versions.

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.
@tgamblin tgamblin force-pushed the tutorial-allow-deprecated branch from 063c302 to 3f465f5 Compare May 12, 2022 22:24
@becker33 becker33 enabled auto-merge (squash) May 12, 2022 23:08
@tgamblin tgamblin dismissed alalazo’s stale review May 12, 2022 23:45

addressed.

@tgamblin tgamblin mentioned this pull request May 12, 2022
10 tasks
@alalazo
Copy link
Copy Markdown
Member

alalazo commented May 13, 2022

@zackgalbreath @scottwittenburg this seems to be "Pending — waiting for base develop commit pipeline to succeed", but the corresponding develop succeeded a couple hours ago. I'm going to run the pipeline manually, but just FYI.

@alalazo
Copy link
Copy Markdown
Member

alalazo commented May 13, 2022

@spackbot run pipeline

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented May 13, 2022

I've started that pipeline for you!

@becker33 becker33 merged commit e0bed2d into develop May 13, 2022
@becker33 becker33 deleted the tutorial-allow-deprecated branch May 13, 2022 10:09
@scottwittenburg
Copy link
Copy Markdown
Contributor

the corresponding develop succeeded a couple hours ago

Ugh, this is so frustrating, I'm sorry. Thanks for the heads up though. I wonder if you would copy the link to the supposedly still running develop pipeline and paste it into the comment in the future, we could search for information about that particular pipeline after the fact. I'm not sure it would end up providing us with the all info we need, but there's a chance it could help. If you think of it.

bhatiaharsh pushed a commit to bhatiaharsh/spack that referenced this pull request Aug 8, 2022
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gitlab Issues related to gitlab integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants