-
Notifications
You must be signed in to change notification settings - Fork 799
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
Sync: initialize Dedicated Sync endpoint earlier #31423
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
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. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. |
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.
When we spawn Dedicated Sync, we send $_COOKIES
with the request to help out with any firewall and/or caching functionality that might prevent us to ping the site directly.
I believe the proper fix would actually involve hooking the add_dedicated_sync_sender_init
on init
action (and exiting) as soon as possible, aka replace:
add_action( 'init', array( __CLASS__, 'add_dedicated_sync_sender_init' ), 90 );
with add_action( 'init', array( __CLASS__, 'add_dedicated_sync_sender_init' ), 0 );
Hi @fgiannar. |
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 working on this, Sergey! Tests well 👍 Can we pls update the PR description and changelog as per the latest changes?
Also I'd appreciate it if @bisko could also take a look and confirm we are not missing anything :)
@bisko @sergeymitr @fgiannar As I'm handling comms for affected WCPay merchants, could one of y'all please provide me with some details about when we expect this to be released? Are we expecting to see it in a patched release (e.g., 12.2.2) or a major release (12.3.0)? And what would be an expected release date for said release? |
Hi @csmcneill. Another option is to upgrade the Sync package in WCPay and release the upgrade. I see that's it's due to upgrade anyway (1.47.7 vs 1.49.0), so it might be a good way to speed up the process. |
@RadoslavGeorgiev this should be doable for 6.1.0 release, right? Would there be any specific testing other than critical flows? |
@sergeymitr are there any particular changes we should be careful of while upgrading to 1.49.1? @RadoslavGeorgiev @dat I was going through jetpack sync changelog, can you please verify If this change won't have any side effect on WCpayments. |
@sergeymitr I like this option. We have a release due next week. So we'll try to include the upgrade with WCPayments 6.1.0. Let us know when you release 1.49.1. |
Discussion continues here: p1686285707645099-slack-CBG1CP4EN |
Noting that this PR had some unintended side effects (Woo mobile app new order notifications not being pushed). Internal references:
We'll either fix this or revert this change before Jetpack 12.3 ships out tomorrow. |
* Revert "Sync: initialize Dedicated Sync endpoint earlier (#31423)" This reverts commit 38da01b. * changelog * Update projects/packages/sync/changelog/revert-pr-31423 Co-authored-by: Brad Jorsch <[email protected]> --------- Co-authored-by: Brad Jorsch <[email protected]>
* Revert "Sync: initialize Dedicated Sync endpoint earlier (#31423)" This reverts commit 38da01b. * changelog * Update projects/packages/sync/changelog/revert-pr-31423 Co-authored-by: Brad Jorsch <[email protected]> --------- Co-authored-by: Brad Jorsch <[email protected]>
Also Woo sales stats issue that may be related: p9F6qB-cEF-p2 |
Proposed changes:
Initialize dedicated sync endpoint earlier in the
init
hook to avoid cookie conflicts.Other information:
Jetpack product discussion
p1686285707645099-slack-CBG1CP4EN
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
Make sure the code makes sense.
Do not checkout the code just yet, the issue may be a bit hard to reproduce.