Repository navigation
fix(container): use tested Ubuntu 26.04 OBEX runtime and source gates - #261
Conversation
zackb
left a comment
There was a problem hiding this comment.
Thanks for keeping this updated. Can we just bump the container version and ditch all the scripts? I don't want to download all the obex source during the build to for a check that seems to fall out of date quickly.
| --build-arg TETHER_VERSION="$(git describe --tags --always)" \ | ||
| --target runtime -f packaging/container/Dockerfile -t tether-runtime:ci . \ | ||
| 2>&1 | tee "$RUNNER_TEMP/tether-runtime.log" | ||
| - name: Package gate and authenticated effective distro source evidence |
There was a problem hiding this comment.
Can we not do these checks? Downloading all of the obex source code during builds doesn't make sense. Won't this also break when Ubuntu mirror changes?
"Package gate and authenticated effective distro source evidence" is a sentence I can't parse.
There was a problem hiding this comment.
good call, I removed the source-download checks and the added CI step. The existing container build and smoke tests are unchanged.
| && mkdir -p /usr/local/libexec /data /downloads /run/tether-runtime /run/systemd/users \ | ||
| # Headless OBEX must use its built-in login-monitor failure fallback. Never | ||
| # import a host login session or fabricate an active user/seat in the image. | ||
| && chmod 700 /run/systemd \ |
There was a problem hiding this comment.
Whey do we have to chmod 700 this?
There was a problem hiding this comment.
Without a logind session, OBEX needs its login-monitor failure fallback to treat the container user as active. Mode 0700 triggers that fallback for the non-root process.
I adjusted the comments around this area to be more clear
| set -euo pipefail | ||
| version=$(dpkg-query -W -f='${Version}' bluez-obexd) | ||
| printf 'bluez-obexd package version: %s\n' "$version" | ||
| if ! dpkg --compare-versions "$version" ge 5.84; then |
There was a problem hiding this comment.
Removed this script along with the other added checks.
| apt-get source "bluez=$EXPECTED_OBEX_VERSION" | ||
| source_dir=$(printf '%s\n' bluez-*/) | ||
| [[ $(dpkg-parsechangelog -l "$source_dir/debian/changelog" -S Version) == "$EXPECTED_OBEX_VERSION" ]] | ||
| [[ $EXPECTED_OBEX_VERSION == 5.85-* ]] |
There was a problem hiding this comment.
That restriction matched the package tested during diagnosis but was unnecessarily specific for ongoing CI. Removed the source-check script.
Removed all three scripts and their CI step, and updated the container docs. The remaining diff is the Ubuntu 26.04 upgrade and the headless OBEX workaround required by the tested image. |
Summary
Update the build and runtime container images from Ubuntu 24.04 to Ubuntu 26.04 to use a packaged BlueZ OBEX daemon containing the upstream MTU correction.
Why
BlueZ’s OBEX client previously passed receive and transmit MTU values in the wrong order, resulting in incorrect packet-size limits. The Ubuntu 24.04 package used by the container lacks the upstream correction.
Ubuntu 26.04 includes the correction in its packaged daemon, avoiding a custom BlueZ build and keeping dependency updates managed by the distribution.
Changes
ubuntu:26.04for both build and runtime stages.No Tether C++ source or protocol changes are included.
Testing
An experimental image using the same Dockerfile and verification scripts passed:
Experimental CI results
Local syntax and positive/negative source checks passed on this branch. Full CI for this exact branch remains pending because GitHub Actions is disabled on the fork.