Skip to content
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

wip/andyholmes/staging #71

Merged
merged 3 commits into from
Jan 13, 2022
Merged

wip/andyholmes/staging #71

merged 3 commits into from
Jan 13, 2022

Conversation

andyholmes
Copy link
Owner

No description provided.

Add a simple base class with helpers for working in threads
These fixes will have to be followed with some proper refacatoring,
but at least put the project in a position to move forward without
fear of heisenbugs and drastic hair-loss.

* ValentChannel: extirpate ValentTaskQueue

  ValentTaskQueue was ultimately a bad idea that turned into a thread
  safety nightmare. Remove it and replace it's requirements with the
  locking provided by ValentObject.

* ValentChannelService: use locking from ValentObject to fix races

  Derive from ValentObject and use its provided locking to appease
  ThreadSanitizer, albeit in some questionable ways.
* test-utils
  * add missing doc comment
  * assert valent_test_load_json() succeeds
* test-plugin-fixture
  * avoid a needless function wrapper
  * close and assert-finalize channels
* test-device
  * use channel helpers from test utils
  * add some helpers and check packets more thoroughly
  * ensure we're popping all packets off the endpoint
  * ensure endpoint is closed and finalized
* test-mousepad-plugin
  * ensure we're popping all packets off the endpoint
  * add missing `isAck` to echo packet
* test-telephony-plugin
  * ensure we're popping all packets off the endpoint
  * add missing fuzz tests
@andyholmes andyholmes merged commit 6b7289f into main Jan 13, 2022
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.

1 participant