[neon/snap-packaging/kde-qt6-core-sdk/work.core24-arm64-build-test] debian: limit the cores on arm64 as well

Carlos De Maine null at kde.org
Tue Jul 22 23:10:08 BST 2025


Git commit f219419b69ecc24d85907a7717711c531b960611 by Carlos De Maine.
Committed on 22/07/2025 at 22:10.
Pushed by carlosdem into branch 'work.core24-arm64-build-test'.

limit the cores on arm64 as well

M  +9    -6    debian/snap-snapcraft-core-lxd-proto.yml

https://invent.kde.org/neon/snap-packaging/kde-qt6-core-sdk/-/commit/f219419b69ecc24d85907a7717711c531b960611

diff --git a/debian/snap-snapcraft-core-lxd-proto.yml b/debian/snap-snapcraft-core-lxd-proto.yml
index ad2c41a..5a95c28 100644
--- a/debian/snap-snapcraft-core-lxd-proto.yml
+++ b/debian/snap-snapcraft-core-lxd-proto.yml
@@ -13,7 +13,7 @@ snap_snapcraft_core_lxd_proto:
     # 24 of the available 32 cores otherwise qt-webengine will OOM. 
     - |
       if [ "$KDE_SNAP_MODULE_NAME" == "kde-qt6-core-sdk" ]; then
-        lxc profile set default --project snapcraft limits.cpu=12
+        lxc profile set default --project snapcraft limits.cpu=24
       fi
 
   script:
@@ -29,9 +29,7 @@ snap_snapcraft_core_lxd_proto:
     # copy the snap to the artifacts dir
     - cp -vf ./*.snap  $CI_PROJECT_DIR/kde-ci-packages/
     - echo $KDE_SNAP_BRANCH >> deploy.env
-  allow_failure: true
-  interruptible: true
-  after_script:
+  fter_script:
     - export KDE_SNAP_BRANCH=$(cat deploy.env)
     - |
       # set the channel for the snap dependent on which branch we are building
@@ -69,6 +67,13 @@ snap_snapcraft_core_lxd_proto_arm64:
   stage: deploy
   inherit:
     default: true
+  before_script:  
+    # of we are building the kde-qt6-core-sdk snap ,  ensure that lxc utilises only 
+    # 24 of the available 32 cores otherwise qt-webengine will OOM. 
+    - |
+      if [ "$KDE_SNAP_MODULE_NAME" == "kde-qt6-core-sdk" ]; then
+        lxc profile set default --project snapcraft limits.cpu=24
+      fi
   script:
     - echo number of cores =
     - nproc
@@ -82,8 +87,6 @@ snap_snapcraft_core_lxd_proto_arm64:
     # copy the snap to the artifacts dir
     - cp -vf ./*.snap  $CI_PROJECT_DIR/kde-ci-packages/
     - echo $KDE_SNAP_BRANCH >> deploy.env
-  allow_failure: true
-  interruptible: true
   after_script:
     - export KDE_SNAP_BRANCH=$(cat deploy.env)
     - |


More information about the Neon-commits mailing list