osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/44015?usp=email )

Change subject: jobs/osmocom-obs-nightly-asan-open5gs: new job
......................................................................

jobs/osmocom-obs-nightly-asan-open5gs: new job

Change-Id: I88dccf68a6f0c2f0186ec007f058f915981f8fda
---
A jobs/osmocom-obs-nightly-asan-open5gs.yml
A scripts/obs/data/open5gs/0001-debian-build-with-asan.patch
2 files changed, 97 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve




diff --git a/jobs/osmocom-obs-nightly-asan-open5gs.yml 
b/jobs/osmocom-obs-nightly-asan-open5gs.yml
new file mode 100644
index 0000000..86616b2
--- /dev/null
+++ b/jobs/osmocom-obs-nightly-asan-open5gs.yml
@@ -0,0 +1,69 @@
+- job:
+    name: 'Osmocom_OBS_nightly_asan_open5gs'
+    project-type: freestyle
+    concurrent: false
+    defaults: global
+    description: |
+      Build a debian source package for open5gs with asan enabled and upload it
+      to osmocom:nightly:asan
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 30
+    node: obs
+    parameters:
+      - string:
+          name: BRANCH_CI
+          description: osmo-ci.git branch
+          default: 'master'
+      - string:
+          name: BRANCH_OPEN5GS
+          description: open5gs.git branch
+          default: 'main'
+      - string:
+          name: EMAIL_NOTIFICATIONS
+          description: For failed build notifications, set to empty to disable
+          default: '[email protected]'
+    builders:
+      - shell: |
+          mkdir -p scripts/obs/_cache
+
+          git \
+            -C scripts/obs/_cache \
+            clone \
+            -b "$BRANCH_OPEN5GS" \
+            https://github.com/open5gs/open5gs
+
+          patch \
+            scripts/obs/_cache/open5gs/debian/rules \
+            scripts/obs/data/open5gs/0001-debian-build-with-asan.patch
+
+          export PYTHONUNBUFFERED=1
+
+          ./scripts/obs/update_obs_project.py \
+            --apiurl https://obs.osmocom.org \
+            --conflict-pkgname "osmocom-nightly-asan" \
+            --docker \
+            --feed "nightly" \
+            --git-skip-checkout \
+            --git-skip-fetch \
+            --version-append "~asan" \
+            osmocom:nightly:asan \
+            open5gs
+
+          # Remove workspace on success to free up space
+          rm -rf "$WORKSPACE"
+    scm:
+      - git:
+          branches:
+            - '$BRANCH_CI'
+          url: https://gerrit.osmocom.org/osmo-ci
+          git-config-name: 'Jenkins Builder'
+          git-config-email: '[email protected]'
+    triggers:
+      - timed: "H 20 * * *"
+
+    publishers:
+      - email:
+          notify-every-unstable-build: true
+          recipients: '$EMAIL_NOTIFICATIONS'
diff --git a/scripts/obs/data/open5gs/0001-debian-build-with-asan.patch 
b/scripts/obs/data/open5gs/0001-debian-build-with-asan.patch
new file mode 100644
index 0000000..505a7c6
--- /dev/null
+++ b/scripts/obs/data/open5gs/0001-debian-build-with-asan.patch
@@ -0,0 +1,28 @@
+From 64fd1bc9f06a5c82ea3f950c344c02cae95dcb1d Mon Sep 17 00:00:00 2001
+From: Oliver Smith <[email protected]>
+Date: Fri, 30 Oct 2026 15:26:11 +0100
+Subject: [PATCH] debian: build with asan
+
+---
+ debian/rules | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/debian/rules b/debian/rules
+index bbfaa0423..f1f503e93 100755
+--- a/debian/rules
++++ b/debian/rules
+@@ -15,3 +15,11 @@ override_dh_install:
+
+ override_dh_auto_test:
+       cd obj-$(DEB_HOST_GNU_TYPE) && meson test -v --suite unit
++
++# Enable asan for osmocom:nightly:asan
++override_dh_auto_configure:
++      dh_auto_configure "$@" -- -Db_sanitize=address,undefined
++
++# Tests don't pass with asan
++override_dh_auto_test:
++      @echo "tests skipped"
+--
+2.53.0
+

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/44015?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I88dccf68a6f0c2f0186ec007f058f915981f8fda
Gerrit-Change-Number: 44015
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to