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

Update bmclib version: #281

Merged
merged 1 commit into from
Dec 14, 2024
Merged

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Dec 14, 2024

Description

Fixes a nil pointer panic when running in environments (container images like scratch) that don't have the "sum" binary. In bmclib the "sum" binary is the supermicro update manager, but in most OS distros "sum" is a command for "checksum and count the blocks in a file". This means that we didn't see the panic because we are running in Alpine that has a "sum" binary.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

Fixes a nil pointer panic when running in
environments (container images like scratch) that don't
have the "sum" binary. In bmclib the "sum" binary
is the supermicro update manager, but in most OS
distros "sum" is a command for
"checksum and count the blocks in a file". This means
that we didn't see the panic because we are running
in Alpine that have a "sum" binary.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock added the ready-to-merge Mergify: Ready for Merging label Dec 14, 2024
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.80%. Comparing base (8df7cf7) to head (446e0fa).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #281   +/-   ##
=======================================
  Coverage   46.80%   46.80%           
=======================================
  Files          11       11           
  Lines        1361     1361           
=======================================
  Hits          637      637           
  Misses        666      666           
  Partials       58       58           

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

@jacobweinstock jacobweinstock merged commit 8d7360d into tinkerbell:main Dec 14, 2024
7 checks passed
@jacobweinstock jacobweinstock deleted the bmclib-fix branch December 14, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Mergify: Ready for Merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant