Avoid opening editor multiple times in CI

This commit is contained in:
Rafał Mikrut 2021-01-12 13:16:15 +01:00
parent 0a8cc0a565
commit 2e87a652a4

View file

@ -190,7 +190,6 @@ jobs:
run: | run: |
scons tools=yes target=debug use_asan=yes use_ubsan=yes scons tools=yes target=debug use_asan=yes use_ubsan=yes
ls -l bin/ ls -l bin/
# scons tools=no target=release debug_symbols=full use_ubsan=yes use_asan=yes
# Download and test project to check leaks and invalid memory usage. # Download and test project to check leaks and invalid memory usage.
# CI has no audio device, so use the Dummy audio driver to avoid spurious error messages. # CI has no audio device, so use the Dummy audio driver to avoid spurious error messages.
@ -200,30 +199,10 @@ jobs:
unzip 3.2.zip unzip 3.2.zip
mv "RegressionTestProject-3.2" "test_project" mv "RegressionTestProject-3.2" "test_project"
echo "----- Open editor to import all project resources -----" echo "----- Open editor to check for memory leaks -----"
DRI_PRIME=0 timeout 25s xvfb-run bin/godot.x11.tools.64s --audio-driver Dummy -e --path test_project 2>&1 | tee sanitizers_log.txt || true
misc/scripts/check_ci_log.py sanitizers_log.txt
echo "----- Open the editor again, because this doesn't always work -----"
DRI_PRIME=0 timeout 25s xvfb-run bin/godot.x11.tools.64s --audio-driver Dummy -e --path test_project 2>&1 | tee sanitizers_log.txt || true
misc/scripts/check_ci_log.py sanitizers_log.txt
echo "----- Open the editor a third time, this time without timeout but with the -q flag -----"
DRI_PRIME=0 xvfb-run bin/godot.x11.tools.64s --audio-driver Dummy -e -q --path test_project 2>&1 | tee sanitizers_log.txt || true DRI_PRIME=0 xvfb-run bin/godot.x11.tools.64s --audio-driver Dummy -e -q --path test_project 2>&1 | tee sanitizers_log.txt || true
misc/scripts/check_ci_log.py sanitizers_log.txt misc/scripts/check_ci_log.py sanitizers_log.txt
echo "----- Run and test project -----" echo "----- Run and test project -----"
DRI_PRIME=0 xvfb-run bin/godot.x11.tools.64s 20 --video-driver GLES3 --audio-driver Dummy --path test_project 2>&1 | tee sanitizers_log.txt || true DRI_PRIME=0 xvfb-run bin/godot.x11.tools.64s 30 --video-driver GLES3 --audio-driver Dummy --path test_project 2>&1 | tee sanitizers_log.txt || true
misc/scripts/check_ci_log.py sanitizers_log.txt misc/scripts/check_ci_log.py sanitizers_log.txt
# # Export project and run it to check for possible leaks and invalid memory usage
# - name: Exporting and running project
# run: |
# mkdir exported_project
# sed -i 's:PATH_TO_CHANGE:'`pwd`/bin/godot.x11.debug.64s':' test_project/export_presets.cfg
# cd test_project
# DRI_PRIME=0 xvfb-run ../bin/godot.x11.tools.64s --export-debug "Linux/X11" ../exported_project/test_project 2>&1 | tee sanitizers_log.txt || true
# cd ..
# misc/scripts/check_ci_log.py sanitizers_log.txt
# DRI_PRIME=0 xvfb-run exported_project/test_project 20 2>&1 | tee sanitizers_log.txt || true
# misc/scripts/check_ci_log.py sanitizers_log.txt