Any way to check/test a .space.kts job locally before git push? Follow
Beed doing lots of work on a job to build/test/deploy a .net + docker container, and many minor errors are only noticed after a git push and pipeline run. Is there any way to do a dry run or partial check on local machine before push? Thanks.
Please sign in to leave a comment.
Thank you for reaching out to us!
A job run can be triggered directly from the Space UI. To do this, you can click "Jobs" on the navigation bar, open the "All Runs" tab, and select the needed Job by its name. You can find the "Run" button at the top right corner. After clicking it, a job run will be triggered.
If I get your request right, this should be enough to test how the script or its job component works.
As for running a job from IDE, currently, it is not supported. The corresponding team has confirmed that they would like to add this feature but not in the nearest future. I have filed YT ticket below so you can track the updates on this request:
Please let me know if there is anything else I can help with.
The Drive to Develop
I think you completely missed the point of the question. I do not want to trigger a remote run of the job from the IDE, but rather run the job in some simulation envrionment, or at least test the kts sytax check locally on my computer. This would avoid dozens tiny git commits to fix minor syntax errors, and trials of how to make the kotlin script dsl translate into desired bash script which take ~2 minutes each find. I'm sitting at ~25 already, that's an hour of waiting for these small changes to be sent up and attempted.
Also finding the kotlin script completely un-necessary & clunky to work with with it's odd syntax to handle envars in shell scripts which in my cases are required for almost everything. The pre-build "commands" don't ever quite handle what actually needs to be done, just plain old bash commands do. Also has to be parsed/checked and transformed prior to job run.