-
Notifications
You must be signed in to change notification settings - Fork 384
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 services that are delayed and have requirements are scheduled correctly #6548
Ensure services that are delayed and have requirements are scheduled correctly #6548
Conversation
Plugin builds for 1e9f460 are ready 🛎️!
|
@pierlon The test for the polyfills fails on WP 4.9. From what I could find out, it looks like Not sure why this test didn't fail before. Am I misunderstanding something here? |
Bail early? But the check is It seems rather that In WordPress 4.9 the version of Gutenberg installed is 4.9.0: amp-wp/bin/ci/after-wp-install.sh Lines 14 to 17 in ebb4008
This is being done: https://github.com/ampproject/amp-wp/pull/6548/checks?check_run_id=3368405984#step:16:6 The |
There we go. The issue appears to be that the test was calling amp-wp/src/Admin/Polyfills.php Lines 58 to 76 in ebb4008
This is calling amp-wp/tests/php/src/Admin/PolyfillsTest.php Lines 69 to 73 in ebb4008
It seems that this action is being triggered unnecessarily: amp-wp/tests/php/src/Admin/PolyfillsTest.php Lines 75 to 76 in ebb4008
Since the |
Thanks for looking into why that test was failing @westonruter 🙌. Great detective work. |
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.
Thanks for identifying the bug @schlessera.
QA passed I did run smoke tests and didn't notice any issues. |
Summary
The code that was dealing with service requirements was missing logic for the scenario where the service has requirements AND it is
Delayed
itself. In that case, and if the delay of the service being checked is later than the delay of the requirements, that delay would not have been respected.This PR changes up the logic to make it clearer when registration is scheduled.
Checklist