From 88c43b95051b65c32598ed1130392579597fe695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Sun, 11 Dec 2022 21:50:04 +0100 Subject: [PATCH] Ignore to_node --- .github/workflows/exported.yml.disabled | 80 ----------------- .github/workflows/long.yml.disabled | 85 ------------------ .github/workflows/required.yml | 25 +----- .github/workflows/stress.yml.disabled | 87 ------------------- .../workflows/thread_sanitizer.yml.disabled | 82 ----------------- AutomaticBugs/BasicData.gd | 3 +- 6 files changed, 3 insertions(+), 359 deletions(-) delete mode 100644 .github/workflows/exported.yml.disabled delete mode 100644 .github/workflows/long.yml.disabled delete mode 100644 .github/workflows/stress.yml.disabled delete mode 100644 .github/workflows/thread_sanitizer.yml.disabled diff --git a/.github/workflows/exported.yml.disabled b/.github/workflows/exported.yml.disabled deleted file mode 100644 index 8c63fce..0000000 --- a/.github/workflows/exported.yml.disabled +++ /dev/null @@ -1,80 +0,0 @@ -name: 🐧 Exported Build -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' - -jobs: - linux-sanitizer: - runs-on: "ubuntu-20.04" - name: Editor and exported project with sanitizers (target=debug/release, tools=yes/no, debug_symbols=yes, use_ubsan=yes, use_asan=yes) - - steps: - - uses: actions/checkout@v2 - - # Azure repositories are not reliable, we need to prevent azure giving us packages. - - name: Make apt sources.list use the default Ubuntu repositories - run: | - sudo rm -f /etc/apt/sources.list.d/* - sudo cp -f misc/ci/sources.list /etc/apt/sources.list - sudo apt-get update - - # Install all packages (except scons) - - name: Configure dependencies - run: | - sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \ - libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm \ - xvfb wget2 unzip python scons git - -# - name: Download Godot -# run: | -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_x11.64.zip -# unzip Godot_v3.2.4-beta1_x11.64.zip -# rm Godot_v3.2.4-beta1_x11.64.zip -# mv Godot_v3.2.4-beta1_x11.64 godot.x11.tools.64s -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_export_templates.tpz -# unzip Godot_v3.2.4-beta1_export_templates.tpz -# mv templates/linux_x11_64_debug godot.x11.opt.64s -# rm -rf templates -# rm Godot_v3.2.4-beta1_export_templates.tpz -# ls -alr - -# - name: Download Godot(ZIP) -# run: | -# wget2 https://github.com/godotengine/godot/archive/3.2.zip -# unzip 3.2.zip -# rm 3.2.zip - - - - name: Download Godot(GIT) - run: | - git clone https://github.com/godotengine/godot.git - cd godot - git checkout 3.x - cd ../ - - - name: Compile Godot - run: | - cd godot - scons p=x11 -j2 use_asan=yes use_ubsan=yes CCFLAGS="-fsanitize=shift,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr" - cp bin/godot.x11.tools.64s ../ - git clean -xqdf - scons tools=no target=release debug_symbols=yes use_asan=yes use_ubsan=yes optimize=none CCFLAGS="-DDEBUG_METHODS_ENABLED -fsanitize=shift,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr" - cp bin/godot.x11.opt.64s ../ - cd ../ - rm -rf godot - - # Export project to check for possible leaks and invalid memory usage - - name: Exporting project - run: | - curr="$(pwd)/godot.x11.opt.64s" - sed -i "s|PATH_TO_CHANGE|$curr|" export_presets.cfg - DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s --audio-driver Dummy --export-debug "Linux/X11" test_project 2>&1 | tee sanitizers_log.txt || true - misc/check_ci_log.py sanitizers_log.txt - - # Run project to check for possible leaks and invalid memory usage - - name: Running project - run: | - DRI_PRIME=0 xvfb-run ./test_project 3600 --audio-driver Dummy 2>&1 | tee sanitizers_log.txt || true - misc/check_ci_log.py sanitizers_log.txt diff --git a/.github/workflows/long.yml.disabled b/.github/workflows/long.yml.disabled deleted file mode 100644 index 68c42e4..0000000 --- a/.github/workflows/long.yml.disabled +++ /dev/null @@ -1,85 +0,0 @@ -name: 🐧 Long 1h -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' - -jobs: - linux-sanitizer: - runs-on: "ubuntu-20.04" - name: Editor and exported project with sanitizers (target=debug/release, tools=yes/no, debug_symbols=yes, use_ubsan=yes, use_asan=yes) - - steps: - - uses: actions/checkout@v2 - - # Azure repositories are not reliable, we need to prevent azure giving us packages. - - name: Make apt sources.list use the default Ubuntu repositories - run: | - sudo rm -f /etc/apt/sources.list.d/* - sudo cp -f misc/ci/sources.list /etc/apt/sources.list - sudo apt-get update - - # Install all packages (except scons) - - name: Configure dependencies - run: | - sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \ - libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm \ - xvfb wget2 unzip python scons git - -# - name: Download Godot -# run: | -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_x11.64.zip -# unzip Godot_v3.2.4-beta1_x11.64.zip -# rm Godot_v3.2.4-beta1_x11.64.zip -# mv Godot_v3.2.4-beta1_x11.64 godot.x11.tools.64s -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_export_templates.tpz -# unzip Godot_v3.2.4-beta1_export_templates.tpz -# mv templates/linux_x11_64_debug godot.x11.opt.64s -# rm -rf templates -# rm Godot_v3.2.4-beta1_export_templates.tpz -# ls -alr - -# - name: Download Godot(ZIP) -# run: | -# wget2 https://github.com/godotengine/godot/archive/3.2.zip -# unzip 3.2.zip -# rm 3.2.zip - - - - name: Download Godot(GIT) - run: | - git clone https://github.com/godotengine/godot.git - cd godot - git checkout 3.x - cd ../ - - - name: Compile Godot - run: | - cd godot - scons p=x11 -j2 use_asan=yes use_ubsan=yes CCFLAGS="-fsanitize=shift,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr" - true || scons tools=no target=release debug_symbols=yes use_asan=yes use_ubsan=yes CCFLAGS="-fsanitize=shift,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr" - cp bin/godot.x11.tools.64s ../ - true || cp bin/godot.x11.opt.64s ../ - cd ../ - rm -rf godot - - - name: Open Godot - run: | - DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s --audio-driver Dummy -e -q --path $(pwd) 2>&1 | tee sanitizers_log.txt || true - misc/check_ci_log.py sanitizers_log.txt - - - name: Use Godot - run: | - DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s 3600 --audio-driver Dummy --video-driver GLES3 --path $(pwd) 2>&1 | tee sanitizers_log.txt || true - misc/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: | -# curr="$(pwd)/godot.x11.opt.64s" -# sed -i "s|PATH_TO_CHANGE|$curr|" export_presets.cfg -# DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s --export-debug "Linux/X11" test_project 2>&1 | tee sanitizers_log.txt || true -# misc/check_ci_log.py sanitizers_log.txt -# DRI_PRIME=0 xvfb-run ./test_project 20 2>&1 | tee sanitizers_log.txt || true -# misc/check_ci_log.py sanitizers_log.txt diff --git a/.github/workflows/required.yml b/.github/workflows/required.yml index 856b706..ee29555 100644 --- a/.github/workflows/required.yml +++ b/.github/workflows/required.yml @@ -11,7 +11,7 @@ jobs: name: Editor and exported project with sanitizers (target=debug/release, tools=yes/no, debug_symbols=yes, use_ubsan=yes, use_asan=yes) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -27,21 +27,6 @@ jobs: libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm \ xvfb wget2 unzip python scons git -# Allows to test project with precompiled binaries -# - name: Download Godot -# run: | -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_x11.64.zip -# unzip Godot_v3.2.4-beta1_x11.64.zip -# rm Godot_v3.2.4-beta1_x11.64.zip -# mv Godot_v3.2.4-beta1_x11.64 godot.x11.tools.64s - -# - name: Download Godot(ZIP) -# run: | -# wget2 https://github.com/godotengine/godot/archive/3.2.zip -# unzip 3.2.zip -# rm 3.2.zip - - - name: Download Godot(GIT) run: | git clone https://github.com/godotengine/godot.git @@ -52,7 +37,7 @@ jobs: - name: Compile Godot run: | cd godot - scons p=x11 -j2 use_asan=yes use_ubsan=yes + scons -j2 use_asan=yes use_ubsan=yes linker=gold cp bin/godot.x11.tools.64s ../ cd ../ rm -rf godot @@ -66,9 +51,3 @@ jobs: run: | DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s 180 --audio-driver Dummy --video-driver GLES3 --path $(pwd) 2>&1 | tee sanitizers_log.txt || true misc/check_ci_log.py sanitizers_log.txt - -# - uses: actions/upload-artifact@v2 -# with: -# name: ${{ github.job }} -# path: godot.x11.tools.64s -# retention-days: 14 diff --git a/.github/workflows/stress.yml.disabled b/.github/workflows/stress.yml.disabled deleted file mode 100644 index e767d62..0000000 --- a/.github/workflows/stress.yml.disabled +++ /dev/null @@ -1,87 +0,0 @@ -name: 🐧 Stress 2h -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' - -jobs: - linux-sanitizer: - runs-on: "ubuntu-20.04" - name: Editor and exported project with sanitizers (target=debug/release, tools=yes/no, debug_symbols=yes, use_ubsan=yes, use_asan=yes) - - steps: - - uses: actions/checkout@v2 - - # Azure repositories are not reliable, we need to prevent azure giving us packages. - - name: Make apt sources.list use the default Ubuntu repositories - run: | - sudo rm -f /etc/apt/sources.list.d/* - sudo cp -f misc/ci/sources.list /etc/apt/sources.list - sudo apt-get update - - # Install all packages (except scons) - - name: Configure dependencies - run: | - sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \ - libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm \ - xvfb wget2 unzip python scons git - -# - name: Download Godot -# run: | -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_x11.64.zip -# unzip Godot_v3.2.4-beta1_x11.64.zip -# rm Godot_v3.2.4-beta1_x11.64.zip -# mv Godot_v3.2.4-beta1_x11.64 godot.x11.tools.64s -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_export_templates.tpz -# unzip Godot_v3.2.4-beta1_export_templates.tpz -# mv templates/linux_x11_64_debug godot.x11.opt.64s -# rm -rf templates -# rm Godot_v3.2.4-beta1_export_templates.tpz -# ls -alr - -# - name: Download Godot(ZIP) -# run: | -# wget2 https://github.com/godotengine/godot/archive/3.2.zip -# unzip 3.2.zip -# rm 3.2.zip - - - - name: Download Godot(GIT) - run: | - git clone https://github.com/godotengine/godot.git - cd godot - git checkout 3.x - cd ../ - - - name: Compile Godot - run: | - cd godot - scons p=x11 -j2 use_asan=yes use_ubsan=yes CCFLAGS="-fsanitize=shift,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr" - true || scons tools=no target=release debug_symbols=yes use_asan=yes use_ubsan=yes CCFLAGS="-fsanitize=shift,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,return,signed-integer-overflow,bounds,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr" - cp bin/godot.x11.tools.64s ../ - true || cp bin/godot.x11.opt.64s ../ - cd ../ - rm -rf godot - - - name: Open and close editor - run: | - echo "-------------------- OPEN EDITOR TO IMPORT PROJECT -----------------------" - DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s --audio-driver Dummy -e -q --path $(pwd) 2>&1 | tee sanitizers_log.txt || true - misc/check_ci_log.py sanitizers_log.txt || true - - - name: Use Godot - run: | - sed -i "s|NUMBER_OF_INSTANCES : int = 1|NUMBER_OF_INSTANCES : int = 10|" Start.gd - DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s 7200 --audio-driver Dummy --video-driver GLES3 --path $(pwd) 2>&1 | tee sanitizers_log.txt || true - misc/check_ci_log.py sanitizers_log.txt || true - -# # Export project and run it to check for possible leaks and invalid memory usage -# - name: Exporting and running project -# run: | -# curr="$(pwd)/godot.x11.opt.64s" -# sed -i "s|PATH_TO_CHANGE|$curr|" export_presets.cfg -# DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s --export-debug "Linux/X11" test_project 2>&1 | tee sanitizers_log.txt || true -# misc/check_ci_log.py sanitizers_log.txt -# DRI_PRIME=0 xvfb-run ./test_project 20 2>&1 | tee sanitizers_log.txt || true -# misc/check_ci_log.py sanitizers_log.txt diff --git a/.github/workflows/thread_sanitizer.yml.disabled b/.github/workflows/thread_sanitizer.yml.disabled deleted file mode 100644 index e5bad93..0000000 --- a/.github/workflows/thread_sanitizer.yml.disabled +++ /dev/null @@ -1,82 +0,0 @@ -name: 🐧 Thread Sanitizer 1h -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' - -jobs: - linux-sanitizer: - runs-on: "ubuntu-20.04" - name: Editor and exported project with sanitizers (target=debug/release, tools=yes/no, debug_symbols=yes, use_tsan=yes) - - steps: - - uses: actions/checkout@v2 - - # Azure repositories are not reliable, we need to prevent azure giving us packages. - - name: Make apt sources.list use the default Ubuntu repositories - run: | - sudo rm -f /etc/apt/sources.list.d/* - sudo cp -f misc/ci/sources.list /etc/apt/sources.list - sudo apt-get update - - # Install all packages (except scons) - - name: Configure dependencies - run: | - sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \ - libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm \ - xvfb wget2 unzip python scons git llvm clang - -# - name: Download Godot -# run: | -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_x11.64.zip -# unzip Godot_v3.2.4-beta1_x11.64.zip -# rm Godot_v3.2.4-beta1_x11.64.zip -# mv Godot_v3.2.4-beta1_x11.64 godot.x11.tools.64.llvms -# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_export_templates.tpz -# unzip Godot_v3.2.4-beta1_export_templates.tpz -# mv templates/linux_x11_64_debug godot.x11.opt.64s -# rm -rf templates -# rm Godot_v3.2.4-beta1_export_templates.tpz -# ls -alr - -# - name: Download Godot(ZIP) -# run: | -# wget2 https://github.com/godotengine/godot/archive/3.2.zip -# unzip 3.2.zip -# rm 3.2.zip - - - - name: Download Godot(GIT) - run: | - git clone https://github.com/godotengine/godot.git - cd godot - git checkout 3.x - cd ../ - - - name: Compile Godot - run: | - cd godot - scons p=x11 -j2 use_tsan=yes use_llvm=yes - cp bin/godot.x11.tools.64.llvms ../ - cd ../ - rm -rf godot - - - name: Open and close editor - run: | - DRI_PRIME=0 xvfb-run ./godot.x11.tools.64.llvms --audio-driver Dummy -e -q --path $(pwd) 2>&1 | tee sanitizers_log.txt || true - - - name: Use Godot - run: | - sed -i "s|NUMBER_OF_INSTANCES : int = 1|NUMBER_OF_INSTANCES : int = 10|" Start.gd - DRI_PRIME=0 xvfb-run ./godot.x11.tools.64.llvms 3600 --audio-driver Dummy --video-driver GLES3 --path $(pwd) 2>&1 | tee sanitizers_log.txt || true - -# # Export project and run it to check for possible leaks and invalid memory usage -# - name: Exporting and running project -# run: | -# curr="$(pwd)/godot.x11.opt.64s" -# sed -i "s|PATH_TO_CHANGE|$curr|" export_presets.cfg -# DRI_PRIME=0 xvfb-run ./godot.x11.tools.64.llvms --export-debug "Linux/X11" test_project 2>&1 | tee sanitizers_log.txt || true -# misc/check_ci_log.py sanitizers_log.txt -# DRI_PRIME=0 xvfb-run ./test_project 20 2>&1 | tee sanitizers_log.txt || true -# misc/check_ci_log.py sanitizers_log.txt diff --git a/AutomaticBugs/BasicData.gd b/AutomaticBugs/BasicData.gd index b70b050..7f0eee5 100644 --- a/AutomaticBugs/BasicData.gd +++ b/AutomaticBugs/BasicData.gd @@ -12,8 +12,6 @@ var function_exceptions: Array = [ "_unhandled_key_input", "connect_to_signal", # Should be chrrypicked "_editor_settings_changed", # GH 45979 - "_submenu_timeout", # GH 45981 - "_thread_done", #GH 46000 "generate", #GH 46001 "_proximity_group_broadcast", #GH 46002 "_direct_state_changed", #GH 46003 @@ -128,6 +126,7 @@ var function_exceptions: Array = [ "add_child", "add_child_below_node", "add_sibling", + "to_node", # Convert GLTFLight to node, which leak memory ] # Globally disabled classes which causes bugs or are very hard to use properly