Skip to content

ci: migrate CircleCI jobs to Gen2 resource classes#940

Open
hdcesario-op wants to merge 2 commits into
ethereum-optimism:mainfrom
hdcesario-op:hdcesario-op/w4-gen2-migration
Open

ci: migrate CircleCI jobs to Gen2 resource classes#940
hdcesario-op wants to merge 2 commits into
ethereum-optimism:mainfrom
hdcesario-op:hdcesario-op/w4-gen2-migration

Conversation

@hdcesario-op
Copy link
Copy Markdown

@hdcesario-op hdcesario-op commented May 22, 2026

Summary

Same-size Gen1 → Gen2 swap for the linux executor in this repo (1 line change in executors:, affects 3 jobs). Part of W4 of the CircleCI cost-reduction initiative — ethereum-optimism/core-team#2564.

Change

File Edit Affects
.circleci/config.yml resource_class: mediummedium.gen2 on the linux executor 3 jobs (developer-discussion-metrics, developer-issue-metrics, developer-pr-metrics)
.circleci/config.yml image: ubuntu-2204:2024.08.1image: ubuntu-2204:current same executor

Why both changes in one PR

The original pin ubuntu-2204:2024.08.1 predates Gen2 support and CircleCI rejects it when paired with medium.gen2 ("Job was rejected because resource class medium.gen2, image ubuntu-2204:2024.08.1 is not a valid resource class"). Bumping to :current matches the pin used by ethereum-optimism/optimism#20927, where the same combo is running green.

Potential downstream effect

Moving the host image from August 2024 to :current shifts the underlying OS and language toolchain versions. If any of the 3 metric-collection jobs pin specific apt packages, Python versions, or generated lockfiles, those may need a refresh. Worth a maintainer review before merging — if jobs pass green, no action needed; if they fail on an environment delta, the fix belongs in the job's setup steps or a follow-up commit.

Precedent

Refs

  • ethereum-optimism/core-team#2564

Same-size swap mirroring ethereum-optimism/optimism#20917 + #20927.
1 `resource_class: medium` → `medium.gen2` token replacement.
No image-pin changes (machine executors, where present, are already pinned).

Refs: ethereum-optimism/core-team#2564
The pinned tag ubuntu-2204:2024.08.1 predates Gen2 resource class support and is
rejected by CircleCI when paired with medium.gen2 ("not a valid resource class"
error). Bump to :current to match the pin used in ethereum-optimism/optimism#20927.

Refs: ethereum-optimism/core-team#2564
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