-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[v2] Change e2e jaeger-v2 binary log output to temp file #5431
Conversation
Signed-off-by: James Ryans <james.ryans2012@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5431 +/- ##
==========================================
+ Coverage 94.60% 94.91% +0.30%
==========================================
Files 346 334 -12
Lines 16951 16230 -721
==========================================
- Hits 16037 15404 -633
+ Misses 712 648 -64
+ Partials 202 178 -24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments:
- since we're writing to files, there's no need to mix stdout and stderr anymore, we can write to two files and dump them separately
- I'd say you want to kill the process first, and then read & dump the log files
- I am curious if we could create a foldable section in the GH running output. Not sure if it will work when using
t.Logf
, I assume the special annotation needs to be at the start of the line
Signed-off-by: James Ryans <james.ryans2012@gmail.com>
Signed-off-by: James Ryans <james.ryans2012@gmail.com>
Signed-off-by: James Ryans <james.ryans2012@gmail.com>
This is the output for the group section in my local, since the CI has passed all the tests and I'm not sure if this actually working.
|
Signed-off-by: James Ryans <james.ryans2012@gmail.com>
fmt.Printf("Jaeger-v2 error logs:\n%s", errLogs) | ||
// End of Github Actions foldable section annotation. | ||
fmt.Println("::endgroup::") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps it makes sense to configure codecov to ignore cmd/jaeger/internal/integration/
Signed-off-by: Yuri Shkuro <github@ysh.us>
Which problem is this PR solving?
Description of the changes
docker logs
if failed.How was this change tested?
STORAGE=grpc SPAN_STORAGE_TYPE=memory make jaeger-v2-storage-integration-test
command with success and fail scenario.Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test