Openbravo Issue Tracking System - POS2
View Issue Details
0056285POS2POSpublic2024-08-21 11:512024-11-11 10:52
andre_montenegro 
Triage Platform Base 
normalmajoralways
newopen 
5
 
 
Automated tests
main
No
0056285: [24Q3] Significant performance degradation when running Cypress test with chrome dev tools opened
It has been observed a significant performance degradation in the POS when executing a Cypress test with Chrome Developer Tools opened. The issue typically manifests during the master data reload process following the login operation.

This issue is not reproducible in versions 24Q2 or earlier.

We have conducted tests altering the following parameters:
  - Chrome Version: The issue is reproducible with Chrome version 120 Stable.
  - Cypress Version: The issue is reproducible with previous versions of
                     Cypress. However, the degradation appears less severe when
                     using version 12.14.0.
  - Using Livebuilds: The issue persists even when using Livebuilds.
  - POS version: This issue is not reproducible in versions 24Q2 or earlier.

Test 1 - with Cypress
Preconditions
- Have 24Q3 release or master context

Steps to reproduce, running a Cypress test:
- Go to openbravo/modules/org.openbravo.core2/web-jspack/org.openbravo.core2 and run:
npm run cy:open
- Select E2E testing, choose "Chrome" stable version and click "Start E2E Testing in Chrome" button.
- Open chrome dev tools with Ctrl + Shift + I
- Select a test to run, for example "ticket.spec.js"
- Observe the huge performance degradation when loading after login the app
Notice that by closing the chrome dev tools, the masterdata loading speeds up.
See video attached.

IMPORTANT: This behavior is not reproducible with 24Q2, 24Q1, 23Q3.

Test 2 - Without Cypress:

- Have 24Q3 release or master context (livebuilds)
- Open the application in a Chrome "guest" tab.
- Measure the time taken from the moment the "Log In" button is pressed until the "loading" screen has finished.
- Compare results with chrome dev tools opened (Ctrl+Shift+I) vs without it.
IMPORTANT: Close and re-open the window before each reload.
No tags attached.
? Screencast from 21-08-24 11:04:18.webm (3,573,748) 2024-08-21 13:22
https://issues.openbravo.com/file_download.php?file_id=20102&type=bug
? POSwoChromeDevTools.mp4 (545,840) 2024-11-11 10:39
https://issues.openbravo.com/file_download.php?file_id=20452&type=bug
? POSwithChromeDevToolsVideo.mp4 (3,845,234) 2024-11-11 10:52
https://issues.openbravo.com/file_download.php?file_id=20453&type=bug
Issue History
2024-08-21 11:51andre_montenegroNew Issue
2024-08-21 11:51andre_montenegroAssigned To => Retail
2024-08-21 11:51andre_montenegroRegression level => Automated tests
2024-08-21 11:51andre_montenegroRegression introduced in release => main
2024-08-21 11:51andre_montenegroTriggers an Emergency Pack => No
2024-08-21 11:51andre_montenegroAssigned ToRetail => Triage Platform Base
2024-08-21 12:51andre_montenegroSummary[24Q3] Huge performance degradation when running Cypress test with chrome dev tools opened => [24Q3] Significant performance degradation when running Cypress test with chrome dev tools opened
2024-08-21 13:22andre_montenegroFile Added: Screencast from 21-08-24 11:04:18.webm
2024-11-10 19:16AugustoMauchRelationship addedcaused by 0056272
2024-11-10 19:16AugustoMauchRelationship deletedcaused by 0056272
2024-11-11 10:38andre_montenegroNote Added: 0171747
2024-11-11 10:38andre_montenegroDescription Updatedbug_revision_view_page.php?rev_id=28755#r28755
2024-11-11 10:38andre_montenegroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28757#r28757
2024-11-11 10:39andre_montenegroFile Added: POSwoChromeDevTools.mp4
2024-11-11 10:52andre_montenegroFile Added: POSwithChromeDevToolsVideo.mp4

Notes
(0171747)
andre_montenegro   
2024-11-11 10:38   
Updated info and videos of the comparation.