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

Add performance tests for localized site #5624

Closed

Conversation

swissspidy
Copy link
Member

@swissspidy swissspidy commented Nov 6, 2023

  • Installs de_DE language pack to ensure test site can be localized
  • Test both TT1 and TT3 with de_DE active
  • Adds memory usage to Server-Timing to directly see impact on memory
  • Adds admin tests to see impact on the backend
    • Does not measure LCP as it seems useless there
  • Update log-results.js to ensure all new tests are sent to the Code Vitals dashboard too
  • Fixes Playwright reporter to improve error reporting on CI.

Example output on CI:

Screenshot 2023-11-06 at 21 12 17 Screenshot 2023-11-06 at 21 12 07

Trac ticket: https://core.trac.wordpress.org/ticket/59815


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @swissspidy, I like where this is going. A bit of feedback (mostly questions) below.

.github/workflows/performance.yml Outdated Show resolved Hide resolved
tests/performance/playwright.config.js Show resolved Hide resolved
tests/performance/results.js Outdated Show resolved Hide resolved
tests/performance/specs/admin-l10n.test.js Outdated Show resolved Hide resolved
tests/performance/specs/admin.test.js Outdated Show resolved Hide resolved
tests/performance/specs/admin-l10n.test.js Outdated Show resolved Hide resolved
tests/performance/specs/admin.test.js Outdated Show resolved Hide resolved
Copy link
Member

@joemcgill joemcgill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got a couple of questions, but overall this looks good to me.

tests/performance/results.js Outdated Show resolved Hide resolved
tests/performance/specs/admin-l10n.test.js Show resolved Hide resolved
.github/workflows/performance.yml Show resolved Hide resolved
tests/performance/log-results.js Show resolved Hide resolved
Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @swissspidy for the PR. Overall look solid to me left some nit-pick.

tests/performance/compare-results.js Outdated Show resolved Hide resolved
tests/performance/specs/admin-l10n.test.js Outdated Show resolved Hide resolved
tests/performance/specs/admin.test.js Outdated Show resolved Hide resolved
tests/performance/specs/home-block-theme-l10n.test.js Outdated Show resolved Hide resolved
tests/performance/specs/home-classic-theme-l10n.test.js Outdated Show resolved Hide resolved
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swissspidy Thanks for the updates, LGTM!

Are these values just going to appear in the codevitals dashboard, or do we have to update that project as well?

@swissspidy
Copy link
Member Author

I will ping Riad to update the dashboard once committed

Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @swissspidy for the update. LGTM!

tests/performance/wp-content/mu-plugins/server-timing.php Outdated Show resolved Hide resolved
@swissspidy
Copy link
Member Author

@swissspidy swissspidy closed this Nov 8, 2023
@swissspidy swissspidy deleted the add/l10n-performance-test branch November 8, 2023 10:32
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.

5 participants