-
Notifications
You must be signed in to change notification settings - Fork 216
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
LRC script implementation #6874
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
Payload received by PHP:
|
@MathieuLamiot However one thing though, QA will not be able to test this without having errors as there is dependency here on the frontend, but I have a temporary workaround for this but this will make tests fail here on this PR, do you want me to do that and unlock this part for @wp-media/qa-team to test? |
I can't say without more details about this error/dependency. IDeally, there should be no errors nor dependency, and tests should be passing. If this is not the case and this is not achievable, we can assess ; but we'll need more details |
The concrete factory which should be added in the performancehints ServiceProvider isn't there yet because the frontend controller is not completely ready and passed to that same factory constructor here that's what I mean. |
So, what is the impact exactly? Is the error thrown but all features implemented and merged so far are OK?
|
There's no error thrown but only the ATF feature works completely while the LRC feature will run partially
This is why I said, I have a workaround for this missing factory if the beacon and Ajax needs to be tested by QA, I can put the steps to test these the way I did, else, we wait for the frontend to be completed. |
Ok thanks, so the goal is to make sure we track everything that is still needed. From what I see, apart from some bugs reported by QA, the only GH issue we still have are:
So the two defects you noticed (LRC Beacon not running & AJAX not running) are not covered by those GH issues. Therefore we need: |
Conclusion of discussion with @jeawhanlee: There are 2 defects preventing to happily run the LRC Beacon and related AJAX calls (so impacting #6874 & #6828). @jeawhanlee mentioned it should be a quick fix, he'll open a PR to fix this and ultimately allow testing of those 2 GH issues. |
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.
Approved as it is the WP Rocket counter part of the already approved Rocket-scripts PR
If this PR is about optimize the correct elements, we aren't considering now the child who is in threshold but parent not in threshold wp-media/rocket-scripts#25 (comment) |
Description
This PR has the changes that we do here: wp-media/rocket-scripts#20
Documentation
User documentation
Identifies correctly elements to apply LRC optimization
Technical documentation
We are getting the hashes of the eligible candidates to apply LRC opt on and returning the payload together with LCP candidates to PHP for processing.
Type of change
Delete options that are not relevant.
New dependencies
N/A
Risks
N/A
Checklists
Feature validation
Documentation
Code style