-
Notifications
You must be signed in to change notification settings - Fork 808
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
Boost: Run the 404 tester when concatenate modules are enabled #41593
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had this previously and we removed it. We're just adding it back in.
On multisites or sites that can't call themselves this check may not work correctly, so disable it by setting this constant
Code Coverage SummaryNo summary data is avilable for parent commit 7c65315, cannot calculate coverage changes. 😴 If that commit is a feature branch rather than a trunk commit, this is expected. Otherwise, you might try re-running the Tests / Publish coverage data job on this PR once the corresponding job on the trunk commit has succeeded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for adding back in the tester upon activation. Unit tests also pass locally for me 👍
Do/should we clear the scheduled cron/event if the user deactivates both the JS and CSS minify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on this! Thanks for adding the tests.
Not sure if you knew this, but you can run tests from an individual file using this command:
composer phpunit --filter tests/php/lib/minify/test-functions-service.php
This will save you time while working on them in the future.
EDIT:
Do/should we clear the scheduled cron/event if the user deactivates both the JS and CSS minify?
@LiamSarsfield Yes we should. Good catch!
Make sure to run the 404 tester each time either of the concatenate modules is enabled. This lets the plugin react more quickly to changes in wp-content/ in case mod_rewrite support has changed.
Fixes #
Proposed changes:
Other information:
Jetpack product discussion
pc9hqz-3kc-p2
Does this pull request change what data or activity we track or use?
Testing instructions:
composer phpunit
from projects/plugins/boost/