Skip to content

feat: use git commit SHA instead of semver for service versioning#331

Merged
tim-hm merged 1 commit intomainfrom
chore/release-2.0.0
Jan 13, 2026
Merged

feat: use git commit SHA instead of semver for service versioning#331
tim-hm merged 1 commit intomainfrom
chore/release-2.0.0

Conversation

@tim-hm
Copy link
Collaborator

@tim-hm tim-hm commented Jan 13, 2026

No description provided.

- Remove packageJson.version references from main.ts, otel.ts, logger.ts, metrics.middleware.ts
- Add buildinfo.ts module to load commit SHA from buildinfo.json at startup
- Remove version field from BuildInfo type and ReadAboutNodeResponse DTO
- Service version in OTel attributes, metrics, and logging now uses commit SHA
- Falls back to "dev" when buildinfo.json is unavailable (local development)
@tim-hm tim-hm merged commit 47cf83b into main Jan 13, 2026
1 check passed
@tim-hm tim-hm deleted the chore/release-2.0.0 branch January 13, 2026 13:53
@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 76.84% 1168 / 1520
🔵 Statements 76.7% 1195 / 1558
🔵 Functions 81.88% 583 / 712
🔵 Branches 47.46% 178 / 375
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/api/src/main.ts 0% 0% 0% 0% 22-135
packages/api/src/common/buildinfo.ts 100% 100% 100% 100%
packages/api/src/common/logger.ts 10.81% 3.33% 33.33% 10.81% 22-70, 79-104
packages/api/src/common/otel.ts 0% 0% 0% 0% 55-222
packages/api/src/middleware/metrics.middleware.ts 100% 50% 100% 100%
packages/api/src/system/system.controllers.ts 94.59% 50% 100% 94.59% 104-105
packages/api/src/system/system.services.ts 100% 100% 100% 100%
packages/api/src/system/system.types.ts 100% 100% 100% 100%
Generated in workflow #461 for commit d7addea by the Vitest Coverage Report Action

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