Skip to content

fix(circleci): resolve setup-workflow failure from empty cci-agent-setup.yml#782

Merged
Bryan-Roe merged 3 commits into
mainfrom
chunk/fix-setup-workflow-empty-agent-yaml
Jul 7, 2026
Merged

fix(circleci): resolve setup-workflow failure from empty cci-agent-setup.yml#782
Bryan-Roe merged 3 commits into
mainfrom
chunk/fix-setup-workflow-empty-agent-yaml

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Problem

The setup-workflow (workflow 7346b1cd-26b1-42fb-ac0d-4102ca712954, job #68) failed at the "Merge and continue" step with:

error: Invalid customer job YAML: root is not an object

Additionally, all webhook-triggered pipelines were erroring immediately with:

There are no workflows or build jobs in the config.

Root Causes

  1. .circleci/cci-agent-setup.yml was 0 bytes. The Chunk agent reads this file as customer-provided YAML and merges it into its generated config. An empty file parses as YAML null (not a mapping object), crashing the merge step. The file was created with only a newline in commit 3d73dedb and was never given content.

  2. .circleci/config.yml had no workflows section. Webhook-triggered pipelines use this file directly (bypassing the agent's setup mechanism). Without a workflows stanza 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 — moved version to the top (correct placement) and added a minimal workflows section that references the existing test job, so webhook-triggered pipelines no longer error.

https://app.circleci.com/agents/gh/Bryan-Roe/chat/e0ff81b5-50b5-4d69-ac59-c1de0066b79a

…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
@circleci-app circleci-app Bot requested a review from Bryan-Roe as a code owner July 7, 2026 00:50
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

github-actions Bot and others added 2 commits July 7, 2026 00:55
@Bryan-Roe Bryan-Roe merged commit e2e18cd into main Jul 7, 2026
41 of 52 checks passed
@Bryan-Roe Bryan-Roe deleted the chunk/fix-setup-workflow-empty-agent-yaml branch July 7, 2026 07:24
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🔐 CodeQL — Open Alerts on this PR

Severity Count
note 732
error 115
medium 64
high 92
warning 83
critical 1

Copilot Autofix suggestions (if enabled) appear as inline review comments on the affected lines.
See the full list in the Security tab.

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

Successfully merging this pull request may close these issues.

1 participant