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

DM-45722: CRITICAL logs on empty quantum graph #440

Merged
merged 4 commits into from
Aug 28, 2024
Merged

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Aug 27, 2024

This PR demotes the explanation of empty quantum graph queries from critical to error (to avoid confusion with truly fatal errors that force termination), and also merges the explanation into a single multiline log (for compatibility with JSON/Loki output).

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 5.55556% with 17 lines in your changes missing coverage. Please review.

Project coverage is 81.15%. Comparing base (b9c5a67) to head (f6f0254).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
.../pipe/base/all_dimensions_quantum_graph_builder.py 5.55% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #440      +/-   ##
==========================================
- Coverage   81.19%   81.15%   -0.04%     
==========================================
  Files          96       96              
  Lines       10931    10937       +6     
  Branches     2086     2086              
==========================================
+ Hits         8875     8876       +1     
- Misses       1698     1703       +5     
  Partials      358      358              

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

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup.

doc/changes/DM-45722.bugfix.md Outdated Show resolved Hide resolved
doc/changes/DM-45722.other.md Outdated Show resolved Hide resolved
The "other" category was merged with "misc" in 2022.
Critical is not an appropriate level for informational logs, especially
since whether or not a failed query is truly critical (in the sense
that the program cannot continue) depends on the program.
Logging a single statement as multiple logs causes problems with Loki,
because each line may be rearranged or independently filtered. Logging
a single multiline message fixes this problem, without changing
behavior for console users.

Constructing the multiline message makes it impossible to defer string
evaluation, but for an error-level log this is unlikely to come up
in practice.
@kfindeisen kfindeisen merged commit c68239a into main Aug 28, 2024
11 of 13 checks passed
@kfindeisen kfindeisen deleted the tickets/DM-45722 branch August 28, 2024 19:53
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