-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Exit code 1 after importing in headless mode with --quit #83449
Comments
This doesn't occur on my end with 4.2.dev 42425ba (Linux) when using Commands I've tried: godot --quit
godot --quit /tmp/4/project.godot --editor # `--editor/-e` is implied when specifying a path to `project.godot`.
godot --quit /tmp/4/project.godot
godot --quit --path /tmp/4/ --editor
godot --headless --quit
godot --headless --quit /tmp/4/project.godot --editor # `--editor/-e` is implied when specifying a path to `project.godot`.
godot --headless --quit /tmp/4/project.godot
godot --headless --quit --path /tmp/4/ --editor To check for the origin of the exit code, I recommend searching for instances of |
I believe the platform matters. It maybe specific to MacOS Godot. CI that needs to sign exports with xcode need to be on a Mac (if I am not mistaken), so not easy to work around. |
I added logging to Line 59 in fd33c7b
Edit: It would seem it simply needs to be set explicitly prior to setting exit = true in main. All other code paths set the exit code explicitly, only this one didn't. I have submitted a PR |
The default exit code is EXIT_FAILURE. When using --quit and there is no failure, it should be EXIT_SUCCESS. Fixes godotengine#83449
Godot 4.1.x has exit code 1 on MacOS currently. That causes the import step to fail. This provides a workaround until this is fixed, and if it ever happens again. There may also be other scenarios where it's better to keep going, such as if an export preset fails, to continue to try the next export preset. See godotengine/godot#83449
Godot 4.1.x has exit code 1 on MacOS currently. That causes the import step to fail. This provides a workaround until this is fixed, and if it ever happens again. There may also be other scenarios where it's better to keep going, such as if an export preset fails, to continue to try the next export preset. See godotengine/godot#83449
Godot version
v4.1.1.stable.official [bd6af8e]
System information
macOS 13.0.1 - Vulkan (Mobile) - integrated Apple M1 Max - Apple M1 Max (10 Threads)
Issue description
When running godot in headless mode to import a project for the first time (no .godot folder yet), it seems to succeed in that there are no errors, but the exit code is 1. This causes CI actions (e.g. a github action) to assume the step failed, preventing us from being able to produce exports as part of CI. For example, when using this github action, it will fail since it can't get passed the import step: https://github.com/marketplace/actions/godot-export
Steps to reproduce
godot project.godot --headless -e --quit
echo $?
I tried this with --verbose as well and there's a lot more info provided, but still nothing that looks like an error or even a warning.
Minimal reproduction project
GodotTest.zip
The text was updated successfully, but these errors were encountered: