osmith has uploaded a new patch set (#2). ( https://gerrit.osmocom.org/c/osmo-trx/+/38114?usp=email )
Change subject: contrib/jenkins: remove broken chroot + qemu code
......................................................................
contrib/jenkins: remove broken chroot + qemu code
The mirror where it would download images from is not online anymore,
and it looks like this whole block has not been executed in years (we
always test the arm builds on native arm machines nowadays, and run all
builds in docker).
Replace the whole block with a simple check that ensures when arm flags
are used, that the build is actually running on an arm machine.
Change-Id: I2e204e4a0a7dfcf32f011ed6fb403b564f8155a7
---
M contrib/jenkins.sh
1 file changed, 13 insertions(+), 54 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/14/38114/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/38114?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I2e204e4a0a7dfcf32f011ed6fb403b564f8155a7
Gerrit-Change-Number: 38114
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/38113?usp=email )
Change subject: contrib/jenkins: remove duplicate "set -ex"
......................................................................
contrib/jenkins: remove duplicate "set -ex"
There is already a "set -ex" on top of the file, no need to set it
again.
Change-Id: Ia071f1f1d37cd1936d6a4001edfe2c5c335787b8
---
M contrib/jenkins.sh
1 file changed, 0 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/13/38113/1
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 73d3ffd..dc04540 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -62,8 +62,6 @@
fi
fi
-set -ex
-
if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then
echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"
exit 2
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/38113?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: Ia071f1f1d37cd1936d6a4001edfe2c5c335787b8
Gerrit-Change-Number: 38113
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/38114?usp=email )
Change subject: contrib/jenkins: remove broken chroot + qemu code
......................................................................
contrib/jenkins: remove broken chroot + qemu code
The mirror where it would download images from is not online anymore,
and it looks like this whole block has not been executed in years (we
always test the arm builds on native arm machines nowadays, and run all
builds in docker).
Replace the whole block with a simple check that ensures when arm flags
are used, that the build is actually running on an arm machine.
Related: OS#6549
Change-Id: I2e204e4a0a7dfcf32f011ed6fb403b564f8155a7
---
M contrib/jenkins.sh
1 file changed, 13 insertions(+), 52 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/14/38114/1
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index dc04540..8aeeb41 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -9,58 +9,19 @@
#
set -ex
-substr() { [ -z "${2##*$1*}" ]; }
-
-#apt-get install qemu qemu-user-static qemu-system-arm debootstrap fakeroot proot
-mychroot_nocwd() {
- # LC_ALL + LANGUAGE set to avoid lots of print errors due to locale not being set inside container
- # PATH is needed to be able to reach binaries like ldconfig without logging in to root, which adds the paths to PATH.
- # PROOT_NO_SECCOMP is required due to proot bug #106
- LC_ALL=C LANGUAGE=C PATH="$PATH:/usr/sbin:/sbin" PROOT_NO_SECCOMP=1 proot -r "$ROOTFS" -w / -b /proc --root-id -q qemu-arm-static "$@"
-}
-
-mychroot() {
- mychroot_nocwd -w / "$@"
-}
-
-if [ -z "${INSIDE_CHROOT}" ]; then
-
- # Only use ARM chroot if host is not ARM and the target is ARM:
- if ! $(substr "arm" "$(uname -m)") && [ "x${INSTR}" = "x--with-neon" -o "x${INSTR}" = "x--with-neon-vfpv4" ]; then
-
- OSMOTRX_DIR="$PWD" # we assume we are called as contrib/jenkins.sh
- ROOTFS_PREFIX="${ROOTFS_PREFIX:-$HOME}"
- ROOTFS="${ROOTFS_PREFIX}/qemu-img"
- mkdir -p "${ROOTFS_PREFIX}"
-
- # Prepare chroot:
- if [ ! -d "$ROOTFS" ]; then
- mkdir -p "$ROOTFS"
- if [ "x${USE_DEBOOTSTRAP}" = "x1" ]; then
- fakeroot qemu-debootstrap --foreign --include="linux-image-armmp-lpae" --arch=armhf stretch "$ROOTFS" http://ftp.de.debian.org/debian/
- # Hack to avoid debootstrap trying to mount /proc, as it will fail with "no permissions" and anyway proot takes care of it:
- sed -i "s/setup_proc//g" "$ROOTFS/debootstrap/suite-script"
- mychroot /debootstrap/debootstrap --second-stage --verbose http://ftp.de.debian.org/debian/
- else
- YESTERDAY=$(python -c 'import datetime ; print((datetime.datetime.now() - datetime.timedelta(days=1)).strftime("%Y%m%d"))')
- wget -nc -q "https://uk.images.linuxcontainers.org/images/debian/stretch/armhf/default/$…"
- tar -xf rootfs.tar.xz -C "$ROOTFS/" || true
- echo "nameserver 8.8.8.8" > "$ROOTFS/etc/resolv.conf"
- fi
- mychroot -b /dev apt-get update
- mychroot apt-get -y install build-essential dh-autoreconf pkg-config libuhd-dev libusb-1.0-0-dev libusb-dev git libtalloc-dev libgnutls28-dev stow
- fi
- # Run jenkins.sh inside the chroot:
- INSIDE_CHROOT=1 mychroot_nocwd \
- -w /osmo-trx \
- -b "$OSMOTRX_DIR:/osmo-trx" \
- -b "$(which osmo-clean-workspace.sh):/usr/bin/osmo-clean-workspace.sh" \
- -b "$(which osmo-build-dep.sh):/usr/bin/osmo-build-dep.sh" \
- -b "$(which osmo-deps.sh):/usr/bin/osmo-deps.sh" \
- ./contrib/jenkins.sh
- exit 0
- fi
-fi
+case "$INSTR" in
+ "--with-neon"*)
+ case "$(arch)" in
+ arm*)
+ ;;
+ *)
+ set +x
+ echo "ERROR: trying to build with INSTR=$INSTR but not running on a 32-bit arm machine! (arch=$(arch))"
+ exit 1
+ ;;
+ esac
+ ;;
+esac
if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then
echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/38114?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I2e204e4a0a7dfcf32f011ed6fb403b564f8155a7
Gerrit-Change-Number: 38114
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/38097?usp=email )
Change subject: …gerrit/comment_generate: make error more helpful
......................................................................
…gerrit/comment_generate: make error more helpful
The start of a stage may also not be found if the related -build job was
not deployed. This was not obvious before, add a hint to the error
message.
Change-Id: Iec5f4cde53b763bb6c814934abcc83e39518566f
---
M scripts/jenkins-gerrit/comment_generate.py
1 file changed, 12 insertions(+), 5 deletions(-)
Approvals:
laforge: Looks good to me, but someone else must approve
osmith: Looks good to me, approved
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
diff --git a/scripts/jenkins-gerrit/comment_generate.py b/scripts/jenkins-gerrit/comment_generate.py
index e127c4c..a2aec0e 100755
--- a/scripts/jenkins-gerrit/comment_generate.py
+++ b/scripts/jenkins-gerrit/comment_generate.py
@@ -6,6 +6,7 @@
import json
import re
import urllib.request
+import sys
jenkins_url = "https://jenkins.osmocom.org"
re_start_build = re.compile("Starting building: gerrit-[a-zA-Z-_0-9]* #[0-9]*")
@@ -94,11 +95,17 @@
if stage.startswith("comment_"):
# Jobs that run this script, not relevant for summary
continue
- assert stage in ret, f"found result for stage {stage}, but" \
- " didn't find where it was started. The" \
- " re_start_build regex probably needs to be adjusted" \
- " to match the related gerrit-*-build job.\n\n" \
- f"ret: {ret}"
+ if stage not in ret:
+ print(f"URL: {url}")
+ print()
+ print(f"ERROR: found result for stage {stage}, but didn't"
+ " find where it was started. Possible reasons:")
+ print("* The re_stat_build regex needs to be adjusted"
+ " to match the related gerrit-*-build job")
+ print("* The gerrit-*-build job has not been deployed,"
+ " and therefore could not be started by the"
+ " gerrit-* job.")
+ sys.exit(1)
ret[stage]["passed"] = (match.group(2) == "SUCCESS")
return ret
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/38097?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: Iec5f4cde53b763bb6c814934abcc83e39518566f
Gerrit-Change-Number: 38097
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Attention is currently required from: fixeria.
osmith has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/38097?usp=email )
Change subject: …gerrit/comment_generate: make error more helpful
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
File scripts/jenkins-gerrit/comment_generate.py:
https://gerrit.osmocom.org/c/osmo-ci/+/38097/comment/18c2511a_ee801563?usp=… :
PS1, Line 99: print
> Maybe use a multi-line f-string here? […]
AFAIK this can't be used without losing indentation, so I'll keep it as is.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/38097?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Iec5f4cde53b763bb6c814934abcc83e39518566f
Gerrit-Change-Number: 38097
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 12 Sep 2024 07:30:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: laforge, lynxis lazus.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-hlr/+/38112?usp=email
to look at the new patch set (#2).
Change subject: RFC: add gsup_client_mux from osmo-msc
......................................................................
RFC: add gsup_client_mux from osmo-msc
To mux multiple clients into a single gsup connection.
Change license to LGPL?
The libvlr is using it, but it seems a good idea to merge it into gsupclient.
Change-Id: I916c1bb6cfc48f92fc5db2b5c914eb1b4e25fa7f
---
M include/Makefile.am
A include/osmocom/gsupclient/gsup_client_mux.h
M src/gsupclient/Makefile.am
A src/gsupclient/gsup_client_mux.c
4 files changed, 227 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/12/38112/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/38112?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: I916c1bb6cfc48f92fc5db2b5c914eb1b4e25fa7f
Gerrit-Change-Number: 38112
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Jenkins Builder has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-hlr/+/38112?usp=email )
Change subject: RFC: add gsup_client_mux from osmo-msc
......................................................................
Patch Set 1:
(3 comments)
File include/osmocom/gsupclient/gsup_client_mux.h:
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-18480):
https://gerrit.osmocom.org/c/osmo-hlr/+/38112/comment/c9ddf4dc_21075bbf?usp… :
PS1, Line 9: int (* func )(struct gsup_client_mux *gcm, void *data, const struct osmo_gsup_message *gsup_msg);
Unnecessary space before function pointer name
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-18480):
https://gerrit.osmocom.org/c/osmo-hlr/+/38112/comment/fc64d02c_bc7acbd8?usp… :
PS1, Line 9: int (* func )(struct gsup_client_mux *gcm, void *data, const struct osmo_gsup_message *gsup_msg);
Unnecessary space after function pointer name
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-18480):
https://gerrit.osmocom.org/c/osmo-hlr/+/38112/comment/45d51e25_89421e5e?usp… :
PS1, Line 9: int (* func )(struct gsup_client_mux *gcm, void *data, const struct osmo_gsup_message *gsup_msg);
space prohibited before that close parenthesis ')'
--
To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/38112?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: I916c1bb6cfc48f92fc5db2b5c914eb1b4e25fa7f
Gerrit-Change-Number: 38112
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Thu, 12 Sep 2024 01:26:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No