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

feat(workflow): MWPW-161458 - Add Core Web Vitals monitoring to PR pipeline #198 #200

Merged
merged 15 commits into from
Nov 19, 2024

Conversation

sanrai
Copy link
Collaborator

@sanrai sanrai commented Nov 18, 2024

Changes

  • Added new GitHub workflow job run-web-vitals-checks to monitor Core Web Vitals metrics during PR deployments
  • Implemented comprehensive user interaction simulation for accurate performance measurement
  • Added automatic testing of LCP, FID, CLS, FCP, and TTFB metrics against industry standard thresholds
  • Updated endpoint URL from chimera runtime to www.adobe.com/chimera-api
  • Added puppeteer dependency for browser automation
  • Measures LCP, FID, and CLS using Google's recommended 4G throttling
  • Supports both desktop and mobile testing environments
  • Implements statistical baseline tracking using t-tests
  • Maintains rolling 15-sample baseline for performance metrics
  • Auto-detects significant regressions and improvements
  • Graceful fallback for network conditions
  • Detailed performance reporting with statistical significance

Testing

  • The workflow runs automatically after deployment
  • Metrics are measured against the following thresholds:
    • LCP (Largest Contentful Paint): < 2.5s
    • FID (First Input Delay): < 100ms
    • CLS (Cumulative Layout Shift): < 0.1
    • FCP (First Contentful Paint): < 1.8s
    • TTFB (Time to First Byte): < 800ms

How to use

node web-vitals-check.js <url> --init-baseline

Then

node web-vitals-check.js <url>

Related Issue

[MWPW-161458]

@sanrai sanrai closed this Nov 18, 2024
@sanrai sanrai reopened this Nov 18, 2024
@sanrai sanrai changed the title Core web vitals 2 feat(workflow): MWPW-161458 - Add Core Web Vitals monitoring to PR pipeline #198 Nov 18, 2024
@sanrai sanrai merged commit e0ba61d into main Nov 19, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants