-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Update after 13.6.3 runs in execution timeouts on CI/CD #29333
Comments
@JohnnyDevNull Are you recording to the Cypress Cloud? If so,
We're actively investigating these types of performance issues. This information will help us narrow down the use case. |
@JohnnyDevNull Oh! Also, could you run Cypress in debug mode mode and print the entire set of logs here? |
@JohnnyDevNull, could you please try installing this pre-release binary to see if it helps with the timeouts:
|
wer not using the Cypress Cloud, again because of restrictions. Our test are getting executed within our TeamCity and Docker environment, but here is how we are registering the ServiceWorker: if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/service-worker.js', {
scope: '/'
})
.then(registration => {
registration.update();
})
.catch((error) => {
console.error(`Service worker registration failed with ${error}`);
});
});
} The ServiceWorker ist used mainly for checking the app version which is saved to the IndexedDB self.addEventListener('fetch', (event) => {
if(!self.indexedDB) {
return;
}
if (!appVersionDbInstance) {
// Sometimes the database instance disappears and we need to set it again.
return event.waitUntil(setDatabaseInstance());
}
if (!event.request.url.startsWith(self.location.origin)) {
return;
}
return event.respondWith(
getCurrentAppVersion()
.then(function (currentAppVersion) {
const modifiedHeaders = new Headers(event.request.headers);
modifiedHeaders.set(RED_VERSION_HEADER, currentAppVersion || '');
const modifiedRequest = new Request(event.request, { headers: modifiedHeaders, mode: 'same-origin' });
return fetch(modifiedRequest);
})
.catch(error => logError(error)));
}); I hope this helps a little bit. |
I'm going to try this out and come back with some feedback. |
I'm going to try this out and come back with some feedback. |
@mschile is there a way to integrate that into the factory docker image? As I've described our CI/CD setup uses the factory image, so I need to run the tests on that specific pre-release right? |
Hey @mschile it looks very promising. I've run a single file locally in headless mode: |
Hey @jennifer-shehane, I've activated locally for a single suite the DEBUG mode as following:
But to be hones the logs are very much. Is there a specific log level which would be enough here? I mean for our specific use case? I uploaded the logs to my google drive here: https://drive.google.com/drive/folders/1Q2msc40mnzDvS-eJWgfE7Kza9vMUfCpx?usp=sharing Please request access and I'm going to open to you. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
When we're try to update cypress above 13.6.3 our CI/CD setup runs into 90 minutes Execution Timeout
All tests normally succeed within 60 minutes, since
13.6.4
we cannot upgrade cypress.I've tried to identify changes in the changelog that could have been caused this issue, but can only make assumptions.
If I execute random suites locally with the Cypress Studio it seems like everything looks fine.
For me it looks like the ServiceWorker Changes caused the issue, because we're using an active ServiceWorker:
and the issue still exists with
13.7.3
Desired behavior
Cypress should run on CI/CD as before
Test code to reproduce
It's not possible to provide a working repo for reproduction because of restrictions and the size of the application.
Instead I try to describe as good as possible our setup.
Wher're using the docker factory image:
The tests are getting executed via nx e2e command (the client is build and shipped via extra step before running the tests):
Cypress Version
13.6.3
Node version
18.19.1
Operating System
Unix > TeamCity
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: