You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "villebro (via GitHub)" <gi...@apache.org> on 2026/07/25 21:20:05 UTC
[PR] chore(deps): replace robfig/cron with adhocore/gronx [superset-kubernetes-operator]
villebro opened a new pull request, #238:
URL: https://github.com/apache/superset-kubernetes-operator/pull/238
## Summary
Renovate's dependency dashboard flags `github.com/robfig/cron/v3` as stale — its last commit was in early 2021 and there have been no releases since. This PR replaces it with the actively-maintained [`github.com/adhocore/gronx`](https://github.com/adhocore/gronx) (MIT, last release 2026), which removes `robfig/cron/v3` from the module graph entirely.
While swapping the library, this also **expands** cron support to everything gronx offers: in addition to the classic 5-field form, `cronSchedule` now accepts an optional leading **seconds** field and/or trailing **year** field (6- or 7-field expressions, e.g. `*/30 * * * * *` every 30 seconds, `0 0 2 * * * 2027`). Existing 5-field schedules parse and compute identical ticks, so this is **additive, not breaking**.
`go-co-op/gocron` was considered but rejected: it is a job *scheduler* (wrong shape for our pure requeue-timing math) and it depends on `robfig/cron/v3` internally, so it would not clear the staleness flag.
## Details
- **`internal/schedule/schedule.go`** — rewritten on gronx: `CurrentTick` → `PrevTickBefore(expr, now, true)` (inclusive prev tick), `NextTick` → `NextTickAfter(expr, now, false)` (strictly after), `Validate` → `IsValid`. The hand-rolled `findPrevTick` geometric-doubling loop is deleted — gronx has native previous-tick support.
- **`api/v1alpha1/superset_types.go`** — the `cronSchedule` CEL pattern is relaxed from exactly 5 fields (`{4}`) to 5–7 fields (`{4,6}`), and the field doc updated. Deep per-field range validation is still handled at runtime by `gronx.IsValid`, and the existing `gateOnInvalidSeedSchedule` runtime gate remains the backstop for out-of-range values that pass the coarse admission pattern.
- **Generated artifacts** — CRD YAML, Helm CRDs, and `docs/reference/api-reference.md` regenerated via `make codegen`.
- **Docs** — `docs/user-guide/lifecycle.md` wording updated; changelog entry added under **Added**.
- **Tests** — all existing `internal/schedule` tests pass unchanged (semantic-equivalence acceptance criteria); added outcome tests for 6-field seconds and 7-field year expressions.
## Verification
- `make test-unit` passes (`internal/schedule` 100% coverage, `internal/controller` unaffected)
- `make lint` — golangci-lint reports 0 issues
- `make codegen` is idempotent (no drift); regenerated CRD carries the `{4,6}` pattern
- `robfig/cron` no longer appears anywhere in the tree
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] chore(deps): replace robfig/cron with adhocore/gronx [superset-kubernetes-operator]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #238:
URL: https://github.com/apache/superset-kubernetes-operator/pull/238#issuecomment-5080645470
## [Codecov](https://app.codecov.io/gh/apache/superset-kubernetes-operator/pull/238?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 90.00%. Comparing base ([`158105e`](https://app.codecov.io/gh/apache/superset-kubernetes-operator/commit/158105e393fee33aa793a8df468801c446724e78?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`06a2c3a`](https://app.codecov.io/gh/apache/superset-kubernetes-operator/commit/06a2c3aaa7e2b5ff7e743538e49c0b5ca705246d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset-kubernetes-operator/pull/238?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] chore(deps): replace robfig/cron with adhocore/gronx [superset-kubernetes-operator]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro merged PR #238:
URL: https://github.com/apache/superset-kubernetes-operator/pull/238
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org