Repository navigation
fix: search 9 years in cron Next for leap-day schedules - #9170
cert-manager-prow[bot] merged 3 commits into
Conversation
Feb 29 can be eight years apart around a non-leap century year, so the five-year horizon returned the zero time for specs such as 0 0 29 2 *. Signed-off-by: wieghx <[email protected]>
|
Hi @wieghx. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
The new spec_test.go is original, not copied from robfig/cron. The previous skip_license_check / robfig attribution was copied from the vendored files in this directory by mistake. Signed-off-by: wieghx <[email protected]>
boilersuite requires Copyright YEAR; the yearless header failed verify-boilerplate with "does not start with expected template type". Signed-off-by: wieghx <[email protected]>
|
/release-note-edit to be more user-facing |
|
/label tide/merge-method-squash |
|
Thanks @lunarwhite — the user-facing release note looks good. |
|
Looks good to me.. unless someone has objections I am ok to approve it Since @SgtCoDFish reviewed it initially we can wait for his LGTM |
SgtCoDFish
left a comment
There was a problem hiding this comment.
/lgtm
/approve
Licence is fixed, I'm happy! Thank you for raising and to everyone else who reviewed 👍
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hjoshi123, SgtCoDFish The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick release-1.21 with claude fable-5 |
|
@wallrj: new pull request created: #9240 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Pull Request Motivation
internal/cronNext()stopped searching after five years. Leap-day schedules such as0 0 29 2 *can have an eight-year gap around a non-leap century year (2096-03-01→2104-02-29), soNextreturned the zero time and renewal windows treated that as aWindowError.Fixes #9148
Kind
/kind bug
Release Note
Verification
go test ./internal/cron/ -count=1— includes a regression for 2096-03-01 → 2104-02-29, the common 4-year leap-day case, and an impossible date that still returns zero.AI
Assisted by Grok (xAI) for locating the horizon, adding tests, and drafting this description. I reviewed the change.