Skip to content

Upgrade CircleCI config to version 2.1 - #43

Open
aossowski wants to merge 1 commit into
masterfrom
chore/circleci-config-2.1
Open

aossowski wants to merge 1 commit into
masterfrom
chore/circleci-config-2.1

Conversation

@aossowski

@aossowski aossowski commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Why

CircleCI removes support for version: 2.0 configs on 2026-09-21. Pipelines still on 2.0 will fail to compile after that date, so this is required, not cleanup.

mantle is worth prioritising alongside pipeline_shared: it ships from git master to p.core and the services rather than as a released version, so a broken build here stays quiet until something downstream trips over it.

What changed

One line — version: 2 → version: 2.1. Nothing else. (version: 2 is the 2.0 schema; the new compiler reports it as end-of-life.) The defaults: &defaults anchor and <<: *defaults merge keys are plain YAML and remain valid in 2.1, so no other migration was needed.

Verification

  • circleci config validate --next — CircleCI's own preview of the September compiler — fails before this change (Config version 2 has reached end of life) and passes after.
  • Compared circleci config process output before and after: identical except for the legacy variable below.

The 2.0 compiler injects a legacy CIRCLE_COMPARE_URL env var into the job; the 2.1 compiler does not. Grepped every repo in the org for it: zero references. With that line filtered out the compiled configs are identical.

Scope

Part of an 8-repo sweep for the same deadline: pipeline_sync, pipeline_email, pipeline_events, pipeline_google, pipeline_dogfood, pipeline_shared, mantle, mailchimp. (pipeline_integrations was already migrated on 2026-09-01.)

The other three announced breaking changes — undeclared parameters, the regex engine update, and the deprecated pipeline.trigger_parameters.* values — affect none of our configs; I checked all of them.

🤖 Generated with Claude Code

Note on the implicit build job

This config has jobs: but no workflows: key, so it relies on CircleCI running the job named build implicitly. That behaviour is intact under 2.1 — confirmed by the passing check on this PR, not assumed.

CircleCI removes support for version 2.0 configs on 2026-09-21. Affected
pipelines fail to compile after that date, so this is a required change
rather than a cleanup.

Verified with `circleci config validate --next`, which previews the new
compiler: this config fails it before the change and passes after.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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