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

Ensure plugin updates are executed when setting up UITestFixture #19825

Merged
merged 4 commits into from Oct 17, 2022

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 6, 2022

Description:

Currently when setting up the UITestFixture, updates for plugin are not executed.
That is caused by resetting the details about which plugins are installed and trying to install them again.
If an update e.g. modified a table, installing the table again won't update it. But as the installed plugin version will be updated to the latest version after it was installed, update script won't be executed afterwards.

Preserving the database information which version was installed when database dump was created fixes this.
For some reason doing that only runs into a PHP segfault when executing the updates.
Disabling the events while performing such updates solves that problem.

When merging such changes to 5.x-dev, we should consider reverting the database changes in the fixture done in #19746

Review

@sgiehl sgiehl added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Oct 6, 2022
@sgiehl sgiehl added this to the 4.12.1 milestone Oct 6, 2022
@sgiehl sgiehl requested a review from bx80 October 13, 2022 12:59
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

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

Tested by adding breakpoints to plugin install() methods and then running integration tests 👍

@sgiehl sgiehl merged commit 32bb2f9 into 4.x-dev Oct 17, 2022
@sgiehl sgiehl deleted the fixtestsetup branch October 17, 2022 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants