Skip to content

[Backport release-26.05] python3Packages.paho-mqtt: backport fix for flaky tests - #547975

Merged
dotlambda merged 1 commit into
release-26.05from
backport-545193-to-release-26.05
Aug 2, 2026
Merged

dotlambda merged 1 commit into
release-26.05from
backport-545193-to-release-26.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Bot-based backport to release-26.05, triggered by a label in #545193.

Before merging, ensure that this backport is acceptable for the release.

Even as a non-committer, if you find that it is not acceptable, leave a comment.

Tip

If you maintain all packages touched by this pull request, and they are all located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this PR using the nixpkgs-merge-bot.

During testing, MQTT clients are spawned as subprocesses and then
stopped via SIGINT. Whether or not the SIGINT signal arrives before or
after the client has completed the initial setup and reached its
`loop_forever()` or `wait_for_keyboard_input()` call is
timing-dependent. This limitaiton is known by the upstream developers
(as witnessed by the comment in the custom implementation of
`wait_for_keyboard_interrupt`). As a consequence, people are getting
failures during teardown for different tests depending on the machine as
the timing is slightly different, see #542586.

This has been fixed upstream in eclipse-paho/paho.mqtt.python#934 by
introducing a signaling mechanism. This PR backports the fix.

Assited-by: Claude Sonnet 5
(cherry picked from commit 8fb237f)
@nixpkgs-ci
nixpkgs-ci Bot requested review from dotlambda and mogorman August 1, 2026 05:48
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 6.topic: python Python is a high-level, general-purpose programming language. 4.workflow: backport This targets a stable branch labels Aug 1, 2026
@dotlambda

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 547975
Commit: 71549fb3008905bf00132e3c92809e2863b54839


x86_64-linux

✅ 146 packages built:
  • appdaemon
  • apprise (python313Packages.apprise)
  • borgmatic
  • changedetection-io
  • expliot
  • frigate
  • ha-mqtt-discoverable-cli
  • healthchecks
  • home-assistant-custom-components.amshan
  • home-assistant-custom-components.ecoflow_cloud
  • home-assistant-custom-components.elegoo_printer
  • home-assistant-custom-components.frigate
  • home-assistant-custom-components.miraie
  • home-assistant-custom-components.oref_alert
  • home-assistant-custom-components.sleep_as_android_mqtt
  • home-assistant-custom-components.tuya_local
  • home-assistant-custom-components.xiaomi_home
  • home-assistant-custom-components.yoto_ha
  • ledfx
  • mealie
  • moonraker
  • mqtt-exporter
  • mqtt-randompub
  • nemorosa
  • notus-scanner (python313Packages.notus-scanner)
  • openswitcher
  • ospd-openvas
  • pinchflat
  • prefect (python313Packages.prefect)
  • prometheus-borgmatic-exporter
  • python313Packages.actron-neo-api
  • python313Packages.adafruit-io
  • python313Packages.aiomqtt
  • python313Packages.amshan
  • python313Packages.bcg
  • python313Packages.bch
  • python313Packages.deebot-client
  • python313Packages.elkoep-aio-mqtt
  • python313Packages.ha-mqtt-discoverable
  • python313Packages.homelink-integration-api
  • python313Packages.letpot
  • python313Packages.libpurecool
  • python313Packages.meross-iot
  • python313Packages.microbeespy
  • python313Packages.miraie-ac
  • python313Packages.mqtt2influxdb
  • python313Packages.paho-mqtt
  • python313Packages.pyduke-energy
  • python313Packages.pyeconet
  • python313Packages.pyephember2
  • python313Packages.pyezvizapi
  • python313Packages.pypglab
  • python313Packages.pysmappee
  • python313Packages.pysrdaligateway
  • python313Packages.python-roborock
  • python313Packages.python-snoo
  • python313Packages.pyworxcloud
  • python313Packages.roombapy
  • python313Packages.tuya-device-handlers
  • python313Packages.tuya-device-sharing-sdk
  • python313Packages.tuya-iot-py-sdk
  • python313Packages.victron-mqtt
  • python313Packages.victron-vrm
  • python313Packages.weconnect-mqtt
  • python313Packages.yolink-api
  • python313Packages.yoto-api
  • python314Packages.actron-neo-api
  • python314Packages.adafruit-io
  • python314Packages.aiomqtt
  • python314Packages.amshan
  • python314Packages.apprise
  • python314Packages.bcg
  • python314Packages.bch
  • python314Packages.deebot-client
  • python314Packages.elkoep-aio-mqtt
  • python314Packages.ha-mqtt-discoverable
  • python314Packages.homelink-integration-api
  • python314Packages.letpot
  • python314Packages.libpurecool
  • python314Packages.meross-iot
  • python314Packages.microbeespy
  • python314Packages.miraie-ac
  • python314Packages.mqtt2influxdb
  • python314Packages.notus-scanner
  • python314Packages.paho-mqtt
  • python314Packages.pyduke-energy
  • python314Packages.pyeconet
  • python314Packages.pyephember2
  • python314Packages.pyezvizapi
  • python314Packages.pypglab
  • python314Packages.pysmappee
  • python314Packages.pysrdaligateway
  • python314Packages.python-roborock
  • python314Packages.python-snoo
  • python314Packages.pyworxcloud
  • python314Packages.roombapy
  • python314Packages.tuya-device-handlers
  • python314Packages.tuya-device-sharing-sdk
  • python314Packages.tuya-iot-py-sdk
  • python314Packages.victron-mqtt
  • python314Packages.victron-vrm
  • python314Packages.weconnect-mqtt
  • python314Packages.yolink-api
  • python314Packages.yoto-api
  • quodlibet-full
  • quodlibet-xine-full
  • sabnzbd
  • shelfmark
  • tdarr
  • tdarr-node
  • tdarr-server
  • tests.home-assistant-components.actron_air
  • tests.home-assistant-components.apprise
  • tests.home-assistant-components.axis
  • tests.home-assistant-components.drop_connect
  • tests.home-assistant-components.dsmr_reader
  • tests.home-assistant-components.econet
  • tests.home-assistant-components.ecovacs
  • tests.home-assistant-components.ezviz
  • tests.home-assistant-components.fully_kiosk
  • tests.home-assistant-components.gentex_homelink
  • tests.home-assistant-components.inels
  • tests.home-assistant-components.letpot
  • tests.home-assistant-components.manual_mqtt
  • tests.home-assistant-components.microbees
  • tests.home-assistant-components.mqtt
  • tests.home-assistant-components.mqtt_eventstream
  • tests.home-assistant-components.mqtt_json
  • tests.home-assistant-components.mqtt_room
  • tests.home-assistant-components.mqtt_statestream
  • tests.home-assistant-components.mysensors
  • tests.home-assistant-components.owntracks
  • tests.home-assistant-components.pglab
  • tests.home-assistant-components.qbus
  • tests.home-assistant-components.roborock
  • tests.home-assistant-components.roomba
  • tests.home-assistant-components.smappee
  • tests.home-assistant-components.snoo
  • tests.home-assistant-components.sunricher_dali
  • tests.home-assistant-components.tasmota
  • tests.home-assistant-components.tuya
  • tests.home-assistant-components.victron_gx
  • tests.home-assistant-components.victron_remote_monitoring
  • tests.home-assistant-components.yolink
  • unifi-protect-backup
  • usbrelayd

@dotlambda dotlambda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved automatically following the successful run of nixpkgs-review.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Aug 2, 2026
@dotlambda
dotlambda added this pull request to the merge queue Aug 2, 2026
Merged via the queue into release-26.05 with commit de169c0 Aug 2, 2026
31 checks passed
@dotlambda
dotlambda deleted the backport-545193-to-release-26.05 branch August 2, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants