Page MenuHomePhabricator

🚧 [MEX] E2E tests refactoring for better performance (Experimental)
Open, Needs TriagePublic

Description

Introduce new approaches for the E2E Cypress tests for the extension Wikibase to boost the performance and reduce the execution time (experimental).

The introduced new approaches:

  • Implement the login with session to avoid the manual login and use the existing login for each spec only once.
  • Dividing the E2E specs into multiple parallel processes to reduce the execution time (might consume more resources).
  • Use the MwApi:GetOrCreatePropertyIdByDataType instead of MwApi:CreateProperty when possible.

Next:
Need to know how to apply the npm:run:parallel in the CI pipelines for the parallel execution (or whatever solution we will go with) to the CI.

Event Timeline

Change #1228594 had a related patch set uploaded (by Mahmoud-abdelsattar; author: Mahmoud-abdelsattar):

[mediawiki/extensions/Wikibase@master] E2E performance optimization new approaches

https://gerrit.wikimedia.org/r/1228594

mahmoud.abdelsattar.wmde renamed this task from [MEX] E2E tests refactoring for better performance (Experimental) to 🚧 [MEX] E2E tests refactoring for better performance (Experimental).Thu, Jan 22, 1:50 PM