Skip to content

Conversation

JordanYates
Copy link
Contributor

Add conditionals based on Infuse-IoT application states. When provided,
all states are ANDed together to determine the result.

For a system that ticks the state timeouts in the task runner context
(expected to be all systems), ensure that a state with a timeout of N
is set for N iterations of the task runner. This prevents a state being
set after task iteration but before `infuse_states_tick`, and therefore
never being seen by the runner.

Signed-off-by: Jordan Yates <[email protected]>
Remove support for running `TASK_RUNNER` without
`INFUSE_APPLICATION_STATES`.

Signed-off-by: Jordan Yates <[email protected]>
Copy link

codecov bot commented Oct 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.31%. Comparing base (fe582b6) to head (6abe8f7).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #273      +/-   ##
==========================================
+ Coverage   91.27%   91.31%   +0.04%     
==========================================
  Files         105      105              
  Lines        4024     4043      +19     
  Branches      632      639       +7     
==========================================
+ Hits         3673     3692      +19     
  Misses        190      190              
  Partials      161      161              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JordanYates JordanYates force-pushed the feature/task_runner_states branch from ce30a24 to 289e4d3 Compare October 6, 2024 10:10
Update all task and schedule iteration functions to take a pointer to a
snapshot of the application states.

Signed-off-by: Jordan Yates <[email protected]>
Add conditionals based on Infuse-IoT application states. When provided,
all states are ANDed together to determine the result.

Signed-off-by: Jordan Yates <[email protected]>
Add tests for the application state conditionals.

Signed-off-by: Jordan Yates <[email protected]>
@JordanYates JordanYates force-pushed the feature/task_runner_states branch from 289e4d3 to 6abe8f7 Compare October 6, 2024 11:19
@JordanYates
Copy link
Contributor Author

COAP test server (coap.me) is currently down, otherwise tests passing

@JordanYates JordanYates merged commit 3eccf97 into main Oct 6, 2024
10 of 11 checks passed
@JordanYates JordanYates deleted the feature/task_runner_states branch October 6, 2024 11:52
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