Skip to content

Add clear out messages to public api - #938

Merged
PierreF merged 3 commits into
eclipse-paho:masterfrom
JamesParrott:Add_clear_out_messages_to_public_API
Sep 9, 2026
Merged

PierreF merged 3 commits into
eclipse-paho:masterfrom
JamesParrott:Add_clear_out_messages_to_public_API

Conversation

@JamesParrott

@JamesParrott JamesParrott commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Workaround for #893
Includes PR #937 and builds on its new tests.
Completes #935

Refactor out common base class and _start_broker.  Add _reboot_broker.

Test QoS 0

Update test_mqttv5.py

Update test_mqttv5.py

Replace Exception with warning

Add _TestBrokerRebootsQoS1 and _TestBrokerRebootsQoS2

They do fail, but do not get stuck in the reconnection loop as described in issue eclipse-paho#893

Create ex.py

Update test_mqttv5.py

Update test_mqttv5.py

Remove xfails & _TestBrokerRebootsQoS1 and _TestBrokerRebootsQoS2

Import MQTTErrorCode

Deactivate _TestBrokerRebootsQoS2.  Ignore Python 3.9 & 3.10 for now

Aquire locks for switcheroo, and test it worked on the out messages queue

Xfail the QoS 2 topic alii & rebooted broker test

Move test setup logic into overridden setUpClass so xfail is more targeted.

Test QoS 2 topic alii, broker reboots.

Explain why not to add a similar naive QoS 2 test class

Rename classes
Add Client.drop_out_messages and add test for work around using it
Comment thread .github/workflows/tox.yml Outdated
max-parallel: 4
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python: ["3.11", "3.12", "3.13", "3.14" ] #, "3.9", "3.10", ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why removing Python 3.9 & 3.10 here ? Tests works on 3.9 on main and on this PR.

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.

Hi Pierre,
This was from back in July. I don't remember exactly why, unfortunately. Lets try it with 3.9 & 3.10 back in.

@PierreF
PierreF merged commit 26cf3e3 into eclipse-paho:master Sep 9, 2026
10 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