Skip to content

fix(project): bump extension projects to the latest runner (LITE-33583)#254

Draft
pcaro wants to merge 1 commit into
fix/LITE-33583-bootstrap-dependency-mismatchfrom
fix/LITE-33583-bump-runner-selection
Draft

fix(project): bump extension projects to the latest runner (LITE-33583)#254
pcaro wants to merge 1 commit into
fix/LITE-33583-bootstrap-dependency-mismatchfrom
fix/LITE-33583-bump-runner-selection

Conversation

@pcaro

@pcaro pcaro commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Stacked on #252 — base is fix/LITE-33583-bootstrap-dependency-mismatch; will retarget to master once #252 merges. Only the last commit (b12ef75) belongs to this PR.

Follow-up to @qarlosh's comment on #252.

Problem

ccli project extension bump selected the runner image by the Connect platform major (get_pypi_runner_version_by_connect_version()). Now that the runner follows its own semver line, that lookup silently picks a stale image.

Fix

  • bump now uses the latest published runner, same as bootstrap.
  • Bumping only the docker images would recreate the dependency mismatch on existing projects (new runner + stale pyproject pins), so bump also rewrites the python and connect-eaas-core entries in [tool.poetry.dependencies] with the specifiers derived from the runner's PyPI metadata. Line-level rewrite — file formatting and dev-dependencies untouched. Skipped if the project has no pyproject.toml.
  • Dropped get_pypi_runner_version_by_connect_version() (no remaining users).

Verification

  • 72 extension tests pass, flake8 clean.
  • test_bump_runner_version now also asserts the pyproject pins get updated and dev-deps stay untouched.

`bump` selected the runner image by the Connect platform major, which is
obsolete now that the runner follows its own semver line — it silently
picked a stale image. Use the latest published runner instead, matching
the bootstrap behavior.

Bumping only the docker images would recreate the bootstrap dependency
mismatch on existing projects (new runner, stale pyproject pins), so
bump now also rewrites the `python` and `connect-eaas-core` entries in
[tool.poetry.dependencies] with the specifiers derived from the runner's
PyPI metadata. The rewrite is line-level to preserve the file's
formatting, and dev-dependencies are left untouched.

Drop the now-unused get_pypi_runner_version_by_connect_version().
@pcaro pcaro requested review from arnaugiralt and qarlosh July 15, 2026 13:10
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