fix(circleci): resolve setup-workflow failure from empty cci-agent-setup.yml#782
Merged
Merged
Conversation
…nt-setup.yml The setup-workflow (7346b1cd) failed at the "Merge and continue" step with: "Invalid customer job YAML: root is not an object" Root cause: .circleci/cci-agent-setup.yml was 0 bytes. The Chunk agent parses this file as customer YAML and merges it with its generated config; an empty file parses as YAML null (not an object), crashing the merge. Also add a workflows section to config.yml so that webhook-triggered pipelines (which use config.yml directly, bypassing the agent setup) no longer fail with "There are no workflows or build jobs in the config." AI-Generated: true
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Contributor
There was a problem hiding this comment.
Sorry @circleci-app[bot], you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
Signed-off-by: Bryan <74067792+Bryan-Roe@users.noreply.github.com>
Contributor
🔐 CodeQL — Open Alerts on this PR
Copilot Autofix suggestions (if enabled) appear as inline review comments on the affected lines. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
setup-workflow(workflow7346b1cd-26b1-42fb-ac0d-4102ca712954, job #68) failed at the "Merge and continue" step with:Additionally, all webhook-triggered pipelines were erroring immediately with:
Root Causes
.circleci/cci-agent-setup.ymlwas 0 bytes. The Chunk agent reads this file as customer-provided YAML and merges it into its generated config. An empty file parses as YAMLnull(not a mapping object), crashing the merge step. The file was created with only a newline in commit3d73dedband was never given content..circleci/config.ymlhad noworkflowssection. Webhook-triggered pipelines use this file directly (bypassing the agent's setup mechanism). Without aworkflowsstanza CircleCI rejects the config outright.Changes
.circleci/cci-agent-setup.yml— replaced empty file with{}(a valid empty YAML mapping), satisfying the agent's merge step on the "default environment configuration" path used by scheduled pipelines..circleci/config.yml— movedversionto the top (correct placement) and added a minimalworkflowssection that references the existingtestjob, so webhook-triggered pipelines no longer error.https://app.circleci.com/agents/gh/Bryan-Roe/chat/e0ff81b5-50b5-4d69-ac59-c1de0066b79a