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

BREAKING CHANGE: set default period for linux_gpios to 0.1 #10

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

doudou
Copy link
Member

@doudou doudou commented Mar 15, 2024

The objective of this PR is NOT to merge the change, which would silently break systems. We'll be using this branch for testing on our systems and devise another way to change the period in a non-backward-breaking way

@doudou doudou requested a review from jhonasiv March 15, 2024 19:32
Base automatically changed from pread_pwrite to master March 15, 2024 23:25
eduardacoppo and others added 9 commits January 30, 2025 10:21
the edge triggered functionality only really works when the edge_triggered_output flag is true and the connection has the `init: true` flag, so the keep_last_written_value can be kept as true by default without major drawbacks.
organize tests into general functionality and tests for init: true, which need a particular setup
the "fails to configure if a GPIO does not exist" was duplicated
fixes the break_and_reestablish_connection function
gives better and more descriptive names to the tasks
simplifies tests
code cleaning in general
test: test edge trigger property with init: true connection
A heisenbug was happening in the "does not keep last written value when a new connection is established with 'init: false'" test. The test expected no samples, but got 1.
This was due to how the test was structured, specifically the fact that the write and the disconnect-connect block of code were inside the same expect_execution block, causing a race condition.

The tests were also simplified by using a data_reader instead of the previous, unnecessary complicated, setup.
fix: fix heisenbug and simplify tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants