Skip to content

fix(version): derive __version__ from importlib.metadata, bump to 0.1.3#3

Open
anthrax63 wants to merge 1 commit into
mainfrom
agent/full-stack-developer/b0380375
Open

fix(version): derive __version__ from importlib.metadata, bump to 0.1.3#3
anthrax63 wants to merge 1 commit into
mainfrom
agent/full-stack-developer/b0380375

Conversation

@anthrax63

Copy link
Copy Markdown
Member

Summary

Fixes AGG-105 (косметическая часть). After v0.1.2 was released, /healthz kept returning "version":"0.1.1" because pyproject.toml and Chart.yaml were bumped but src/kz_scoring_api/__init__.py wasn't.

  • __init__.py now reads the version from importlib.metadata.version("kz-scoring-api")pyproject.toml is the single source of truth going forward.
  • pyproject.toml and chart/Chart.yaml bumped to 0.1.3 (the 0.1.2 tag is already published with the wrong /healthz.version, so cut a fresh tag).
  • Added test_healthz_version_matches_pyproject so the two sources can't drift again.

The pipeline_run hang (pipeline run 21481 not done in 30.0s) is investigated separately — root cause and findings posted on AGG-105. Fix lives in vaultee-pipelines, not here.

Test plan

  • pytest tests/ — 41 passed (was 40 before, new test added).
  • ruff check . — clean.
  • After merge: cut v0.1.3 tag, verify ghcr.io/aggregion/kz-scoring-api:v0.1.3 is built. DevOps bumps overlay in kartel-deploy.
  • Post-deploy smoke: GET /healthz returns "version":"0.1.3".

- __init__.py: read version from installed package metadata so
  pyproject.toml is the single source of truth. Fixes stale
  /healthz.version=0.1.1 after v0.1.2 was released with __version__
  string not bumped (AGG-105).
- pyproject.toml, chart/Chart.yaml: 0.1.2 -> 0.1.3 (0.1.2 tag is
  already burned with the wrong /healthz.version, cut new tag).
- tests: add test_healthz_version_matches_pyproject to guarantee
  the two sources stay in sync going forward.

Co-authored-by: multica-agent <github@multica.ai>
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