Skip to content

🚀 [CORE] Detect SemVer diff behind floating tags using OCI version metadata - #1535

Merged
fmartinou merged 1 commit into
mainfrom
feat/1502_semver_diff_digest
Nov 7, 2026
Merged

fmartinou merged 1 commit into
mainfrom
feat/1502_semver_diff_digest

Conversation

@fmartinou

Copy link
Copy Markdown
Collaborator

Description

Closes #1502.

This PR adds SemVer diff detection for digest updates when containers track floating tags (e.g. latest) and images provide OCI version metadata (org.opencontainers.image.version or app.kubernetes.io/version).

Key Changes

  • Core Model & Types:
    • Added optional version?: string property to ContainerImage interface and Joi validation schema.
    • Added 'rebuild' | 'same' to semverDiff union in ContainerUpdateKind.
    • Updated addUpdateKindProperty to parse SemVer versions and compute semverDiff for digest updates when both local image.version and remote result.version are present. If versions are equal (semver.eq), diff is marked as rebuild. If unparseable or error, diff is marked as unknown. If either is missing, semverDiff remains undefined for backward compatibility.
  • Database Persistence & Migrations:
    • Added version column to containerImages and containerResultsHistory in SQLite schema.
    • Added migration 0005_image_and_result_version in app/store/db/migrations.ts.
    • Updated container store methods to persist and retrieve version.
  • Watchers:
    • Extracted OCI version metadata (org.opencontainers.image.version / app.kubernetes.io/version) in Docker, Kubernetes, Nomad, and Swarm watchers.
  • Trigger Evaluation:
    • Updated isThresholdReached and isExcludeThresholdReached in Trigger.ts to evaluate SemVer thresholds whenever semverDiff is defined, regardless of whether kind is 'tag' or 'digest'.
    • Added support for 'rebuild' update kind in triggers.
  • Observability & OpenAPI:
    • Added image_version label to Prometheus container metrics.
    • Documented image.properties.version and updated semverDiff enum in app/api/openapi.yaml.
  • Frontend UI:
    • Updated ContainerImage.vue to display image version when present.
    • Updated ContainerItem.vue and ContainersView.vue to display SemVer status chips (major/minor/patch/rebuild) for digest updates.
    • Added rebuild icon in ContainerUpdate.vue.
  • Documentation:
    • Documented SemVer threshold evaluation for digest updates with OCI version metadata in website/docs/configuration/triggers/README.md.
    • Added changelog entry in website/docs/changelog/next.md.

Validation

  • Unit tests pass cleanly:
    • cd app && npm test (684+ tests passed)
    • cd ui && npm run test:unit (454 tests passed)
  • Code linting:
    • cd app && npm run lint (0 errors)
    • cd ui && npm run lint (0 errors)
  • Documentation:
    • cd website && npm run lint:docs (0 markdownlint and 0 cspell errors)
    • cd website && npm run build (passed cleanly)

@fmartinou
fmartinou merged commit 2b85dbf into main Nov 7, 2026
22 checks passed
@fmartinou
fmartinou deleted the feat/1502_semver_diff_digest branch November 7, 2026 10:31
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.

[Feature] Detect major/minor/patch updates behind latest using OCI version metadata

1 participant