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

nebari upgrade CLI tests #1963

Merged
merged 8 commits into from
Aug 30, 2023

Conversation

sblair-metrostar
Copy link
Contributor

@sblair-metrostar sblair-metrostar commented Aug 29, 2023

Reference Issues or PRs

#1862

Fixes #1961
Fixes #1962

What does this implement/fix?

Put a x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features not to work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe): Unit tests

Testing

  • Did you test the pull request locally?
  • Did you add new tests?

Any other comments?

Copy link
Member

@iameskild iameskild left a comment

Choose a reason for hiding this comment

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

Thanks @sblair-metrostar for these tests!

I currently see four tests failing. One is a test_upgrade_does_nothing_on_same_version and the other three appear to be tests written for the 0.4.0 upgrade. For the old 0.4.0 upgrade tests, I would be alright if we tore those out given how old they are and I don't think the maintenance burden is worth it.

@pavithraes pavithraes added the needs: changes 🧱 Review completed - some changes are needed before merging label Aug 30, 2023
@sblair-metrostar
Copy link
Contributor Author

Thanks @sblair-metrostar for these tests!

I currently see four tests failing. One is a test_upgrade_does_nothing_on_same_version and the other three appear to be tests written for the 0.4.0 upgrade. For the old 0.4.0 upgrade tests, I would be alright if we tore those out given how old they are and I don't think the maintenance burden is worth it.

No they're failing as a side effect of my attempt to fix the dask_worker section upgrade. It looks like there is a bug somewhere but it's not what I thought it was. Will reach out this morning to run it by you.

@sblair-metrostar
Copy link
Contributor Author

@iameskild I've updated the details of #1961. There was a bug with that behavior but wasn't what I thought it was initially.

Copy link
Member

@iameskild iameskild left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes @sblair-metrostar!

One question I forgot to ask earlier was around new releases. Before cut a new release, we need add a new Upgrade_ class and, with these changes, we should also add another test for that upgrade. Is that how you were also envisioning this?

@sblair-metrostar
Copy link
Contributor Author

Thanks for the fixes @sblair-metrostar!

One question I forgot to ask earlier was around new releases. Before cut a new release, we need add a new Upgrade_ class and, with these changes, we should also add another test for that upgrade. Is that how you were also envisioning this?

That would be my expectation, yes. There's some quirkiness around whether or not there's a release specific UpgradeStep in nebari or not and a few tests that only work with the "current" version we'll want to keep an eye on. But we should just be able to add a test that covers the 7.2 to 9.1 upgrade path with any specific yaml assertions we'd expect in addition to the version getting ticked up.

@iameskild iameskild merged commit f89e62e into nebari-dev:develop Aug 30, 2023
@iameskild
Copy link
Member

Related to #1955

@fangchenli fangchenli mentioned this pull request Aug 30, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: nebari-cli area: testing ✅ Testing needs: changes 🧱 Review completed - some changes are needed before merging
Projects
3 participants