-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
E2E configuration hangs forever at 'initializing config' after migration #21920
Comments
➤ Mark Noonan commented: Moving to blocked as I’ve been unable to reproduce this at all, even in the build from May 19 that was used for the last walkthrough. |
➤ Mark Noonan commented: From the screenshots, it looks like is line is where the error in the video happened:
Decided to log this and document the typical output of that stdout for git info. To my surprise, even though the actual failure is not present (nothing hangs) I still saw the error logged: Confirmed I see this error logged even in the newest binary. |
➤ Mark Noonan commented: The error is always logged because the result has no status code,
|
➤ Mark Noonan commented: Hi Muaz Othman just curious what you make of this, the return value for const result = await execa(cmd, { shell: process.env.SHELL || '/bin/bash', cwd: this.#gitBaseDir }) does not appear to have an exitCode , result.exitCode logs as undefined. It does have a code property of 0. This does not seem to be the cause of the issue but wanted to get your thoughts, does the absence of any exit code mean something? We get a full payload of git data. |
➤ Muaz Othman commented: This is weird. I can reproduce getting undefined for result.exitCode which looks weird, and the typing bundled with execa doesn't declare a code field. I found that execa is now at version 6.1.0 and we’re using a 4 years old v 1.0.0. I think we’re using execa to address a few issues with nativechild_process on Windows.
Which way do you think we should do it, Mark Noonan and Tim Griesser ? |
Not sure if it helps, but just fyi: I had a similar issue and was able to solve it by switching my console from Cmdr to GitBash. |
Thanks, @yktoo it's clearly the same presentation (config just spinning), but seems to be different situation. The issue above is one related to a problem after migrating an existing project from pre-10.0 Cypress, which wouldn't be a factor in a new project. I've opened a fresh issue (#25974) to track. |
Hi, I am installing the first-time cypress on my machine and config spinning over 5 minutes and not lunch Cypress 🤯 |
@zinaemilian what command are you using to open Cypress? Can you share the project? |
Hello, |
Hmm @AndreiMocirean from the screenshot it appears you have opened the Could I suggest the following to explore Cypress:
If you follow the setup steps again, Cypress should do its setup and scaffolding in that |
I solve this problem with run this command “cypress open --e2e” after installing cypress, I didn't launch with “npx cypress open --config-file cypress/cypress.json” thx a lot |
In my case “npm cypress open” did not work. I used the command “npx cypress open --config-file cypress/cypress.json” instead of it. But I faced the spinning issue then I delete and create again my demo-project than I run ““cypress open --e2e” after finishing the installation and it is working as we expected. Many thanks for your quick response @marktnoonan |
I'm also getting the spinning "cy" on the "Initializing config..." screen after running |
also getting this nothing local changed at all seemed to just happen between my last run EoD yesterday and this a.m.
in my / our case it was a preflight test that was failing and not logging that it was failing (our API server inaccessible) |
@mikegwhit Thanks for reporting - I'd suggest opening a brand new issue and describe in detail what you're experiencing. This issue was related to a specific problem that used to occur after automated migration of projects from earlier versions of Cypress into Cypress 10 and was since solved. Even if the presentation is the same (stuck on "initializing config...") - if you weren't migrating an old project, then you have a different issue that could be investigated on its own. |
UPDATE: it took like 3 minutes to load, even when before it took like 3 seconds. Good it works, but could be a liitle faster :) OLD MESSAGE: I use Ubuntu 22.04.
|
Current Behavior
running the migration on todomvc project, when running the first time e2e it hangs there forever until I refresh it
Loom
Cypress.-.19.May.2022.1.mp4
These are the only logs on the terminal
Maybe related in DEBUG logs
this seems to be only happening in the binary
https://cypressio.slack.com/archives/C02MW5QBD4K/p1652987265272569
Reproducible Steps
┆Issue is synchronized with this Jira Bug by Unito
┆Attachments: image (15).png | image-20220519-194702.png | Screen Shot 2022-05-19 at 2.13.44 PM.png | Screen Shot 2022-05-25 at 1.09.57 PM.png
┆author: Alejandro Estrada
┆epic: Edge Cases
┆friendlyId: UNIFY-1794
┆priority: Highest
┆sprint: Backlog
┆taskType: Bug
The text was updated successfully, but these errors were encountered: