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

o/snapstate/autorefresh: do not expect a valid time string in refresh.hold #13544

Merged

Conversation

bboozzoo
Copy link
Collaborator

@bboozzoo bboozzoo commented Feb 5, 2024

It is possible that refresh.hold has been set to "forever" even before snapd ran for the first time.

Reference: https://bugs.launchpad.net/bugs/2051917

Copy link
Collaborator

@ZeyadYasser ZeyadYasser left a comment

Choose a reason for hiding this comment

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

Great catch, Thank you!

Copy link
Contributor

@MiguelPires MiguelPires left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@bboozzoo bboozzoo added the Needs Samuele review Needs a review from Samuele before it can land label Feb 5, 2024
….hold

It is possible that refresh.hold has been set to "forever" even before snapd ran
for the first time.

Reference: https://bugs.launchpad.net/bugs/2051917

Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
@bboozzoo bboozzoo force-pushed the bboozzoo/at-seed-forever-hold branch from a77ade3 to 522c4fc Compare February 16, 2024 08:21
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5407316) 78.86% compared to head (522c4fc) 78.87%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13544   +/-   ##
=======================================
  Coverage   78.86%   78.87%           
=======================================
  Files        1033     1033           
  Lines      132065   132067    +2     
=======================================
+ Hits       104159   104166    +7     
+ Misses      21404    21401    -3     
+ Partials     6502     6500    -2     
Flag Coverage Δ
unittests 78.87% <100.00%> (+<0.01%) ⬆️

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.

Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

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

I was confused, "forever" is already a passed through valid value from the pov of configcore, so this is fine

@bboozzoo
Copy link
Collaborator Author

@Meulengracht this can be force merged now

@Meulengracht Meulengracht merged commit 0993f17 into snapcore:master Feb 19, 2024
31 of 43 checks passed
@bboozzoo bboozzoo deleted the bboozzoo/at-seed-forever-hold branch February 19, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Samuele review Needs a review from Samuele before it can land
Projects
None yet
6 participants