Skip to content

Fix KNX protocol test registration race - #3495

Merged
Ekhorn merged 1 commit into
mainfrom
fix-unstable-KNXProtocolTest
Oct 28, 2026
Merged

Ekhorn merged 1 commit into
mainfrom
fix-unstable-KNXProtocolTest

Conversation

@wborn

@wborn wborn commented Oct 26, 2026

Copy link
Copy Markdown
Member

Description

Wait for both status and command datapoints to be registered before sending attribute writes, preventing the first command from being dropped.

Synchronize registration checks and make shared test-link fields volatile to ensure visibility across threads.

Fixes #3494

Checklist

  • 1. Acceptance criteria of the linked issue(s) are met
  • 2. Tests are written and all tests pass
  • 3. Changes are manually tested by you and the reviewer
  • 4. Documentation is written or updated

Wait for both status and command datapoints to be registered before sending attribute writes, preventing the first command from being dropped.

Synchronize registration checks and make shared test-link fields volatile to ensure visibility across threads.

Fixes #3494
@wborn
wborn requested a review from a team October 26, 2026 13:14
@wborn wborn added the Test Development of missing or unstable test label Oct 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

@MartinaeyNL MartinaeyNL 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.

Looks OK to me! 👍
I think it's a good idea to stress test this to ensure this resolves the issue.

@MartinaeyNL
MartinaeyNL requested a review from a team October 26, 2026 13:34
@Ekhorn

Ekhorn commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Looks OK to me! 👍 I think it's a good idea to stress test this to ensure this resolves the issue.

I'm on it 🫡

@Ekhorn

Ekhorn commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

@Ekhorn
Ekhorn added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit db857a7 Oct 28, 2026
720 of 723 checks passed
@Ekhorn
Ekhorn deleted the fix-unstable-KNXProtocolTest branch October 28, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Test Development of missing or unstable test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KNXProtocolTest unstable

3 participants