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

op-e2e: Recover gracefully from log-after-exit panics #13190

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

mslipper
Copy link
Collaborator

@mslipper mslipper commented Dec 3, 2024

There are a lot of places where we log after tests exit. This PR recovers from those panics so tests can continue.

@mslipper mslipper requested a review from a team as a code owner December 3, 2024 18:55
@mslipper mslipper requested a review from vdamle December 3, 2024 18:55
There are a lot of places where we log after tests exit. This PR recovers from those panics so tests can continue.
@mslipper mslipper force-pushed the bugfix/recover-logs branch from 6ad8d0e to f5e727e Compare December 3, 2024 18:58
@mslipper mslipper force-pushed the bugfix/recover-logs branch from 23196d1 to 1bd1d7c Compare December 3, 2024 19:06
@mslipper mslipper enabled auto-merge December 3, 2024 19:07
@mslipper mslipper added this pull request to the merge queue Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 42.67%. Comparing base (508ccbe) to head (1bd1d7c).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
op-service/testlog/testlog.go 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #13190      +/-   ##
===========================================
- Coverage    44.24%   42.67%   -1.57%     
===========================================
  Files          807      751      -56     
  Lines        72700    68042    -4658     
===========================================
- Hits         32164    29036    -3128     
+ Misses       37920    36563    -1357     
+ Partials      2616     2443     -173     
Flag Coverage Δ
cannon-go-tests-32 ?
cannon-go-tests-64 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
op-service/testlog/testlog.go 56.48% <62.50%> (+0.04%) ⬆️

... and 62 files with indirect coverage changes

Merged via the queue into develop with commit e101cd8 Dec 3, 2024
44 checks passed
@mslipper mslipper deleted the bugfix/recover-logs branch December 3, 2024 19:18
sigma pushed a commit that referenced this pull request Dec 19, 2024
* op-e2e: Recover gracefully from log-after-exit panics

There are a lot of places where we log after tests exit. This PR recovers from those panics so tests can continue.

* add helper
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