pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29870 )
Change subject: osmux: Generate AMR OA payload paddings bits as 0
......................................................................
osmux: Generate AMR OA payload paddings bits as 0
Some AMR format's payload size doesn't necessarily fit octet boundaries.
When AMR octet-aligned is used, padding bits are appended at the end to
fill the octet.
Until this patch, the padding bits where set with whatever payload fill
pattern was provided. Instead of doing so, better set the padding bits
to 0 to avoid conflicts when checking the received paytload later on,
since those bits are potentially be going to be set to 0 (eg when
converting to bandwidth-efficient).
Related: SYS#6161
Change-Id: I5bc68eb05c2f5500a259f4c73d14b51794f7f078
---
M library/AMR_Types.ttcn
M library/OSMUX_Emulation.ttcn
2 files changed, 17 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/70/29870/1
diff --git a/library/AMR_Types.ttcn b/library/AMR_Types.ttcn
index b4f044d..5586a20 100644
--- a/library/AMR_Types.ttcn
+++ b/library/AMR_Types.ttcn
@@ -33,7 +33,13 @@
const integer c_AMRFT_len[9] := {12, 13, 15, 17, 19, 20, 26, 31, 5};
function f_amrft_payload_len(INT4b amr_ft) return integer {
- return c_AMRFT_len[amr_ft];
+ return c_AMRFT_len[amr_ft];
+}
+
+const integer c_AMRFT_bits_len[9] := {95, 103, 118, 134, 148, 159, 204, 244, 39};
+
+function f_amrft_payload_bits_len(INT4b amr_ft) return integer {
+ return c_AMRFT_bits_len[amr_ft];
}
type record RTP_AMR_Hdr {
diff --git a/library/OSMUX_Emulation.ttcn b/library/OSMUX_Emulation.ttcn
index c6999de..25a7745 100644
--- a/library/OSMUX_Emulation.ttcn
+++ b/library/OSMUX_Emulation.ttcn
@@ -374,12 +374,20 @@
log2str("No Space in TxHandleList for ", hdl.cid));
}
+/* Generatea correctly-sized AMR payload based on amr_ft, using tx_fixed_payload as a fill pattern. */
function f_osmux_gen_expected_rx_rtp_payload(INT4b amr_ft, octetstring tx_fixed_payload) return octetstring {
+ var integer payload_len_bits;
var integer payload_len;
+ var bitstring payload_truncated_bits;
var octetstring payload_truncated;
- var integer i;
+
+ /* Generate the AMR payload as a bitstring, since some formats dont'e dn up in octet boundary: */
+ payload_len_bits := f_amrft_payload_bits_len(amr_ft);
+ payload_truncated_bits := substr(oct2bit(tx_fixed_payload), 0, payload_len_bits);
+
+ /* Now convert it as an octet string filling final padding with zeroes: */
payload_len := f_amrft_payload_len(amr_ft);
- payload_truncated := substr(tx_fixed_payload, 0, payload_len);
+ payload_truncated := bit2oct(f_pad_bit(payload_truncated_bits, payload_len*8, '0'B));
return payload_truncated;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29870
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I5bc68eb05c2f5500a259f4c73d14b51794f7f078
Gerrit-Change-Number: 29870
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/29869 )
Change subject: jobs: add osmocom-obs-check-builders
......................................................................
jobs: add osmocom-obs-check-builders
Add a job that checks if the amount of connected builders to the OBS
server matches what we expect. This should prevent what we had today,
that it only was noticed by chance several days after all builders
failed to connect and the packages were outdated since then.
I'm not sure if there is a proper api to do this check, but I don't
expect the string we check for to change often so this should work fine.
Change-Id: I6e7c1f206551722d6bfe1631b9c1da8d34d85ba8
---
A jobs/osmocom-obs-check-builders.yml
A scripts/obs/check_builders.sh
2 files changed, 39 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/69/29869/1
diff --git a/jobs/osmocom-obs-check-builders.yml b/jobs/osmocom-obs-check-builders.yml
new file mode 100644
index 0000000..f378ec1
--- /dev/null
+++ b/jobs/osmocom-obs-check-builders.yml
@@ -0,0 +1,28 @@
+---
+- project:
+ name: Osmocom_OBS_check_builders
+ jobs:
+ - Osmocom_OBS_check_builders
+
+- job-template:
+ name: 'Osmocom_OBS_check_builders'
+ project-type: freestyle
+ defaults: global
+ description: |
+ Verify that the expected amount of builders are connected to
+ obs.osmocom.org.
+ builders:
+ - shell: |
+ scripts/obs/check_builders.sh
+ scm:
+ - git:
+ branches:
+ - 'origin/master'
+ url: https://gerrit.osmocom.org/osmo-ci
+ triggers:
+ - timed: "@hourly"
+ node: obs
+ publishers:
+ - email:
+ notify-every-unstable-build: true
+ recipients: 'jenkins-notifications(a)lists.osmocom.org'
diff --git a/scripts/obs/check_builders.sh b/scripts/obs/check_builders.sh
new file mode 100755
index 0000000..609c467
--- /dev/null
+++ b/scripts/obs/check_builders.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -ex
+count=14
+wget -q https://obs.osmocom.org -O index.html
+
+if ! grep -q " of $count build hosts" index.html; then
+ grep "build hosts" index.html
+ set +x
+ echo
+ echo "ERROR: expected $count builders to be connected to OBS!"
+ echo
+fi
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/29869
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I6e7c1f206551722d6bfe1631b9c1da8d34d85ba8
Gerrit-Change-Number: 29869
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/o…
Package network:osmocom:nightly/osmo-bsc-nat failed to build in Raspbian_11/armv7l
Check out the package for editing:
osc checkout network:osmocom:nightly osmo-bsc-nat
Last lines of build log:
[ 434s] update-alternatives: using /usr/share/docutils/scripts/python3/rst2xml to provide /usr/bin/rst2xml (rst2xml) in auto mode
[ 434s] update-alternatives: using /usr/share/docutils/scripts/python3/rstpep2html to provide /usr/bin/rstpep2html (rstpep2html) in auto mode
[ 435s] [450/483] installing python3-reportlab-3.5.59-2
[ 438s] [451/483] installing g++-4:10.2.1-1+rpi1
[ 438s] update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
[ 438s] [452/483] installing libosmo-netif-dev-1.2.0.61.a07c.202210250053
[ 439s] [453/483] installing mount-2.36.1-8+deb11u1
[ 439s] [454/483] installing texlive-latex-extra-2020.20210202-3
[ 447s] [455/483] installing debhelper-13.3.4
[ 448s] [456/483] installing bash-5.1-2+deb11u1
[ 452s] update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
[ 452s] [457/483] installing libosmo-sigtran-dev-1.6.0.14.71fc.202210250053
[ 453s] [458/483] installing build-essential-12.9
[ 453s] [459/483] installing python3-blockdiag-2.0.1+dfsg-1
[ 454s] [460/483] installing texlive-xetex-2020.20210202-3
[ 455s] dpkg-deb (subprocess): decompressing archive '.init_b_cache/texlive-xetex.deb' (size=12542520) member 'data.tar': lzma error: compressed data is corrupt
[ 455s] dpkg-deb: error: <decompress> subprocess returned error exit status 2
[ 455s] dpkg: error processing archive .init_b_cache/texlive-xetex.deb (--install):
[ 455s] cannot copy extracted data for './usr/share/doc/texlive-doc/xelatex/businesscard-qrcode/screenshots/peter-muster-example-company-zuerich.jpg' to '/usr/share/doc/texlive-doc/xelatex/businesscard-qrcode/screenshots/peter-muster-example-company-zuerich.jpg.dpkg-new': unexpected end of file or stream
[ 455s] Errors were encountered while processing:
[ 455s] .init_b_cache/texlive-xetex.deb
[ 455s] exit ...
[ 455s] ### VM INTERACTION START ###
[ 457s] [ 299.747483] sysrq: SysRq : Power Off
[ 457s] [ 299.749125] reboot: Power down
[ 458s] ### VM INTERACTION END ###
[ 458s]
[ 458s] armbuild02 failed "build osmo-bsc-nat_0.1.0.202210250053.dsc" at Tue Oct 25 05:05:05 UTC 2022.
[ 458s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/o…
Package network:osmocom:nightly/osmo-msc failed to build in Raspbian_10/armv7l
Check out the package for editing:
osc checkout network:osmocom:nightly osmo-msc
Last lines of build log:
[ 346s] update-alternatives: using /usr/share/docutils/scripts/python3/rst2pseudoxml to provide /usr/bin/rst2pseudoxml (rst2pseudoxml) in auto mode
[ 346s] update-alternatives: using /usr/share/docutils/scripts/python3/rst2s5 to provide /usr/bin/rst2s5 (rst2s5) in auto mode
[ 346s] update-alternatives: using /usr/share/docutils/scripts/python3/rst2xetex to provide /usr/bin/rst2xetex (rst2xetex) in auto mode
[ 346s] update-alternatives: using /usr/share/docutils/scripts/python3/rst2xml to provide /usr/bin/rst2xml (rst2xml) in auto mode
[ 346s] update-alternatives: using /usr/share/docutils/scripts/python3/rstpep2html to provide /usr/bin/rstpep2html (rstpep2html) in auto mode
[ 347s] [441/485] installing python3-reportlab-3.5.13-1+deb10u1
[ 350s] [442/485] installing sysvinit-utils-2.93-8
[ 350s] [443/485] installing libosmo-netif-dev-1.2.0.61.a07c.202210250053
[ 351s] [444/485] installing mount-2.33.1-0.1
[ 351s] [445/485] installing gpg-wks-client-2.2.12-1+rpi1+deb10u1
[ 351s] [446/485] installing libpangocairo-1.0-0-1.42.4-8~deb10u1
[ 352s] [447/485] installing texlive-binaries-2018.20181218.49446-1
[ 360s] update-alternatives: using /usr/bin/xdvi-xaw to provide /usr/bin/xdvi.bin (xdvi.bin) in auto mode
[ 360s] update-alternatives: using /usr/bin/bibtex.original to provide /usr/bin/bibtex (bibtex) in auto mode
[ 361s] [448/485] installing bash-5.0-4
[ 361s] dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
[ 361s] dpkg-deb: error: <decompress> subprocess returned error exit status 2
[ 361s] dpkg: error processing archive .init_b_cache/bash.deb (--install):
[ 361s] cannot copy extracted data for './bin/bash' to '/bin/bash.dpkg-new': unexpected end of file or stream
[ 361s] Errors were encountered while processing:
[ 361s] .init_b_cache/bash.deb
[ 361s] exit ...
[ 361s] ### VM INTERACTION START ###
[ 362s] [ 286.655056] sysrq: SysRq : Power Off
[ 362s] [ 286.656904] reboot: Power down
[ 362s] ### VM INTERACTION END ###
[ 362s]
[ 363s] armbuild02 failed "build osmo-msc_1.9.0.34.bb624.202210250053.dsc" at Tue Oct 25 04:54:28 UTC 2022.
[ 363s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)