Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Try to limit the number of thread for ASAN builds on Linux
Dmitry Kazakov1d2c802e1494
diff --git a/build-tools/ci-scripts/build-plugins.py b/build-tools/ci-scripts/build-plugins.pyindex b82094b258..662daf331e 100644--- a/build-tools/ci-scripts/build-plugins.py+++ b/build-tools/ci-scripts/build-plugins.py@@ -26,6 +26,9 @@ if os.path.isdir(buildPath):os.makedirs(buildPath)cpuCount = int(multiprocessing.cpu_count())+if 'KRITACI_PARALLEL_JOBS' in os.environ:+ cpuCount = max(1, int(os.environ['KRITACI_PARALLEL_JOBS']))+useCcacheForBuilds = os.environ.pop('KDECI_INTERNAL_USE_CCACHE') == 'True'cmakeCommand = [diff --git a/build-tools/ci-scripts/linux.yml b/build-tools/ci-scripts/linux.ymlindex ff7cc4b0e9..a32706f5d4 100644--- a/build-tools/ci-scripts/linux.yml+++ b/build-tools/ci-scripts/linux.yml@@ -107,6 +107,8 @@ linux-asan-weekly:- .ci-artifacts-with-packages-mixininterruptible: falsevariables:+ # TODO: Currently building gmic does not respect job count limitations, which causes it to be oomkilled+ KRITACI_SKIP_BUILD_3RDPARTY_PLUGINS: TrueKDECI_ONLY_BUILD: "True"KDECI_BUILD_TYPE: RelWithDebInfoKDECI_EXTRA_CMAKE_ARGS: >@@ -118,6 +120,9 @@ linux-asan-weekly:ASAN_OPTIONS: 'new_delete_type_mismatch=0:detect_leaks=0:halt_on_error=0'KRITACI_ALLOW_NO_PYQT: TrueLD_PRELOAD: /usr/lib/gcc/x86_64-linux-gnu/13/libasan.so+ # Krita's build process gets killed by OOM killer when building with ASAN,+ # so let's try just to reduce the number of threads to 1+ KRITACI_PARALLEL_JOBS: 1linux-asan-manual:extends: