From 6128be915219291ae93a2676e9e9b8e03ed10c2c Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 18:19:18 +0330 Subject: [PATCH 1/8] wip --- .drone.yml | 248 ++++++++++++++++++++++++++--------------------------- 1 file changed, 124 insertions(+), 124 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9abc962..2c9a1ce 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,21 +1,21 @@ ---- -kind: pipeline -type: exec -name: amd64 — msvc -trigger: - branch: - - main -platform: - os: windows - arch: amd64 - -steps: -- name: unit tests - shell: powershell - commands: - - ./tools/ci/amd64/msvc/unit_tests.ps1 - ---- +# --- +# kind: pipeline +# type: exec +# name: amd64 — msvc +# trigger: +# branch: +# - main +# platform: +# os: windows +# arch: amd64 +# +# steps: +# - name: unit tests +# shell: powershell +# commands: +# - ./tools/ci/amd64/msvc/unit_tests.ps1 +# +# --- kind: pipeline type: docker name: amd64 — gcc @@ -24,11 +24,11 @@ trigger: - main steps: -- name: unit tests - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/amd64/gcc/unit_tests.sh +# - name: unit tests +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/amd64/gcc/unit_tests.sh - name: valgrind image: ci:latest @@ -36,104 +36,104 @@ steps: commands: - ./tools/ci/amd64/gcc/valgrind.sh ---- -kind: pipeline -type: docker -name: amd64 — clang -trigger: - branch: - - main - -steps: -- name: code coverage - image: ci:latest - pull: if-not-exists - environment: - CODECOV_TOKEN: - from_secret: CODECOV_TOKEN - commands: - - ./tools/ci/amd64/clang/coverage.sh - -- name: leak sanitizer - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/amd64/clang/lsan.sh - -- name: memory sanitizer - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/amd64/clang/msan.sh - ---- -kind: pipeline -type: docker -name: static analysis -trigger: - branch: - - main - -steps: -- name: clang tidy - image: ci:latest - pull: if-not-exists - privileged: true - commands: - - ./tools/ci/static_analysis/clang_tidy.sh - -- name: clang format - image: ci:latest - pull: if-not-exists - commands: - - ./tools/ci/static_analysis/clang_format.sh - ---- -kind: pipeline -type: docker -name: documentation — development -node: - environment: ryali -trigger: - branch: - - main - -steps: -- name: build and deploy - image: documentation:latest - pull: if-not-exists - commands: - - pwd - - cd docs - - mkdir generated - - touch generated/changelogs.rst - - touch generated/api.rst - - sphinx-build -M html . . - - - rm -rf /light_docs_dev/* - - mv ./html/* /light_docs_dev/ - ---- - -kind: pipeline -type: docker -name: documentation — production -node: - environment: ryali -trigger: - event: - - tag - -steps: -- name: build and deploy - image: documentation:latest - pull: if-not-exists - commands: - - cd docs - - mkdir generated - - touch generated/changelogs.rst - - touch generated/api.rst - - sphinx-build -M html . . - - - rm -rf /light_docs/* - - mv ./html/* /light_docs/ +# --- +# kind: pipeline +# type: docker +# name: amd64 — clang +# trigger: +# branch: +# - main +# +# steps: +# - name: code coverage +# image: ci:latest +# pull: if-not-exists +# environment: +# CODECOV_TOKEN: +# from_secret: CODECOV_TOKEN +# commands: +# - ./tools/ci/amd64/clang/coverage.sh +# +# - name: leak sanitizer +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/amd64/clang/lsan.sh +# +# - name: memory sanitizer +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/amd64/clang/msan.sh +# +# --- +# kind: pipeline +# type: docker +# name: static analysis +# trigger: +# branch: +# - main +# +# steps: +# - name: clang tidy +# image: ci:latest +# pull: if-not-exists +# privileged: true +# commands: +# - ./tools/ci/static_analysis/clang_tidy.sh +# +# - name: clang format +# image: ci:latest +# pull: if-not-exists +# commands: +# - ./tools/ci/static_analysis/clang_format.sh +# +# --- +# kind: pipeline +# type: docker +# name: documentation — development +# node: +# environment: ryali +# trigger: +# branch: +# - main +# +# steps: +# - name: build and deploy +# image: documentation:latest +# pull: if-not-exists +# commands: +# - pwd +# - cd docs +# - mkdir generated +# - touch generated/changelogs.rst +# - touch generated/api.rst +# - sphinx-build -M html . . +# +# - rm -rf /light_docs_dev/* +# - mv ./html/* /light_docs_dev/ +# +# --- +# +# kind: pipeline +# type: docker +# name: documentation — production +# node: +# environment: ryali +# trigger: +# event: +# - tag +# +# steps: +# - name: build and deploy +# image: documentation:latest +# pull: if-not-exists +# commands: +# - cd docs +# - mkdir generated +# - touch generated/changelogs.rst +# - touch generated/api.rst +# - sphinx-build -M html . . +# +# - rm -rf /light_docs/* +# - mv ./html/* /light_docs/ -- 2.45.3 From 308ac7836678b70613b3990f9f870912ce53f2e9 Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 18:31:50 +0330 Subject: [PATCH 2/8] wip --- tools/ci/amd64/gcc/valgrind.supp | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/tools/ci/amd64/gcc/valgrind.supp b/tools/ci/amd64/gcc/valgrind.supp index e37ff3b..b84834b 100644 --- a/tools/ci/amd64/gcc/valgrind.supp +++ b/tools/ci/amd64/gcc/valgrind.supp @@ -1,3 +1,54 @@ +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:malloc + fun:_dl_close_worker + fun:_dl_close + fun:_dl_catch_exception + fun:_dl_catch_error + fun:_dlerror_run +} +{ + + Memcheck:Leak + match-leak-kinds: definite + fun:malloc + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + fun:~Swapchain +} +{ + + Memcheck:Leak + match-leak-kinds: indirect + fun:calloc + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + fun:~Swapchain +} { Memcheck:Param -- 2.45.3 From 46a75c7943cfa51435a81beede5091350efc1cfc Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 18:34:58 +0330 Subject: [PATCH 3/8] wip --- tools/ci/amd64/gcc/valgrind.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/amd64/gcc/valgrind.sh b/tools/ci/amd64/gcc/valgrind.sh index 18ad2ff..b8928b0 100755 --- a/tools/ci/amd64/gcc/valgrind.sh +++ b/tools/ci/amd64/gcc/valgrind.sh @@ -18,7 +18,7 @@ cmake . \ -DCMAKE_LINKER_TYPE=MOLD \ -DENABLE_UNIT_TESTS=ON \ -DCMAKE_BUILD_TYPE=Release \ --DCMAKE_CXX_FLAGS="-std=c++23 -g -fno-omit-frame-pointer" \ +-DCMAKE_CXX_FLAGS="-std=c++23 -fno-omit-frame-pointer -fno-common -g" \ && cmake --build ./build -j `nproc` for test in $(find ./build -type f -name '*_tests' -executable); do -- 2.45.3 From 288429d1f354e1000df58bfe42f0ab53d8eed385 Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 18:52:36 +0330 Subject: [PATCH 4/8] wip --- tools/ci/amd64/gcc/valgrind.sh | 4 ++-- tools/ci/amd64/gcc/valgrind.supp | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/tools/ci/amd64/gcc/valgrind.sh b/tools/ci/amd64/gcc/valgrind.sh index b8928b0..174e020 100755 --- a/tools/ci/amd64/gcc/valgrind.sh +++ b/tools/ci/amd64/gcc/valgrind.sh @@ -17,9 +17,9 @@ cmake . \ -GNinja \ -DCMAKE_LINKER_TYPE=MOLD \ -DENABLE_UNIT_TESTS=ON \ --DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_CXX_FLAGS="-std=c++23 -fno-omit-frame-pointer -fno-common -g" \ -&& cmake --build ./build -j `nproc` +&& cmake --build ./build --target='renderer_tests' -j `nproc` for test in $(find ./build -type f -name '*_tests' -executable); do echo "Running $test" diff --git a/tools/ci/amd64/gcc/valgrind.supp b/tools/ci/amd64/gcc/valgrind.supp index b84834b..ede8f11 100644 --- a/tools/ci/amd64/gcc/valgrind.supp +++ b/tools/ci/amd64/gcc/valgrind.supp @@ -1,3 +1,40 @@ +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_strdup + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:loader_icd_scan + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:terminator_EnumerateInstanceExtensionProperties + fun:vkEnumerateInstanceExtensionProperties +} +{ + + Memcheck:Cond + obj:/usr/lib/libnvidia-glvkspirv.so.580.95.05 + obj:/usr/lib/libnvidia-glvkspirv.so.580.95.05 + obj:/usr/lib/libnvidia-glvkspirv.so.580.95.05 + fun:_nv002nvvm +} { Memcheck:Leak -- 2.45.3 From 05629242ad794852d94b2feebed2fcad29d624d7 Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 18:57:21 +0330 Subject: [PATCH 5/8] wip --- tools/ci/amd64/gcc/valgrind.supp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/ci/amd64/gcc/valgrind.supp b/tools/ci/amd64/gcc/valgrind.supp index ede8f11..41c5ba7 100644 --- a/tools/ci/amd64/gcc/valgrind.supp +++ b/tools/ci/amd64/gcc/valgrind.supp @@ -1,3 +1,22 @@ +{ + + Memcheck:Leak + match-leak-kinds: definite + fun:malloc + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + fun:_ZNK2lt8renderer2vk6Device17destroy_swapchainEP16VkSwapchainKHR_T { Memcheck:Leak -- 2.45.3 From de8bf691dfa059a6105af87b00bee2ab58103b08 Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 19:02:08 +0330 Subject: [PATCH 6/8] wip --- tools/ci/amd64/gcc/valgrind.supp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ci/amd64/gcc/valgrind.supp b/tools/ci/amd64/gcc/valgrind.supp index 41c5ba7..f29a61e 100644 --- a/tools/ci/amd64/gcc/valgrind.supp +++ b/tools/ci/amd64/gcc/valgrind.supp @@ -17,6 +17,7 @@ obj:* obj:* fun:_ZNK2lt8renderer2vk6Device17destroy_swapchainEP16VkSwapchainKHR_T +} { Memcheck:Leak -- 2.45.3 From 8d386b99a336968dc265772afee274e8a49214a4 Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 19:08:59 +0330 Subject: [PATCH 7/8] wip --- tools/ci/amd64/gcc/valgrind.sh | 4 ++-- tools/ci/amd64/gcc/valgrind.supp | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/tools/ci/amd64/gcc/valgrind.sh b/tools/ci/amd64/gcc/valgrind.sh index 174e020..b8928b0 100755 --- a/tools/ci/amd64/gcc/valgrind.sh +++ b/tools/ci/amd64/gcc/valgrind.sh @@ -17,9 +17,9 @@ cmake . \ -GNinja \ -DCMAKE_LINKER_TYPE=MOLD \ -DENABLE_UNIT_TESTS=ON \ --DCMAKE_BUILD_TYPE=Debug \ +-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="-std=c++23 -fno-omit-frame-pointer -fno-common -g" \ -&& cmake --build ./build --target='renderer_tests' -j `nproc` +&& cmake --build ./build -j `nproc` for test in $(find ./build -type f -name '*_tests' -executable); do echo "Running $test" diff --git a/tools/ci/amd64/gcc/valgrind.supp b/tools/ci/amd64/gcc/valgrind.supp index f29a61e..7b2abb4 100644 --- a/tools/ci/amd64/gcc/valgrind.supp +++ b/tools/ci/amd64/gcc/valgrind.supp @@ -1,3 +1,22 @@ +{ + + Memcheck:Leak + match-leak-kinds: indirect + fun:calloc + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + fun:_ZNK2lt8renderer2vk6Device17destroy_swapchainEP16VkSwapchainKHR_T +} { Memcheck:Leak -- 2.45.3 From 912dcfc6fdfa41dd69aeea70ecda789adff777fb Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 19:11:41 +0330 Subject: [PATCH 8/8] wip --- .drone.yml | 248 ++++++++++++++++++++++++++--------------------------- 1 file changed, 124 insertions(+), 124 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2c9a1ce..9abc962 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,21 +1,21 @@ -# --- -# kind: pipeline -# type: exec -# name: amd64 — msvc -# trigger: -# branch: -# - main -# platform: -# os: windows -# arch: amd64 -# -# steps: -# - name: unit tests -# shell: powershell -# commands: -# - ./tools/ci/amd64/msvc/unit_tests.ps1 -# -# --- +--- +kind: pipeline +type: exec +name: amd64 — msvc +trigger: + branch: + - main +platform: + os: windows + arch: amd64 + +steps: +- name: unit tests + shell: powershell + commands: + - ./tools/ci/amd64/msvc/unit_tests.ps1 + +--- kind: pipeline type: docker name: amd64 — gcc @@ -24,11 +24,11 @@ trigger: - main steps: -# - name: unit tests -# image: ci:latest -# pull: if-not-exists -# commands: -# - ./tools/ci/amd64/gcc/unit_tests.sh +- name: unit tests + image: ci:latest + pull: if-not-exists + commands: + - ./tools/ci/amd64/gcc/unit_tests.sh - name: valgrind image: ci:latest @@ -36,104 +36,104 @@ steps: commands: - ./tools/ci/amd64/gcc/valgrind.sh -# --- -# kind: pipeline -# type: docker -# name: amd64 — clang -# trigger: -# branch: -# - main -# -# steps: -# - name: code coverage -# image: ci:latest -# pull: if-not-exists -# environment: -# CODECOV_TOKEN: -# from_secret: CODECOV_TOKEN -# commands: -# - ./tools/ci/amd64/clang/coverage.sh -# -# - name: leak sanitizer -# image: ci:latest -# pull: if-not-exists -# commands: -# - ./tools/ci/amd64/clang/lsan.sh -# -# - name: memory sanitizer -# image: ci:latest -# pull: if-not-exists -# commands: -# - ./tools/ci/amd64/clang/msan.sh -# -# --- -# kind: pipeline -# type: docker -# name: static analysis -# trigger: -# branch: -# - main -# -# steps: -# - name: clang tidy -# image: ci:latest -# pull: if-not-exists -# privileged: true -# commands: -# - ./tools/ci/static_analysis/clang_tidy.sh -# -# - name: clang format -# image: ci:latest -# pull: if-not-exists -# commands: -# - ./tools/ci/static_analysis/clang_format.sh -# -# --- -# kind: pipeline -# type: docker -# name: documentation — development -# node: -# environment: ryali -# trigger: -# branch: -# - main -# -# steps: -# - name: build and deploy -# image: documentation:latest -# pull: if-not-exists -# commands: -# - pwd -# - cd docs -# - mkdir generated -# - touch generated/changelogs.rst -# - touch generated/api.rst -# - sphinx-build -M html . . -# -# - rm -rf /light_docs_dev/* -# - mv ./html/* /light_docs_dev/ -# -# --- -# -# kind: pipeline -# type: docker -# name: documentation — production -# node: -# environment: ryali -# trigger: -# event: -# - tag -# -# steps: -# - name: build and deploy -# image: documentation:latest -# pull: if-not-exists -# commands: -# - cd docs -# - mkdir generated -# - touch generated/changelogs.rst -# - touch generated/api.rst -# - sphinx-build -M html . . -# -# - rm -rf /light_docs/* -# - mv ./html/* /light_docs/ +--- +kind: pipeline +type: docker +name: amd64 — clang +trigger: + branch: + - main + +steps: +- name: code coverage + image: ci:latest + pull: if-not-exists + environment: + CODECOV_TOKEN: + from_secret: CODECOV_TOKEN + commands: + - ./tools/ci/amd64/clang/coverage.sh + +- name: leak sanitizer + image: ci:latest + pull: if-not-exists + commands: + - ./tools/ci/amd64/clang/lsan.sh + +- name: memory sanitizer + image: ci:latest + pull: if-not-exists + commands: + - ./tools/ci/amd64/clang/msan.sh + +--- +kind: pipeline +type: docker +name: static analysis +trigger: + branch: + - main + +steps: +- name: clang tidy + image: ci:latest + pull: if-not-exists + privileged: true + commands: + - ./tools/ci/static_analysis/clang_tidy.sh + +- name: clang format + image: ci:latest + pull: if-not-exists + commands: + - ./tools/ci/static_analysis/clang_format.sh + +--- +kind: pipeline +type: docker +name: documentation — development +node: + environment: ryali +trigger: + branch: + - main + +steps: +- name: build and deploy + image: documentation:latest + pull: if-not-exists + commands: + - pwd + - cd docs + - mkdir generated + - touch generated/changelogs.rst + - touch generated/api.rst + - sphinx-build -M html . . + + - rm -rf /light_docs_dev/* + - mv ./html/* /light_docs_dev/ + +--- + +kind: pipeline +type: docker +name: documentation — production +node: + environment: ryali +trigger: + event: + - tag + +steps: +- name: build and deploy + image: documentation:latest + pull: if-not-exists + commands: + - cd docs + - mkdir generated + - touch generated/changelogs.rst + - touch generated/api.rst + - sphinx-build -M html . . + + - rm -rf /light_docs/* + - mv ./html/* /light_docs/ -- 2.45.3