21 Commits

Author SHA1 Message Date
Ashley Mathew
3597c5fd17 Upgrade dependencies 2025-12-08 12:15:46 -05:00
Ashley Mathew
88d7bf3e20 Regularly scheduled upgrade 2025-11-03 12:10:45 -05:00
Ashley Mathew
2a26b59b92 Version bumps for 2025-10-10 2025-10-10 10:16:21 -04:00
Ashley Mathew
822e66adf9 Version bumps 2025-10-03 10:48:02 -04:00
Ashley Mathew
8fd022b282 Bump go version, package versions 2025-09-24 08:36:08 -04:00
Ashley Mathew
10ebf3e489 Bump dependencies 2025-06-09 16:36:47 -04:00
Fei Yang
8b4edf5920 refactor: reap zombie process and opt-out with no-reap flag (#172)
* fix: random waitid error

fix https://github.com/aptible/supercronic/issues/171

* fix(reap): forward signal

* refactor: modify reaper to get supercronic exitStatus

* fix(reaper): unify signal list & fix signal forward

* chore: replace ioutil to io

* fix(test): ci timeout

* opt-out with no-reap flag

Co-authored-by: Josh Raker <48493233+joshraker@users.noreply.github.com>

* fix: typo on signal

* fix: args pass to supercronic

* fix(test): remove removed flag

* chore: remove misleading comment

---------

Co-authored-by: Josh Raker <48493233+joshraker@users.noreply.github.com>
2024-10-10 12:44:43 -04:00
Maximilian Hafer
19d79a3545 Add inotify support (#168)
* implement inotify support

* add integration test and fix wron crontab name for updated fsnotify monitor

* Update README.md

* fix typo in readme

---------

Co-authored-by: YannikBramkamp <74957914+YannikBramkamp@users.noreply.github.com>
2024-09-12 11:53:49 -06:00
Fei Yang
32e229c987 fix: zombie process & upgrade bat & go (#164)
* fix: reap zombie process

https://github.com/aptible/supercronic/issues/88

* upgrade bats

* chore: upgrade go to 1.23.0 and upgrade dependencies

* go: upgrade to 1.23.0 on github workflow

---------

Co-authored-by: Anton S <coder.root@gmail.com>
2024-09-03 12:16:12 -06:00
Chetra Tep
7468d85462 go 1.22.4 (#158)
* go v1.22.3

* 1.22.4

* fix test

* action versions

---------

Co-authored-by: chetra-tep <chetra.tep@rakuten.com>
2024-06-14 15:55:56 -06:00
Vlad
e275ff5aa4 upgrade google.golang.org/protobuf (#153)
Co-authored-by: Karibekov Vladislav <kekaadrenalin@hotmail.com>
2024-04-25 09:08:04 -06:00
Aaron Windsor
65d24fd8fd Update Go to 1.21.4 (#141) 2023-11-21 13:37:08 -05:00
Uncle Fester
ae07d22eaa Update Go and logrus for vulns. (#138)
* Update for vulns.

* Update Makefile

* Update test.yml - install govulncheck.
2023-10-18 10:08:56 -06:00
zwartho
d60fb6522a upgrade github.com/prometheus/client_golang (#133)
* upgrade github.com/prometheus/client_golang

* updated go.sum entries

* updated go.sum entries again
2023-07-21 10:36:24 -06:00
Eric Bower
d3f7883ee6 fix(deps): update golang.org/x/sys (#127)
Closes: https://github.com/aptible/supercronic/issues/126
2023-04-24 10:18:16 -06:00
Simon Schmid
cb9f5c10a0 Update prometheus/client_golang from v1.5.1 to v1.12.2 2022-06-28 17:28:38 +02:00
Eric Bower
298ae31302 bump yaml version (#110) 2022-06-23 11:45:54 -04:00
Eric Bower
53973b62e3 update sys 2022-06-17 13:19:43 -04:00
Thomas Orozco
a3bd41c5d4 Vendor cronexpr in-tree
Rather than depend on a fork, let's incorporate cronexpr directly here.
Cronexpr won't ever receive updates at this point, so keeping it as a
fork so we could switch back to master is a bit pointless.

Incorporating it here into Supercronic gives us CI for free (which we
don't get in a fork), and it makes commits incorporating changes to
cronexpr clearer (since we can see the code changes instead of just a
dependency change).
2020-11-24 08:50:17 +00:00
Thomas Orozco
4438829d14 Update cronexpr to reject out-of-order ranges
If an interval if out of order, it ends up emitting 0000-00-00 00:00:00
as the "next" time, which is undesirable. I patched cronexpr to reject
such intervals, since a workaround is to use e.g. `6,7` instead of
`6-7`.

Since the rejection reason might not be super obvious, this patch also
adds support for printing the errors from cronexpr. That requires
`-debug` for now, largely because we don't know exactly what error to
print (we try various lengths and only some of the errors might be
relevant).

Fixes #63
2020-11-14 16:18:48 +00:00
Stanislav Soloviov
6a0e41f4ca Migration to go 1.14 with go modules and latest versions of external packages
* .travis.yml is modified to ignore `go.sum` diff, because `go mod vendor` command can change
   it any time (as with go 1.14 `go mod vendor` does not require `-mod=readonly`; it's default now)

* `go.mod` and `go.sum` added

* `Gopkg.lock` and `Gopkg.toml` files are removed

* `Makefile` changed to comply with `go 1.14`. Also `-race` flag is added to check tests for race
  conditions

* Data race was detected and fixed in `cron.go`

* `go` version used is `1.14.4` (already fixed behaviour on buggy kernels)
2020-06-05 12:13:56 +03:00