Skip to content

build: pin Poetry bootstrap to 2.4.0 to avoid min-release-age conflict - #762

Merged
yyyyyyyan merged 1 commit into
mainfrom
pin-poetry-bootstrap
May 19, 2026
Merged

build: pin Poetry bootstrap to 2.4.0 to avoid min-release-age conflict#762
yyyyyyyan merged 1 commit into
mainfrom
pin-poetry-bootstrap

Conversation

@yyyyyyyan

Copy link
Copy Markdown
Contributor

Summary

  • make venv previously installed an unpinned Poetry. On 2026-05-19 that picked up Poetry 2.4.1 + virtualenv 21.3.3 (both fresh). Poetry's plugin resolve for poetry-plugin-export locked virtualenv to that exact version, then solver.min-release-age=7 in poetry.toml filtered it out — make release-prep failed with virtualenv (21.3.3) doesn't match any versions (failed run).
  • Pin Poetry to an aged-in version (POETRY_VERSION?=2.4.0) in the bootstrap so the resolve no longer races against min-release-age. Future Poetry bumps become a deliberate PR.

Test plan

  • Re-run the release workflow with RELEASE_TYPE=prep VERSION=0.13.0make release-prep should reach the wheel build and complete.
  • Local make venv from a clean checkout installs Poetry 2.4.0 and poetry install succeeds.

The Makefile bootstrapped an unpinned Poetry, which on 2026-05-19 pulled in
virtualenv 21.3.3 (released <7 days prior). Poetry's plugin resolve for
`poetry-plugin-export` then locked virtualenv to that exact version while
solver.min-release-age=7 (from poetry.toml) filtered it out, breaking
`make release-prep` with "virtualenv (21.3.3) doesn't match any versions".

Pinning Poetry to an aged-in version (2.4.0) makes CI deterministic and
defers any future bumps to a deliberate PR.
Copilot AI review requested due to automatic review settings May 19, 2026 04:56
@yyyyyyyan
yyyyyyyan requested a review from maxbube as a code owner May 19, 2026 04:56
@yyyyyyyan
yyyyyyyan merged commit d965040 into main May 19, 2026
4 checks passed
@yyyyyyyan
yyyyyyyan deleted the pin-poetry-bootstrap branch May 19, 2026 04:57

Copilot AI 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.

Pull request overview

Pins the Poetry version used by the make venv bootstrap to avoid failures caused by poetry.toml’s solver.min-release-age = 7 filtering out very recent transitive dependencies (e.g., virtualenv) during Poetry plugin resolution.

Changes:

  • Introduces POETRY_VERSION ?= 2.4.0 in the Makefile with explanatory comments.
  • Updates the bootstrap package install list to install poetry==${POETRY_VERSION} instead of unpinned poetry.

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.

2 participants