Closed RGonzalezTech closed 1 year ago
I'm going to sleep for the night 😴 I'll review tomorrow morning
@RGonzalezTech let's update the actions to run the test workflow on PR / commit to PR
Refactored the code a bit. Due to the complexity of the download step & assert-check logic, I extracted those into functions and then I moved some of the less complex behaviors into functions as well to follow the SLAP principle.
I understand the point, though. I noticed that I wasn't following the principle in the generate_dl_url
function, so I flattened that one out in 5e70a57e3c06a85f015184e249da1ea89c670a21. I also cleaned up the download_godot
and run_tests
to better implement the SLAP principle. 47591bcfdcca5a93a3be7b8ad39bb13cb3053228
I also removed some older behavior in 068fd8ed059477e2163f86fbca26225815f6a538.
Now, we're running into an issue with the imports.
Since I've removed the .godot/
folder from tester_GUT_v9.0.1
, the runs now fail. I've been trying to debug this in:
--headless
to the import stepNot sure how to get it to rebuild the .godot/
folder.
EDIT: looks like the import timeout of 1s might be too short now.
Fixed the .godot/
import issue. Had to increase the import timeout.
@RGonzalezTech please merge + release when you're ready, LGTM :)
I'd recommend mentioning in release notes the deprecated argument and the default import time change
Summary
I added another tester godot project that uses Godot 4.0.3 and GUT 9.0.1 & I renamed the existing tester to
tester_GUT_v7.4.1
so that we can open the right project depending on the Godot version.I refactored the code to make heavy use of functions so that we can easily locate & isolate the behavior that needs version-handling logic.
The download URL and headless behavior changed in Godot v4. We no longer need to download a binary compiled to run headlessly, we simply append
--headless
to the executable args.Also, the architecture suffix changed from
_64
to_x86_64
or.64
to.x86_64
Luckily, the GUT command line interface and results XML did not change.
Details
I used the following function to determine whether this version is greater than v3:
It updates a global "boolean" called
IS_VERSION_FOUR
.Downloading Godot
The download filename changed slightly. That URL is generated in the
generate_dl_url
function. You can see the change below:Generate Run Options
Godot v4 no longer has a headless build, you can simply add the
--headless
argument to the regular linux executable and it will run headlessly. This is accounted for in thegenerate_run_options
function, where we append--headless
to the run options if we're on v4+Test Running & Analysis
While the code has been refactored to make heavier use of functions, the actual behavior hasn't changed.
Version Bump
I changed the README a bit with more relevant information and bumped the action to v4
Relevant issues
26 #25