reportportal / agent-js-cypress

Agent to integrate Cypress with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-cypress
Apache License 2.0
39 stars 39 forks source link

Complete set of results not getting pushed into Report Portal. #119

Open AspireSytemsINC opened 2 years ago

AspireSytemsINC commented 2 years ago

Complete set of results not getting pushed into Report Portal. In batch of 30 scripts after pushing results for 2 scripts nothing happens and get stuck up there.

Cypress automation project changes dones as per the setps given.

All containers of Report Portal are running fine and no exception observed in the RP container Logs - Below are the logs -

reporting config for cypress.json

"reporter": "cypress-multi-reporters", "reporterOptions": { "reporterEnabled": "@reportportal/agent-js-cypress, cypress-mochawesome-reporter", "reportportalAgentJsCypressReporterOptions": { "autoMerge": "false", "mode" : "trace", "debug": true, "restClientConfig":{ "timeout":3600000 }, "endpoint": "http://localhost:8080/api/v1", "token": "xxxx-xxxxx-xxxx-xxxx", "launch": "superadmin_TEST_EXAMPLE", "project": "superadmin_personal", "description": "Automation Batch Run" }, "cypressMochawesomeReporterReporterOptions": { "reportDir": "cypress/results/AutomationReport_Mochawsome", "charts": true, "saveJson": true, "embeddedScreenshots": true, "inlineAssets": false, "reportPageTitle": "CypressTests" } },

AspireSytemsINC commented 2 years ago

RPLogs.txt

RPUISnapshot

Attached the RP Container Logs and RP UI Snapshot

Could see below error in cypress test run log, is timeout of 60 minutes not enough?? Error: timeout of 3600000ms exceeded at C:\Users\XXX\XXXXXXX\XXXXXXXXX\node_modules\@reportportal\client-javascript\lib\rest.js:37:15 at processTicksAndRejections (node:internal/process/task_queues:96:5) at runNextTicks (node:internal/process/task_queues:65:3) at listOnTimeout (node:internal/timers:526:9) at processTimers (node:internal/timers:500:7)

Fail to save passed log Error: timeout of 3600000ms exceeded at C:\Users\XXXXXXXX\XXXXXXXX\XXXXXXX\node_modules\@reportportal\client-javascript\lib\rest.js:37:15 at processTicksAndRejections (node:internal/process/task_queues:96:5)

AspireSytemsINC commented 2 years ago

Hi, is there anyway to debug this issue since even container logs are not showing any exception?

AmsterGet commented 3 months ago

Hello @AspireSytemsINC ! Is this issue still relevant for you? Based on the information you provided, it's not clear why some requests are reaching RP successfully and some are experiencing such a long delay. I assume it could be due to network connectivity issues. I also noticed that you are using an unsupported trace value for the mode option. image The supported modes are 'DEFALT' and 'DEBUG'. Feel free to ask questions if you have any.