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

Set autoload to 'no' for previously activated themes using upgrade routine #5711

Closed
wants to merge 8 commits into from

Conversation

mukeshpanchal27
Copy link
Member

Trac ticket: https://core.trac.wordpress.org/ticket/59975

This PR add upgrade routine for 6.5 that set autoload to 'no' for previously activated themes.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@mukeshpanchal27 mukeshpanchal27 marked this pull request as ready for review November 28, 2023 08:57
@mukeshpanchal27
Copy link
Member Author

@swissspidy i get Error: The theme "twentytwentyone" is not installed in Performance tests. Not sure if the PR changes affect their 🤔

@swissspidy
Copy link
Member

No idea why this happens just for this PR 🤷

Copy link
Member

@joemcgill joemcgill left a comment

Choose a reason for hiding this comment

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

The upgrade routine looks good. I don't see how the Performance Test failures would be related to this PR, so let's wait to see if it effects other PRs and fix that issue separately.

@joemcgill
Copy link
Member

Seems confirmed that the Performance Test is failing due to this change for some reason as other, more recent runs, are not effected. See: https://github.com/WordPress/wordpress-develop/actions/workflows/performance.yml?query=

We need to debug this before committing in order to not introduce failures into trunk.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @mukeshpanchal27. It mostly looks good, but there is one crucial thing missing I believe.

src/wp-admin/includes/upgrade.php Show resolved Hide resolved
src/wp-admin/includes/upgrade.php Outdated Show resolved Hide resolved
@mukeshpanchal27
Copy link
Member Author

The Performance tests going fails if we update DB version. Check PR: #5716 not sure but seems there is bug Performance tests setup.

cc. @felixarntz @joemcgill @swissspidy

@swissspidy
Copy link
Member

Oooh I know what's up!

Because of the version bump and the following checkout of the previous commit, WordPress is showing the "Database upgrade required" screen, so you first have to run the db upgrade. I tested this hypothesis in #5717, where you can see that tests now pass :)

@mukeshpanchal27
Copy link
Member Author

Great @swissspidy, it's fascinating how we can encounter unforeseen issues while focusing on different tasks. I suggest we commit that PR initially without altering the DB version. Afterward, we can rebase this PR, making it ready for the final commit.

@mukeshpanchal27
Copy link
Member Author

Performance tests ✅

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Thanks @mukeshpanchal27, LGTM!

@felixarntz
Copy link
Member

@felixarntz felixarntz closed this Dec 4, 2023
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.

5 participants