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

MWPW-146491 Fast follow to change timeout analytic and use Date instead of performance #2163

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

vgoodric
Copy link
Contributor

@vgoodric vgoodric commented Apr 18, 2024

I created a PR recently #2140 that increased the timeout and improved error handling. We're seeing some unexpected results and want to dig in a little further. So we're updating the analytics again.

Fast follow for: MWPW-146491

Test URLs:

Before: https://main--milo--adobecom.hlx.page/?martech=off
After: https://meptimeoutagain--milo--adobecom.hlx.page/?martech=off

Page with Target on:
https://main--homepage--adobecom.hlx.page/homepage/index-loggedout
https://main--homepage--adobecom.hlx.page/homepage/index-loggedout?milolibs=meptimeoutagain

Note: this is listed as high priority because in Dexter, if a Target response came in quite late, the page would "flicker" but they would still get the updates. In Milo, MEP can only alter the page before decoration. And we do not want to wait indefinitely before showing the user the page. So we opted to pick a timeout and move on without the updates if needed. This resulted in some users being categorized as seeing updates, but viewing an unaltered page.
Some discrepancy is fine, but currently, the discrepancy is so high, that we cannot rely on MEP test results, thus rendering testing in Milo useless. Since testing yields over 100M/year, we are anxious to resolve the issue as quickly as possible.

This code exclusively impacts pages that have Target/MEP enabled. Homepage is the largest traffic consumer of this. To be extra safe, I had 2 people who are very familiar with homepage and it's personalization review the page for an SOTs equivalent review and they signed off.

@vgoodric vgoodric requested a review from a team as a code owner April 18, 2024 16:45
Copy link
Contributor

aem-code-sync bot commented Apr 18, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link
Contributor

aem-code-sync bot commented Apr 18, 2024

Page Scores Audits Google
/?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

libs/martech/martech.js Outdated Show resolved Hide resolved
libs/martech/martech.js Outdated Show resolved Hide resolved
libs/martech/martech.js Show resolved Hide resolved
libs/martech/martech.js Outdated Show resolved Hide resolved
@vgoodric vgoodric added verified PR has been E2E tested by a reviewer high priority Why is this a high priority? Blocker? Critical? Dependency? zero-impact run-nala Run Nala Test Automation against PR labels Apr 18, 2024
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.63%. Comparing base (fa5f12a) to head (63ad861).
Report is 96 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2163      +/-   ##
==========================================
+ Coverage   96.36%   96.63%   +0.26%     
==========================================
  Files         166      165       -1     
  Lines       42531    43484     +953     
==========================================
+ Hits        40986    42021    +1035     
+ Misses       1545     1463      -82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vgoodric vgoodric requested review from a team and markpadbe April 18, 2024 17:32
@Blainegunn Blainegunn merged commit a3e6ddb into stage Apr 18, 2024
13 of 14 checks passed
@Blainegunn Blainegunn deleted the meptimeoutagain branch April 18, 2024 17:49
joaquinrivero added a commit to joaquinrivero/milo that referenced this pull request Apr 19, 2024
* main:
  MWPW-146491 Fast follow to change timeout analytic and use Date instead of performance (adobecom#2163)
  MWPW-146582: a11y aria attributes (adobecom#2156)
mokimo pushed a commit to mokimo/milo that referenced this pull request Apr 30, 2024
…ad of performance (adobecom#2163)

* Do not use Error when timing out

* revert and lint fix

---------

Co-authored-by: ChrisChrisChris <chrischrischris@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Why is this a high priority? Blocker? Critical? Dependency? Ready for Stage run-nala Run Nala Test Automation against PR verified PR has been E2E tested by a reviewer zero-impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants