Skip to content
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

CLI option to validate jobfiles #321

Open
lurkie opened this issue Dec 3, 2020 · 2 comments
Open

CLI option to validate jobfiles #321

lurkie opened this issue Dec 3, 2020 · 2 comments

Comments

@lurkie
Copy link

lurkie commented Dec 3, 2020

Today, we ran into an issue where a developer of our team entered an invalid time pattern, preventing our jobber container to start. Thinking about how to prevent this kind of errors in the future, I thought about validating the jobfile during CI without running the jobfile. Is such an option available? If not, please consider this a feature request.

@Pigpocket
Copy link

You can do this with jobber test [JOB NAME] when inside a container's runtime terminal /bin/sh

@lurkie
Copy link
Author

lurkie commented Jul 15, 2021

Thanks for the suggesting. I've tried it today, with this result:

$ jobber test CronCleanupSessions
Running job "CronCleanupSessions"...
Jobber doesn't seem to be running for user $ME.
(No socket at /var/jobber/$UID/cmd.sock.): stat /var/jobber/$UID/cmd.sock: no such file or directory

Jobber is not running yet, as we want it to be during the CI build. jobber test would only be usable when the container has been deployed, but I want to prevent deploying an invalid Yaml file. An option to validate a Yaml file syntactically and semantically without an active daemon would still be desirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants