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

Renamed upgrade to update #2257

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Renamed upgrade to update #2257

merged 2 commits into from
Jul 14, 2023

Conversation

nataliecarey
Copy link
Contributor

@nataliecarey nataliecarey commented Jul 14, 2023

Pre-Release available to test the upgrade flow. I intentionally released one version before catering for the upgrade and one version after so the impact of the change could be tested.

13.10.2-rc.1 - the final version of this PR
13.10.2-rc.0 - an earlier version of this PR which shows how the upgrade breaks (when upgrading to this version)

I've also added an environment variable to turn off checking the interim state check for install/upgrade because it fails every time on my machine.

@nataliecarey nataliecarey marked this pull request as draft July 14, 2023 12:16
@nataliecarey nataliecarey force-pushed the 2144_use-update-everywhere branch 2 times, most recently from 72d6e9b to e0e3df9 Compare July 14, 2023 13:32
@nataliecarey nataliecarey marked this pull request as ready for review July 14, 2023 14:14
cy.get(panelProcessingQuery)
.should('be.visible')
.contains(`${capitalize(action === 'upgrade' ? 'Upgrad' : action)}ing ...`)
if (Cypress.env('SKIP_PLUGIN_ACTION_INTERIM_STEP') !== 'true') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was there a problem running tests without the ability to skip this section?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I've had problems for a while. On my laptop and my home internet connection the install happens too quickly and it fails because it's in the complete state and it should be in the pending state.

@@ -61,6 +61,7 @@ module.exports = function setupNodeEvents (on, config) {
config.env.password = process.env.PASSWORD
config.env.projectFolder = path.resolve(process.env.KIT_TEST_DIR || process.cwd())
config.env.tempFolder = path.join(__dirname, '..', 'temp')
config.env.SKIP_PLUGIN_ACTION_INTERIM_STEP = process.env.SKIP_PLUGIN_ACTION_INTERIM_STEP
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are going to use capitalised snake case for config.env.SKIP_PLUGIN_ACTION_INTERIM_STEP constant, should we not make all the config.env constants follow the same convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll do that.

@BenSurgisonGDS
Copy link
Contributor

Pre-Release available to test the upgrade flow. I intentionally released one version before catering for the upgrade and one version after so the impact of the change could be tested.

13.10.2-rc.1 - the final version of this PR 13.10.2-rc.0 - an earlier version of this PR which shows how the upgrade breaks (when upgrading to this version)

I've also added an environment variable to turn off checking the interim state check for install/upgrade because it fails every time on my machine.

That's really odd. I wonder if there is a timing issue or something. Maybe it warrents more investigation in the future, but not in this PR. I'll approve

@nataliecarey nataliecarey merged commit 9182191 into main Jul 14, 2023
@nataliecarey nataliecarey deleted the 2144_use-update-everywhere branch July 14, 2023 15:15
@nataliecarey
Copy link
Contributor Author

Pre-Release available to test the upgrade flow. I intentionally released one version before catering for the upgrade and one version after so the impact of the change could be tested.
13.10.2-rc.1 - the final version of this PR 13.10.2-rc.0 - an earlier version of this PR which shows how the upgrade breaks (when upgrading to this version)
I've also added an environment variable to turn off checking the interim state check for install/upgrade because it fails every time on my machine.

That's really odd. I wonder if there is a timing issue or something. Maybe it warrents more investigation in the future, but not in this PR. I'll approve

It's because I changed the URL, so it does the update on a URL including /upgrade/ then after the update that URL doesn't exist anymore - now the /upgrade/ and /update/ behave the same. That'll have to live for a long time so I've added a test for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants