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

Internal testing logic #126

Merged
merged 46 commits into from
Aug 16, 2024
Merged

Internal testing logic #126

merged 46 commits into from
Aug 16, 2024

Conversation

KaraMelih
Copy link
Collaborator

This new setting allows for testing the coincidence system without interrupting the main coincidence cache.

The main change is that now there is a second cache for testing that runs parallel to the main one.

Everytime there is a new message in the stream, code checks if it is tagged with "is_test=True" and the test messages are recorded to this new cache. The coincidence search logic then is the same as the regular cache.

Once a coincidence is found within the test cache the alert is generated with "TEST" label, false-alarm rate calculations are bypassed, and the alert is sent out to the test connection topic which is also used for testing the connection.

The user can use the latest version of snews_pt to subscribe to these tests (SNEWS2/SNEWS_Publishing_Tools#120) snews_pt subscribe --test or subscribe to the regular alerts snews_pt subscribe

This, in principle, eliminates the need of firedrill/no firedrill topics and the relevant variables. However, for now they still exists. So the main cache/topics can be swapped with the firedrill versions while the test topic always lives. It always reads from the either firedrill/nofiredrill observation topics, but always alerts the test connection topic.

@KaraMelih
Copy link
Collaborator Author

I turned off tests that use snews_pt for now. Once the snews_pt branch is merged, the packages will become compatible, then we can add it back

Copy link
Contributor

@sybenzvi sybenzvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The snews_format_checker will disappear with @justinvasel's updates after this merge.

@sybenzvi sybenzvi merged commit 5cf68bf into main Aug 16, 2024
2 checks passed
@sybenzvi sybenzvi deleted the internal_testing_logic branch August 16, 2024 18:07
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.

2 participants