Fix buildCustomJobs() to extract 7 silently-dropped job fields#19539
Fix buildCustomJobs() to extract 7 silently-dropped job fields#19539
Conversation
…imeout-minutes, concurrency, env, container, services, continue-on-error)" Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Fixes buildCustomJobs() so several schema-valid job fields are no longer silently dropped during compilation, ensuring they appear in the generated .lock.yml.
Changes:
- Extend
Jobto supportcontinue-on-errorand render it in job YAML. - Update
buildCustomJobs()to extract and propagate:name,timeout-minutes,concurrency,env,container,services,continue-on-error. - Add unit tests covering extraction/rendering paths via
CompileWorkflow()and directbuildCustomJobs().
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pkg/workflow/jobs.go | Adds ContinueOnError to Job and renders continue-on-error in job YAML output. |
| pkg/workflow/compiler_jobs.go | Extracts previously ignored job fields from custom job configs and populates Job accordingly. |
| pkg/workflow/compiler_jobs_test.go | Adds tests to verify the newly extracted fields are preserved and rendered. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot fix tests CI / build-wasm (pull_request)Failing after 53s |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed in 51b11ba. The issue was that commit Changed Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
ContinueOnError boolfield toJobstruct inpkg/workflow/jobs.gocontinue-on-errorinrenderJobinpkg/workflow/jobs.goname(DisplayName) field inbuildCustomJobs()inpkg/workflow/compiler_jobs.gotimeout-minutesfield inbuildCustomJobs()inpkg/workflow/compiler_jobs.goconcurrencyfield (string and map forms) inbuildCustomJobs()inpkg/workflow/compiler_jobs.goenvfield inbuildCustomJobs()inpkg/workflow/compiler_jobs.gocontainerfield (string and map forms) inbuildCustomJobs()inpkg/workflow/compiler_jobs.goservicesfield inbuildCustomJobs()inpkg/workflow/compiler_jobs.gocontinue-on-errorfield inbuildCustomJobs()inpkg/workflow/compiler_jobs.gopkg/workflow/compiler_jobs_test.goContinueOnErrorto use*boolto distinguish "not set" from "explicit false", preventingcontinue-on-error: falsefrom appearing in all compiled jobsOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.