Skip to content

Expose application version and build revision - #51

Merged
Hrabovszki1023 merged 1 commit into
mainfrom
codex/implement-issue-44
Aug 6, 2026
Merged

Hrabovszki1023 merged 1 commit into
mainfrom
codex/implement-issue-44

Conversation

@Hrabovszki1023

Copy link
Copy Markdown
Owner

Summary

  • define public version 0.1.0-beta.1 once and use it for package metadata, REST, OpenAPI and Web
  • add GET /api/v1/version with exact full build revision
  • show public version and short revision in the shared rack/module footer with stable test IDs
  • log name, version and full revision once during startup
  • inject full Git SHA into Docker images and add OCI version, revision and source labels
  • fail CI before versioned publication when a deliberate v... Git tag does not match the public version
  • document the confirmed release rule in the authoritative REST, Web and product contracts

Impact

Operators and future OKW acceptance tests can identify the exact running artifact. Normal main publishing remains unchanged; a versioned beta image is created only by the matching deliberate tag v0.1.0-beta.1, and prereleases never move latest.

Validation

  • PYTHONPATH=src python -m pytest — 242 passed
  • startup identity test — passed
  • python -m ruff check . — passed
  • python -m mypy src tests — passed
  • Python wheel build — pylontech_console-0.1.0b1-py3-none-any.whl
  • git diff --check — passed

The GitHub PR workflow will provide the authoritative Python 3.13 and Docker Buildx verification.

Closes #44

@Hrabovszki1023
Hrabovszki1023 marked this pull request as ready for review August 6, 2026 20:32
@Hrabovszki1023
Hrabovszki1023 merged commit 42f2814 into main Aug 6, 2026
2 checks passed
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.

Expose application version and build revision consistently

1 participant