cypress: Tests Execution hangs on Azure pipeline after upgrading Angular to version 15
Current behavior
Current angular Version: 15 Current Cypress Version: 12.3
Since the upgrade of angular to version 15 my tests in the pipeline are getting stuck until the timeout occurs from the pipeline. Locally the tests are running fine.
Is this an angular issue or Cypress Issue?
Desired behavior
No response
Test code to reproduce
Here are the logs from the pipeline :
2023-01-11T01:10:26.1913158Z ✔ All specs passed! 00:03 1 1 - - -
2023-01-11T01:10:26.1916367Z
2023-01-11T02:00:58.8321079Z ##[error]The operation was canceled.
2023-01-11T02:00:58.8371715Z ##[section]Finishing: Execute cypress tests
2023-01-11T02:00:59.8858781Z ##[section]Starting: Publish Test Results
2023-01-11T02:00:59.8882457Z ==============================================================================
2023-01-11T02:00:59.8882764Z Task : Publish Test Results
2023-01-11T02:00:59.8882936Z Description : Publish test results to Azure Pipelines
2023-01-11T02:00:59.8883137Z Version : 2.210.0
2023-01-11T02:00:59.8883286Z Author : Microsoft Corporation
2023-01-11T02:00:59.8883476Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
2023-01-11T02:00:59.8883751Z ==============================================================================
2023-01-11T02:01:10.9959362Z [command]/usr/bin/dotnet --version
2023-01-11T02:01:10.9959755Z 7.0.100
2023-01-11T02:01:13.0343893Z Result Attachments will be stored in LogStore
2023-01-11T02:01:13.2050448Z Run Attachments will be stored in LogStore
2023-01-11T02:01:13.3208050Z ##[section]Async Command Start: Publish test results
2023-01-11T02:01:13.6457602Z Publishing test results to test run '49616'.
2023-01-11T02:01:13.6491897Z TestResults To Publish 1, Test run id:49616
2023-01-11T02:01:13.6545302Z Test results publishing 1, remaining: 0. Test run id: 49616
2023-01-11T02:01:15.1895355Z Published Test Run: [url]
2023-01-11T02:01:15.3275396Z ##[section]Async Command End: Publish test results
2023-01-11T02:01:15.3277173Z ##[section]Finishing: Publish Test Results
2023-01-11T02:01:15.7865011Z ##[section]Starting: Checkout xxxxx@master to s
2023-01-11T02:01:15.7871965Z ==============================================================================
2023-01-11T02:01:15.7872302Z Task : Get sources
2023-01-11T02:01:15.7872453Z Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2023-01-11T02:01:15.7872731Z Version : 1.0.0
2023-01-11T02:01:15.7873157Z Author : Microsoft
2023-01-11T02:01:15.7874196Z ==============================================================================
2023-01-11T02:01:16.3413288Z Cleaning any cached credential from repository:
2023-01-11T02:01:16.3422485Z ##[section]Finishing: Checkout
2023-01-11T02:01:16.9549052Z ##[section]Starting: Finalize Job
2023-01-11T02:01:16.9595259Z Cleaning up task key
2023-01-11T02:01:16.9597713Z Start cleaning up orphan processes.
2023-01-11T02:01:17.0061533Z Terminate orphan process: pid (3907) (ng run app-e2e:e2e)
2023-01-11T02:01:17.0098636Z Terminate orphan process: pid (3970) (esbuild)
2023-01-11T02:01:17.0187171Z ##[section]Finishing: Finalize Job
2023-01-11T02:01:17.0242594Z ##[section]Finishing: Job
Cypress Version
12.3
Node version
18.13
Operating System
Windows
Debug Logs
No response
Other
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 16 (5 by maintainers)
I was also running into the same issue with one of our projects. The problem was caused by the presence of https://github.com/manfredsteyer/ngx-build-plus. We use this builder to alter the webpack configuration.
This was working fine up to Angular 13, it broke while upgrading to Angular 14.
When I run the cypress tests with the default @angular-devkit builder, everything is back to normal. Hope this helps…
I see this issue after migrating from angular 14 to angular 15 and cypress 11 to cypress 12. but cypress 10.10.1 works
update: Sorry, for wrong reporting. Cypress 10.10.x does not work. @sergiubologa
I am also using nx and running using nx command