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

Fix crash when feature check environment variables are not set #118

Merged

Conversation

adrianreber
Copy link
Member

This PR mainly fixes a crash when the feature check environment variables were not set.

I included another commit that fixes a complaint from staticcheck and enabled in a third commit additional CI checks.

Signed-off-by: Adrian Reber <[email protected]>
The test code was crashing if the feature detection environment
variables were not set at all.

Signed-off-by: Adrian Reber <[email protected]>
@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Patch coverage: 76.92% and project coverage change: +0.04 🎉

Comparison is base (114acbe) 15.79% compared to head (b5083af) 15.83%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   15.79%   15.83%   +0.04%     
==========================================
  Files          92       92              
  Lines       14996    15004       +8     
==========================================
+ Hits         2368     2376       +8     
  Misses      12422    12422              
  Partials      206      206              
Impacted Files Coverage Δ
test/main.go 44.65% <76.92%> (+2.93%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@adrianreber adrianreber requested a review from rst0git April 14, 2023 15:43
Copy link
Member

@rst0git rst0git left a comment

Choose a reason for hiding this comment

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

LGTM

@adrianreber adrianreber merged commit 41217b8 into checkpoint-restore:master Apr 14, 2023
@adrianreber adrianreber deleted the 2023-04-14-env-crash branch April 14, 2023 15:55
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