From 410f1ea56c35002f8c2180377bf6e11ea2e7cecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Thu, 20 Oct 2022 07:47:14 +0200 Subject: [PATCH] Lower amount of functions --- .github/workflows/linux_godot4_GL3_Normal.yml | 60 ++++++++++++++++++- .../linux_godot4_VulkanMobile_Normal.yml | 60 ++++++++++++++++++- .../workflows/linux_godot4_Vulkan_Normal.yml | 60 ++++++++++++++++++- .../linux_godot4_headless_Normal.yml | 60 ++++++++++++++++++- 4 files changed, 232 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linux_godot4_GL3_Normal.yml b/.github/workflows/linux_godot4_GL3_Normal.yml index a17fc2c..daa6412 100644 --- a/.github/workflows/linux_godot4_GL3_Normal.yml +++ b/.github/workflows/linux_godot4_GL3_Normal.yml @@ -525,9 +525,10 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 30" >> settings.txt + echo "number_of_function_repeats: 6" >> settings.txt echo "use_parent_methods: true" >> settings.txt echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt - name: Run Project One By one, very big amount of functions run: | @@ -575,8 +576,63 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 20" >> settings.txt + echo "number_of_function_repeats: 3" >> settings.txt + echo "add_to_tree: true" >> settings.txt + echo "use_parent_methods: true" >> settings.txt + echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt + + - name: Run Project One By one, very big amount of functions, Add to tree + run: | + for i in {0..50}; do echo "" >> project_results.txt; done; + echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt + UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --rendering-driver opengl3 --path $(pwd) 2>&1 | tee sanitizers_log.txt || true + tail -n 200 sanitizers_log.txt >> project_results.txt + + if [ -f "results.txt" ]; then + if [ -f "results_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "results.txt" "t.txt" "results_end.txt" > "temp.txt" + mv "temp.txt" "results_end.txt" + else + cp "results.txt" "results_end.txt" + fi + fi + + if [ -f "memory_usage.txt" ]; then + if [ -f "memory_usage_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt" + mv "temp.txt" "memory_usage_end.txt" + else + cp "memory_usage.txt" "memory_usage_end.txt" + fi + fi + + if [ -f "timer.txt" ]; then + if [ -f "timer_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt" + mv "temp.txt" "timer_end.txt" + else + cp "timer.txt" "timer_end.txt" + fi + fi + + - name: Configure Project Data + run: | + echo "" > settings.txt + cp project.godot.old project.godot + + - name: Configure Project Data + run: | + echo "" > settings.txt + + echo "number_of_function_repeats: 2" >> settings.txt echo "use_parent_methods: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt - name: Run Project Multiple classes, very big amount of functions run: | diff --git a/.github/workflows/linux_godot4_VulkanMobile_Normal.yml b/.github/workflows/linux_godot4_VulkanMobile_Normal.yml index 4184bd7..c7abf7b 100644 --- a/.github/workflows/linux_godot4_VulkanMobile_Normal.yml +++ b/.github/workflows/linux_godot4_VulkanMobile_Normal.yml @@ -525,9 +525,10 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 30" >> settings.txt + echo "number_of_function_repeats: 6" >> settings.txt echo "use_parent_methods: true" >> settings.txt echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt - name: Run Project One By one, very big amount of functions run: | @@ -575,8 +576,63 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 20" >> settings.txt + echo "number_of_function_repeats: 3" >> settings.txt + echo "add_to_tree: true" >> settings.txt + echo "use_parent_methods: true" >> settings.txt + echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt + + - name: Run Project One By one, very big amount of functions, Add to tree + run: | + for i in {0..50}; do echo "" >> project_results.txt; done; + echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt + VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --path $(pwd) 2>&1 | tee sanitizers_log.txt || true + tail -n 200 sanitizers_log.txt >> project_results.txt + + if [ -f "results.txt" ]; then + if [ -f "results_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "results.txt" "t.txt" "results_end.txt" > "temp.txt" + mv "temp.txt" "results_end.txt" + else + cp "results.txt" "results_end.txt" + fi + fi + + if [ -f "memory_usage.txt" ]; then + if [ -f "memory_usage_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt" + mv "temp.txt" "memory_usage_end.txt" + else + cp "memory_usage.txt" "memory_usage_end.txt" + fi + fi + + if [ -f "timer.txt" ]; then + if [ -f "timer_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt" + mv "temp.txt" "timer_end.txt" + else + cp "timer.txt" "timer_end.txt" + fi + fi + + - name: Configure Project Data + run: | + echo "" > settings.txt + cp project.godot.old project.godot + + - name: Configure Project Data + run: | + echo "" > settings.txt + + echo "number_of_function_repeats: 2" >> settings.txt echo "use_parent_methods: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt - name: Run Project Multiple classes, very big amount of functions run: | diff --git a/.github/workflows/linux_godot4_Vulkan_Normal.yml b/.github/workflows/linux_godot4_Vulkan_Normal.yml index 4ce98e0..96244b8 100644 --- a/.github/workflows/linux_godot4_Vulkan_Normal.yml +++ b/.github/workflows/linux_godot4_Vulkan_Normal.yml @@ -519,9 +519,10 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 30" >> settings.txt + echo "number_of_function_repeats: 6" >> settings.txt echo "use_parent_methods: true" >> settings.txt echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt - name: Run Project One By one, very big amount of functions run: | @@ -569,8 +570,63 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 20" >> settings.txt + echo "number_of_function_repeats: 3" >> settings.txt + echo "add_to_tree: true" >> settings.txt + echo "use_parent_methods: true" >> settings.txt + echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt + + - name: Run Project One By one, very big amount of functions, Add to tree + run: | + for i in {0..50}; do echo "" >> project_results.txt; done; + echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt + VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --path $(pwd) 2>&1 | tee sanitizers_log.txt || true + tail -n 200 sanitizers_log.txt >> project_results.txt + + if [ -f "results.txt" ]; then + if [ -f "results_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "results.txt" "t.txt" "results_end.txt" > "temp.txt" + mv "temp.txt" "results_end.txt" + else + cp "results.txt" "results_end.txt" + fi + fi + + if [ -f "memory_usage.txt" ]; then + if [ -f "memory_usage_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt" + mv "temp.txt" "memory_usage_end.txt" + else + cp "memory_usage.txt" "memory_usage_end.txt" + fi + fi + + if [ -f "timer.txt" ]; then + if [ -f "timer_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt" + mv "temp.txt" "timer_end.txt" + else + cp "timer.txt" "timer_end.txt" + fi + fi + + - name: Configure Project Data + run: | + echo "" > settings.txt + cp project.godot.old project.godot + + - name: Configure Project Data + run: | + echo "" > settings.txt + + echo "number_of_function_repeats: 2" >> settings.txt echo "use_parent_methods: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt - name: Run Project Multiple classes, very big amount of functions run: | diff --git a/.github/workflows/linux_godot4_headless_Normal.yml b/.github/workflows/linux_godot4_headless_Normal.yml index 0ccf0b6..37516a7 100644 --- a/.github/workflows/linux_godot4_headless_Normal.yml +++ b/.github/workflows/linux_godot4_headless_Normal.yml @@ -519,9 +519,10 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 30" >> settings.txt + echo "number_of_function_repeats: 6" >> settings.txt echo "use_parent_methods: true" >> settings.txt echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt - name: Run Project One By one, very big amount of functions run: | @@ -569,8 +570,63 @@ jobs: run: | echo "" > settings.txt - echo "number_of_function_repeats: 20" >> settings.txt + echo "number_of_function_repeats: 3" >> settings.txt + echo "add_to_tree: true" >> settings.txt + echo "use_parent_methods: true" >> settings.txt + echo "test_one_class_multiple_times: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt + + - name: Run Project One By one, very big amount of functions, Add to tree + run: | + for i in {0..50}; do echo "" >> project_results.txt; done; + echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt + UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --headless --path $(pwd) 2>&1 | tee sanitizers_log.txt || true + tail -n 200 sanitizers_log.txt >> project_results.txt + + if [ -f "results.txt" ]; then + if [ -f "results_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "results.txt" "t.txt" "results_end.txt" > "temp.txt" + mv "temp.txt" "results_end.txt" + else + cp "results.txt" "results_end.txt" + fi + fi + + if [ -f "memory_usage.txt" ]; then + if [ -f "memory_usage_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt" + mv "temp.txt" "memory_usage_end.txt" + else + cp "memory_usage.txt" "memory_usage_end.txt" + fi + fi + + if [ -f "timer.txt" ]; then + if [ -f "timer_end.txt" ]; then + for i in {0..50}; do echo "" >> t.txt; done; + cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt" + mv "temp.txt" "timer_end.txt" + else + cp "timer.txt" "timer_end.txt" + fi + fi + + - name: Configure Project Data + run: | + echo "" > settings.txt + cp project.godot.old project.godot + + - name: Configure Project Data + run: | + echo "" > settings.txt + + echo "number_of_function_repeats: 2" >> settings.txt echo "use_parent_methods: true" >> settings.txt + echo "how_many_times_test_one_class: 2" >> settings.txt + echo "maximum_executed_functions_on_object: 15" >> settings.txt - name: Run Project Multiple classes, very big amount of functions run: |