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

Add capability to monitor for silence in geographic gathering #89

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

gerritholl
Copy link
Contributor

@gerritholl gerritholl commented May 21, 2021

Add an option to monitor for silence in geographic gathering. This adds a timeout calculation that is triggered at a certain time after the most recent message has arrived. This allows for early shipping if a reception system has stopped delivering earlier than expected or if the region is defined too large.

Work in progress. So far only the tests have been added.

In preparation for adding a timeout, improve the region collector unit
test.
Added a unit test to test that monitor for silence is working as
specified.
@gerritholl gerritholl added this to In progress in PCW Spring 2021 May 21, 2021
Add a test to the geographic gatherer to test that it's initiating the
region collector with the silence keyword when such a silence is
included in the configuration file.
Add functionality to monitor for silence in the geographic gatherer.
Document the recently introduced silence monitoring feature.
@codecov
Copy link

codecov bot commented May 21, 2021

Codecov Report

Merging #89 (1bb84b8) into main (e6e95b0) will increase coverage by 0.18%.
The diff coverage is 100.00%.

❗ Current head 1bb84b8 differs from pull request most recent head bf5bf83. Consider uploading reports for the commit bf5bf83 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   83.33%   83.52%   +0.18%     
==========================================
  Files          19       19              
  Lines        2622     2652      +30     
==========================================
+ Hits         2185     2215      +30     
  Misses        437      437              
Impacted Files Coverage Δ
pytroll_collectors/region_collector.py 82.23% <100.00%> (+0.72%) ⬆️
...troll_collectors/tests/test_geographic_gatherer.py 100.00% <100.00%> (ø)
pytroll_collectors/tests/test_region_collector.py 94.59% <100.00%> (+1.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6e95b0...bf5bf83. Read the comment docs.

@gerritholl gerritholl marked this pull request as ready for review May 21, 2021 12:52
@gerritholl gerritholl moved this from In progress to Review in progress in PCW Spring 2021 May 21, 2021
@gerritholl
Copy link
Contributor Author

I'm currently field-testing this (along with #92, without which the geographic gatherer doesn't start).

@gerritholl gerritholl marked this pull request as draft May 21, 2021 14:06
@gerritholl
Copy link
Contributor Author

Initial field-testing indicates it is not entirely working as expected, so I'm marking this as a draft again for now.

@gerritholl gerritholl moved this from Review in progress to In progress in PCW Spring 2021 May 21, 2021
It doesn't DWIM.  Add failing test to reproduce this.
@pnuu pnuu added this to In progress in PCW Autumn 2021 via automation Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PCW Autumn 2021
In progress
PCW Spring 2021
In progress
Development

Successfully merging this pull request may close these issues.

Add a "monitor for silence"-style timeout to (geographic) gatherer
1 participant