woodpecker-ci / woodpecker

Woodpecker is a simple yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
3.88k stars 345 forks source link

Remove misleading crontab guru suggestion from docs #3781

Closed wez closed 3 weeks ago

wez commented 3 weeks ago

Since the underlying syntax is non-standard, it is very confusing and misleading to suggest using a tool with different syntax!

qwerty287 commented 3 weeks ago

Is there an alternative that supports our format?

zc-devs commented 3 weeks ago

https://sysctl.io/crontab-generator https://www.freeformatter.com/cron-expression-generator-quartz.html https://www.programmertools.online/generator/cron_expression.html

qwerty287 commented 3 weeks ago

Your first link gives me a 404, and the others are not our format I think.

They're the "quartz" format and see https://github.com/robfig/cron?tab=readme-ov-file#background---cron-spec-format, the default for our cron scheduler is standard cron, but just with seconds added. quartz adds some more things I think, e.g. year. Also, it looks like we don't have the ?.

I found https://www.freetool.dev/crontab-generator which seems to use exactly our format but it has ads and trackers unfortunately.

Or https://bradymholt.github.io/cRonstrue which is open source but it only supports creating a readable string from a cron and not the other way.

qwerty287 commented 3 weeks ago

To be honestly I think it would be the best to disable seconds in the cron completely as it makes it same to the linux standard format. But that would be a breaking change…

EDIT: Just did that in https://github.com/woodpecker-ci/woodpecker/pull/3785 - let's continue discussion there for this topic.

zc-devs commented 3 weeks ago

Your first link gives me a 404

Yeah, it is working in my general browser (maybe cached), but not working in other or in incognito. I hope it is temporary issue. Anyway, it is self-hosted it-tools project. The same is deployed at https://it-tools.tech/.

qwerty287 commented 3 weeks ago

Ah, yes thanks works for me there (https://it-tools.tech/crontab-generator). This seems fine too. @wez Can you update the link to it?

woodpecker-bot commented 3 weeks ago

Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-3781.surge.sh