-
Notifications
You must be signed in to change notification settings - Fork 94
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
[ENH] - Include "--attempt-fixes" flag from Nebari upgrade CLI in upgrade steps logic #2761
Comments
Hi @viniciusdc, how have you been?
|
Hey @Suraj-kumar00! Sorry for the late reply. Your interest in this issue is very welcome!
Your understanding is correct. If you take a look at the upgrade.py file, you'll notice that we have an upgrade step for each version, where we prompt the user depending on what needs to be done. While there are some cases where no action is required from the user, there are other cases where the user needs to decide whether they should nebari to run operations on their behalf. See, for example, Lines 1032 to 1036 in 215bbd6
The idea of having a There's currently a PR ready to be reviewed implementing the logic to add these automatic upgrade tests to our GHA workflows. You'll notice it's actually using the
This would be the equivalent of having a Lines 485 to 494 in 3f2523a
Now, what we need to do, is to make sure that recent upgrade steps that prompt the user for input can be run automatically by defining a default logical path using this flag. Let me know if you're still interested in contributing a fix for this issue and I'll be happy to answer any questions you might have. @viniciusdc does it make sense to edit the issue body and title to reflect the fact that we don't need an extra flag as we already have one implemented? It's just a matter of actually using it on the existing and coming upgrade steps. |
Yes, I think it does. The renaming will still be kept in history if needed. |
Hey @Suraj-kumar00. Just reaching out to see if you're still interested in picking up this issue. |
@smokestacklightnin, why don't you go ahead and pick up this issue? |
Feature description
We are currently exposing an
--attempt-fixes
flag in thenebari upgrade
subcommand:nebari/src/_nebari/subcommands/upgrade.py
Lines 19 to 23 in 9b1310b
This parameter can be accessed from the
UpgradeStep
class, where we define specific upgrade logic for each upgrade step between contiguous versions:nebari/src/_nebari/upgrade.py
Lines 52 to 111 in 9b1310b
However, we're not using this flag in the most recent upgrade steps. We need to ensure that upgrade steps use this flag and define a logical path to upgrade without user input.
Value and/or benefit
Recently, #2780 got merged, implementing the logic to add automatic upgrade tests to our GHA workflows. Because tests are running automatically, we cannot rely on user input, so they are relying on passing the
--attempt-fixes
flag when calling thenebari upgrade
command:nebari/.github/workflows/test_local_upgrade.yaml
Line 73 in 364c9e3
Anything else?
No response
The text was updated successfully, but these errors were encountered: