-
Notifications
You must be signed in to change notification settings - Fork 0
Many minor fixes to the handlers implementation #46
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
Open
emmuhamm
wants to merge
4
commits into
emmuhamm/new-handlers
Choose a base branch
from
emmuhamm/many-handlers-fixes
base: emmuhamm/new-handlers
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was
linked to
issues
Feb 6, 2026
2871ebb to
fd21c11
Compare
fd21c11 to
d47ca1d
Compare
Contributor
Author
The comment below has been deferred to #47We also need one where a warning is thrown when this happens: |
12 tasks
44a366a to
ffdbf04
Compare
b20f442 to
29aeed6
Compare
This was
unlinked from
issues
Feb 12, 2026
Contributor
Author
|
Hi @PawelPlesniak, this is now ready for review :) This is a dependency of DUNE-DAQ/drunc#660, so its important that this goes in before that one is tested. Originally, this is supposed to go in after #37 goes in. However, since both are ready at the same time, I let you choose how you want to deploy this. Options are:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Dependent on #37 going in. Alternatively, this can be merged into #37, after which that can go in.
Up to you Mr. Reviewer.
These have a few minor fixes that were discovered when implementing ERS into drunc and quality of life fixes
Changes
Three major changes are done:
Refactor logging demonstrator
Fixes #45
Logging demonstrator has become a behemoth of a monolith. This was a quick refactor that splits it off into various functions that that are all called in main. It should make things more readable and maintainable.
Fixes a streamhandler bug
Fixes #44
See above issue for description. This is now fixed by using the actual enums instead of strings to refer to things in the ERS.
Introduces better initialisation of the LHC
The LogHandlerConf by default initialises all the Base, Opmon, and ERS streams all at once. This is not always desired, because there are cases where we do want to initialise the base stream but not have to worry about ERS. This would be an issue because ERS requires the ERS env variables to be defined, when they are not always defined.
This fixes it by introducing a separate initialisation function, which is controlled by a new variable/argument of
init_ers.So the functionality is now as follows.
Reviewer test
daqpytools-logging-demonstrator -r -f logger.log --ersprotobufstream --handlertypes --handlerconf -t -sType of change
Testing checklist
dbt-build --unittest)pytest -s minimal_system_quick_test.py)daqsystemtest_integtest_bundle.sh)python -m pytest)pre-commit run --all-files)Further checks
dbt-build --lint, and/or see https://dune-daq-sw.readthedocs.io/en/latest/packages/styleguide/)(Indicate issue here: # (issue))