Skip to content
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

How to run the tests to pass a gitlab pipeline? #520

Closed
Dracks opened this issue Oct 30, 2023 · 4 comments
Closed

How to run the tests to pass a gitlab pipeline? #520

Dracks opened this issue Oct 30, 2023 · 4 comments
Labels
ci/cd pipeline Issues around CI/CD Pipelines

Comments

@Dracks
Copy link

Dracks commented Oct 30, 2023

Hello,

I'm trying to make a pipeline work in gitlab, to run the tests in godot, but I'm not getting it to work.

Seems that I get it working adding the folder ".godot" but this folder contains a lot of files that every time I start godot get modifyied, which I don't wish to have in the git, when I remove the folder or part of it, simply crashes with lots of "Failed loading resource..."

Any Idea What I can do to have this fixed? Can you add some documentation in the wiki of gut about how to run it on pipelines?

[edit]
Seems that only adding this file into git, works godot/.godot/global_script_class_cache.cfg and with a cache imported files
[/edit]

Thanks!

@bitwes
Copy link
Owner

bitwes commented Nov 20, 2023

I remember seeing something similar to this awhile ago, but I don't remember the solution. I think someone had to run the game once before kicking off tests.

I don't have any experience setting up GUT pipelines (I'm a single dev and haven't needed one yet). I'm dedicated to implementing features to allow pipelines to work, but don't have any time to dedicate to developing them. I did just add a "ci/cd pipeline" label which I'm going to try and apply to old and new issues to make info a little easier to find.

Googling "godot gut ci" got me some results. Sorry I can't provide any more help on this, it's just out of scope for me (as might be evident by the fact that it took me 3 weeks to get back to you, heh).

@bitwes bitwes added the ci/cd pipeline Issues around CI/CD Pipelines label Nov 20, 2023
@Dracks
Copy link
Author

Dracks commented Nov 20, 2023

yeah, thanks , I get it working, keeping some of the files internal of .godot, I tried to run the godot --exit (I think is called) to run it and exit, but was not enough to rebuild all the stuff... Currently I've got the gut working in the pipeline, but now it's been days since I touched that for the last time.

@m21-cerutti
Copy link

m21-cerutti commented Feb 11, 2024

Seems related to this issue godotengine/godot#77478
On my own pipeline it prevents GUT from working on the CI, the only workaround is the .godot/global_script_class_cache.cfg indeed to remove from the gitignore.
I have reproduce it locally too if it's the first launch of godot.

image

@Dracks
Copy link
Author

Dracks commented Feb 13, 2024

the best is to run the godot head-less, and ask to quit after more than 50 cicles, here https://github.com/Codename-Recon/Codename-Recon/blob/master/.github/workflows/client-exports.yaml#L38 we put 200, and is working fine (this will allow godot to regenerate the file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd pipeline Issues around CI/CD Pipelines
Projects
None yet
Development

No branches or pull requests

3 participants