Skip to content

modemmanager: Add operator ID and allow to set channels #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2025

Conversation

agx
Copy link
Contributor

@agx agx commented May 22, 2025

The channel setting API is not yet in a released version of ModemManager so I didn't add a mmcli test.

@agx
Copy link
Contributor Author

agx commented May 22, 2025

The debian and ubuntu test fail to install packages and the fedora tests fails on ruff in unchanged files (https://github.com/martinpitt/python-dbusmock/actions/runs/15196820126/job/42742834043?pr=234#step:4:825) .

@martinpitt
Copy link
Owner

Eek, yeah, the unit tests started failing three weeks ago -- normally I get a notification email for each failure, but I don't any more 🤔 I think I found and fixed that in the notification settings now.

I want to fix that first, and then rebase your PR. I sent #235, and will hopefully land it in ~ 30 mins or so.

Copy link
Owner

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

This looks good, thanks! A bit sad that this is hard to test, is there perhaps some COPR or so with the new version? I'm happy to add an integration test that pulls in some "git main builds" packages.

Comment on lines +210 to +216
"Channels": dbus.Array([], signature="(uu)"),
"CellBroadcasts": dbus.Array([], signature="o"),
}
modem_cell_broadcast_methods = [
("List", "", "ao", listCbm),
("Delete", "o", "", deleteCbm),
("SetChannels", "a(uu)", "", setChannels),
Copy link
Owner

Choose a reason for hiding this comment

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

OK, these match https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/commit/2878833f5c83fe112f579865a6d318ce8413f452

Let's see if the next MM upstream release will break the tests due to changing the output format. I actually wish it did, then we'd have a good reminder to check this new option 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it won't. We need to additionally run mmcli -m any --cell-broadcast-status for that so it won't break out of a sudden.

@martinpitt
Copy link
Owner

I pushed a clean rebase to your branch.

@agx
Copy link
Contributor Author

agx commented May 23, 2025

This looks good, thanks! A bit sad that this is hard to test, is there perhaps some COPR or so with the new version? I'm happy to add an integration test that pulls in some "git main builds" packages.

Upstream MM tags dev snapshots every now and then but that didn't happen yet.

@martinpitt martinpitt merged commit 4fd18be into martinpitt:main May 23, 2025
22 checks passed
@martinpitt
Copy link
Owner

@agx Released as https://github.com/martinpitt/python-dbusmock/releases/tag/0.35.0 . Uploading to Fedora and Debian experimental now (due to the release freeze)

@agx
Copy link
Contributor Author

agx commented May 23, 2025

@agx Released as https://github.com/martinpitt/python-dbusmock/releases/tag/0.35.0 . Uploading to Fedora and Debian experimental now (due to the release freeze)

That was quick, thanks a lot!

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.

2 participants