Closed sync-by-unito[bot] closed 1 year ago
➤ Alejandro Estrada commented:
Maybe related based on the logs
➤ 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, https://github.com/cypress-io/cypress/blob/6622f6a9d3fb4d69b606bdfc83d32fc58e03e37f/packages/data-context/src/sources/GitDataSource.ts#L352 - it is undefined, not 0.
➤ 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. I guess we can consider:
Override the TS compiler to force the use of code as in the snippet below. This solution works fine but it feels like a hack
// while the typings include a field named `exitCode`, the actual field is `code`
// overriding typing to correct
const r = result as any as (Omit<typeof result, 'exitCode'> & {code: number})
debugVerbose('command execution exit code is %d', r.code)
if (r.code !== 0) {
debug(`command execution error: %o`, result)
}
Which way do you think we should do it, Mark Noonan and Tim Griesser ?
@rockhold @baus I think we should go on and close this ticket. The error we are seeing that Muaz discusses here is not actually affecting anything (though it would be nice to clean it up) and the main issue reported here could not be reproduced.
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.
I'm having the same situation with 12.7 after a fresh install (Cypress was never used in this project).
It just hangs forever, no message in DevTools or console.
I'm on Ubuntu 22.10, Node 18.14.2. I use Cypress a lot in other projects without issue.
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 🤯
will it be launched at the end?
@zinaemilian what command are you using to open Cypress? Can you share the project?
Hello, @marktnoonan I have the same problem. I am running on a MacOS and I have installed Cypress for the first time as I want to learn how to use it. I do open it by ./cypress open command. I tried closing it and now the E2E seems to be configured, but when I do click on it, the following error is generated.
Hmm @AndreiMocirean from the screenshot it appears you have opened the./bin
folder as a project, which could be causing problems.
Could I suggest the following to explore Cypress:
test-project
or somethingnpm install Cypress
npx cypress open
If you follow the setup steps again, Cypress should do its setup and scaffolding in that test-project
folder.
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 ./node_modules/.bin/cypress open
then selecting E2E Testing. Cypress v13.6.6 and Rocky 9.3. Haven't tried any of the fixes/workarounds yet.
also getting this nothing local changed at all seemed to just happen between my last run EoD yesterday and this a.m. tried:
rm -rf node_modules && npm i
npx cypress cache clear && cypress install
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.
Current Behavior
running the migration on todomvc project, when running the first time e2e it hangs there forever until I refresh it
Loom
https://user-images.githubusercontent.com/1271364/171272976-9b2536b2-47fb-423d-b93b-a3381bb7e5b8.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