Skip to content

fix(container): use tested Ubuntu 26.04 OBEX runtime and source gates - #261

Merged
zackb merged 2 commits into
zackb:mainfrom
napisani:fix/ubuntu26-upstream
Oct 22, 2026
Merged

zackb merged 2 commits into
zackb:mainfrom
napisani:fix/ubuntu26-upstream

Conversation

@napisani

Copy link
Copy Markdown
Contributor

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

  • Use ubuntu:26.04 for both build and runtime stages.
  • Configure the packaged OBEX daemon’s existing fallback for headless operation without an active login session.
  • Add package-version and distro-source verification to the existing amd64/arm64 container CI.

No Tether C++ source or protocol changes are included.

Testing

An experimental image using the same Dockerfile and verification scripts passed:

  • Native amd64 and arm64 builds.
  • 588 CTest tests and eight container smoke-test groups per architecture.
  • Verification that the packaged BlueZ source contains the MTU correction.
  • Manual iPhone messaging tests, including confirmed recipient delivery.

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.

@zackb
zackb self-requested a review October 21, 2026 00:54

@zackb zackb left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Docs too: https://github.com/napisani/tether/blob/fix/ubuntu26-upstream/docs/CONTAINER.md#host-prerequisites

Comment thread .github/workflows/container.yml Outdated
--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

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 \

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whey do we have to chmod 700 this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread scripts/test-obex-package.sh Outdated
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

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one wants 5.84?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this script along with the other added checks.

Comment thread scripts/test-obex-source-evidence.sh Outdated
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-* ]]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one wants 5.85?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That restriction matched the package tested during diagnosis but was unnecessarily specific for ongoing CI. Removed the source-check script.

@napisani

Copy link
Copy Markdown
Contributor Author

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.

Docs too: https://github.com/napisani/tether/blob/fix/ubuntu26-upstream/docs/CONTAINER.md#host-prerequisites

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.

@napisani
napisani requested a review from zackb October 21, 2026 17:37
@zackb
zackb merged commit 549f6eb into zackb:main Oct 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants