-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix: allow for backwards compatibility of durations defined in days #24769
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: allow for backwards compatibility of durations defined in days #24769
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
a1c1432 to
51c5cfa
Compare
51c5cfa to
bd2d697
Compare
|
@crenshaw-dev for visibility |
Signed-off-by: lplazas <[email protected]>
bd2d697 to
319363f
Compare
blakepettersson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24769 +/- ##
=======================================
Coverage 60.70% 60.70%
=======================================
Files 404 404
Lines 66092 66096 +4
=======================================
+ Hits 40121 40125 +4
- Misses 22722 22723 +1
+ Partials 3249 3248 -1 ☔ View full report in Codecov by Sentry. |
ishitasequeira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
…24769) Signed-off-by: lplazas <[email protected]>
…24769) Signed-off-by: lplazas <[email protected]>
…24769) Signed-off-by: lplazas <[email protected]>
|
🍒 Cherry-pick PR created for 3.0: #24770 |
|
🍒 Cherry-pick PR created for 3.1: #24771 |
|
🍒 Cherry-pick PR created for 2.14: #24772 |
…cherry-pick #24769 for 3.1) (#24771) Signed-off-by: lplazas <[email protected]> Co-authored-by: lplazas <[email protected]>
…cherry-pick #24769 for 3.0) (#24770) Signed-off-by: lplazas <[email protected]> Co-authored-by: lplazas <[email protected]>
…cherry-pick #24769 for 2.14) (#24772) Signed-off-by: lplazas <[email protected]> Co-authored-by: lplazas <[email protected]>
Fixes: #24740
This bug was introduced in v2.14.0 and has been in every v2.14 and v3 release ever since.
To note
All the test cases pass with the pre-v2.14 version with one notable exception: https://github.com/argoproj/argo-cd/pull/24769/files#diff-f4cf5d4ad87bc07ff0573f18f4b68af0adf34871c09b32eae1554b3334e5a93cR183
time.ParseDuration allows for decimal durations (1.5h, 5.5m, etc), while the old function didn't.
Checklist: