Skip to content

[fbnetboot] Fix error in retry logic.#2557

Merged
probot-auto-merge[bot] merged 2 commits into
u-root:mainfrom
abrender:fbnetboot
Nov 12, 2022
Merged

[fbnetboot] Fix error in retry logic.#2557
probot-auto-merge[bot] merged 2 commits into
u-root:mainfrom
abrender:fbnetboot

Conversation

@abrender
Copy link
Copy Markdown
Contributor

As discovered and reproduced in #2517 (comment) there is a bug in the retry logic which causes code to continue executing even if all attempts to fetch the file have failed. This leads to a nil pointer panic.

This PR restructures the code to vanquish the bug.

Fixes #2517

Signed-off-by: Avi avibrender@gmail.com

As discovered and reproduced in #2517 (comment) there is a bug in the retry logic which causes code to continue executing even if all attempts to fetch the file have failed. This leads to a nil pointer panic.

This PR restructures the code to vanquish the bug.

Fixes #2517

Signed-off-by: Avi <avibrender@gmail.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 11, 2022

Codecov Report

Base: 73.67% // Head: 73.67% // No change to project coverage 👍

Coverage data is based on head (d707be6) compared to base (b38ed0a).
Patch has no changes to coverable lines.

❗ Current head d707be6 differs from pull request most recent head f8e956a. Consider uploading reports for the commit f8e956a to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2557   +/-   ##
=======================================
  Coverage   73.67%   73.67%           
=======================================
  Files         405      405           
  Lines       41282    41282           
=======================================
  Hits        30416    30416           
  Misses      10866    10866           

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@abrender abrender requested a review from rminnich November 11, 2022 20:29
@rminnich rminnich added automerge Applying this label auto-merges the PR when ready Awaiting author Waiting for new changes or feedback for author. labels Nov 12, 2022
@probot-auto-merge probot-auto-merge Bot merged commit dd411e5 into u-root:main Nov 12, 2022
@abrender abrender deleted the fbnetboot branch November 14, 2022 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Applying this label auto-merges the PR when ready Awaiting author Waiting for new changes or feedback for author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SIGSEGV in fbnetboot

2 participants