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

remove pre-0.9 driver code and related E2E test #12791

Merged
merged 4 commits into from
Apr 27, 2022

Conversation

tgross
Copy link
Member

@tgross tgross commented Apr 26, 2022

This test exercises upgrades between 0.8 and Nomad versions greater
than 0.9. We have not supported 0.8.x in a very long time and in any
case the test has been marked to skip because the downloader doesn't
work.

Part of ongoing work to remove the old E2E framework code (ref #12383)

This test exercises upgrades between 0.8 and Nomad versions greater
than 0.9. We have not supported 0.8.x in a very long time and in any
case the test has been marked to skip because the downloader doesn't
work.
Copy link
Member

@schmichael schmichael left a comment

Choose a reason for hiding this comment

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

How would you feel about killing some code along with it? https://github.com/hashicorp/nomad/search?q=Pre09

I think these tests are what cover that code, so it'd be nice to remove it instead of leaving it untested.

If that feels too sketchy I'm fine leaving it in place and just dropping these tests since it's already unsupported.

@tgross
Copy link
Member Author

tgross commented Apr 27, 2022

How would you feel about killing some code along with it?

Works for me. I'll knock that out and add a note to the upgrade notes before we cut rc1.

@tgross tgross requested a review from lgfa29 April 27, 2022 13:11
@tgross tgross added this to the 1.3.0 milestone Apr 27, 2022
@tgross
Copy link
Member Author

tgross commented Apr 27, 2022

I've left client/state/08types.go in place because remember digging into that when doing the CSI client state update, and I don't want to rush trying to remove that for this release.

@tgross tgross changed the title E2E: remove old upgrade test E2E: remove old upgrade test and pre-0.9 driver code Apr 27, 2022
@tgross tgross changed the title E2E: remove old upgrade test and pre-0.9 driver code remove pre-0.9 driver code and related E2E test Apr 27, 2022
@tgross tgross merged commit 3671ea6 into main Apr 27, 2022
@tgross tgross deleted the e2e-cleanup-old-upgrade-test branch April 27, 2022 13:53
Comment on lines +191 to +193
before 0.9 without rescheduling. Jobs that were created before 0.9 but
have had tasks replaced over time after 0.9 will operate normally
during the upgrade.
Copy link
Member

Choose a reason for hiding this comment

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

Don't we upgrade state on agent restart? So this should only affect folks trying to upgrade directly from Nomad 0.9 to Nomad 1.3 (which I have no interest in supporting).

Copy link
Member

Choose a reason for hiding this comment

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

Oops, no we do not because reattachment is totally different.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, that's what I'm trying to say here but maybe not making as clear as I could. Like if you created the job in 0.8 but you've cycled out all the tasks in the following years because you've upgraded in-between, you're fine.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants