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

BUG: Fall back to image metadata for invalid entries #186

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

DavidFair
Copy link
Collaborator

Fall back to the image's metadata if the VM has invalid entries set by the user. If they've got this partially incorrect we could still crash out (e.g. some sort of RL8 + RL9 personality) however it's hard to pre-validate every combo so cross that bridge later.

In these cases where they're obvious wrong values we can simply ignore them and stick with the existing image values instead.

Fall back to the image's metadata if the VM has invalid entries set by
the user. If they've got this partially incorrect we could still crash
out (e.g. some sort of RL8 + RL9 personality) however it's hard to
pre-validate every combo so cross that bridge later.

In these cases where they're obvious wrong values we can simply ignore
them and stick with the existing image values instead.
@DavidFair DavidFair added the bug label Dec 4, 2024
Slim down the override by moving checks into their own private static method
without changing the implementation.
@khalford khalford requested review from a team, dev-0pz and Barfy007JB1 and removed request for dev-0pz December 4, 2024 16:00
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.93%. Comparing base (350a633) to head (8849346).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #186      +/-   ##
==========================================
+ Coverage   96.48%   96.93%   +0.45%     
==========================================
  Files          30       16      -14     
  Lines        2160     1175     -985     
==========================================
- Hits         2084     1139     -945     
+ Misses         76       36      -40     
Flag Coverage Δ
rabbit_consumer 96.93% <100.00%> (+0.05%) ⬆️

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

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

@khalford khalford merged commit 57a2d72 into master Dec 5, 2024
9 checks passed
@khalford khalford deleted the Fallback_to_sane_metadata branch December 5, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants