Skip to content

[QC-1292] Missing run number in logs from BookkeepingSink #2561

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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Barthelemy
Copy link
Collaborator

  • added initialization of IL
  • set the run number whenever we get one

- added initialization of IL
- set the run number whenever we get one
@Barthelemy Barthelemy changed the title [QC-1292] Missing run number in logs from BookkeepingSink [WIP] [QC-1292] Missing run number in logs from BookkeepingSink Jun 5, 2025
@Barthelemy
Copy link
Collaborator Author

wip because I don't know how to test

@@ -70,6 +77,7 @@ void BookkeepingQualitySink::send(const std::string& grpcUri, const BookkeepingQ
}
if (!runNumber.has_value()) {
runNumber = flagCollection->getRunNumber();
QcInfoLogger::setRun(runNumber.value());
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is quite late to set the run number. send happens only at the end of run. Would you be able to retrieve run number during start of run as a fairmq property, similarly to other Runners?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, this is a fair point. I wanted to be consistent with what we pass to the BK but it makes more sense like that.

@knopers8
Copy link
Collaborator

wip because I don't know how to test

add a valid bookkeeping URL to a QC config file and add "exportToBookkeeping" : "true" for at least one check.

@Barthelemy Barthelemy changed the title [WIP] [QC-1292] Missing run number in logs from BookkeepingSink [QC-1292] Missing run number in logs from BookkeepingSink Jun 27, 2025
Copy link
Collaborator

@knopers8 knopers8 left a comment

Choose a reason for hiding this comment

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

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants