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

Emran/debug test failure #2818

Closed
wants to merge 6 commits into from
Closed

Emran/debug test failure #2818

wants to merge 6 commits into from

Conversation

emranemran
Copy link
Contributor

@emranemran emranemran commented Jun 28, 2023

Using this to debug CI failures - will not merge

The O community has shown interest in B introspection where some logging
can be published to a public facing Loki instance that can be used to
debug the selection algorithm. To that end, this change adds a few
methods to the clog package to publish logs with a specific tag
([PublicLogs]) and removes any contextual info that should not be
published.

To log specific lines to the public facing Loki instance, one can do the
following as an example:
 - clog.PublicInfof(ctx, "Updating O ID=%v, reason=%v", "fooID", "bar")

The resulting log will have specific contextual info like manifestID,
orchSessionID, etc pre-pended along with a [PublicLogs] tag.
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #2818 (57f70af) into master (1b9da7f) will increase coverage by 0.21317%.
The diff coverage is 84.69388%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #2818         +/-   ##
===================================================
+ Coverage   56.62789%   56.84106%   +0.21317%     
===================================================
  Files             88          88                 
  Lines          19086       19171         +85     
===================================================
+ Hits           10808       10897         +89     
+ Misses          7684        7679          -5     
- Partials         594         595          +1     
Impacted Files Coverage Δ
clog/clog.go 63.01370% <51.61290%> (+7.01370%) ⬆️
server/broadcast.go 78.64000% <100.00000%> (+1.15265%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

Impacted Files Coverage Δ
clog/clog.go 63.01370% <51.61290%> (+7.01370%) ⬆️
server/broadcast.go 78.64000% <100.00000%> (+1.15265%) ⬆️

... and 1 file with indirect coverage changes

@thomshutt thomshutt closed this Dec 12, 2023
@thomshutt thomshutt deleted the emran/debug-test-failure branch December 12, 2023 19:32
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