← Back to Pull requests

ci: version dev OCI packages after the last release #493

Closed
unknown closed this pull request without merging on Nov 20, 2026 13:24 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 09:40 UTC
Author

Overview

OCI packages built outside a release tag now get a version like
1.28.0-dev.b8bd53e.glci154300000.g9842e0c4, instead of 0.0.1-9842e0c.

Format: <last release>-dev.b<branch hash>.glci<pipeline id>.g<sha>. This is the same format as the SSI injector (auto_inject). Release tags are unchanged: vX.Y.Z gives X.Y.Z.

Motivation

0.0.1-<sha> does not say which release a dev package is based on, and two dev builds cannot be ordered. Packages promoted to staging for tests should be easy to tell apart.

Additional Notes

  • The logic is in .gitlab/package-version.sh. The same file is in httpd-datadog, nginx-datadog and inject-browser-sdk (IIS, with PACKAGE_TAG_PREFIX=iis- and the parent pipeline id).

  • Only an exact vX.Y.Z tag gives X.Y.Z. Any other tag now gets a dev version.

  • The last release is the highest vX.Y.Z tag, read with git ls-remote. The CI clone is shallow and does not fetch all tags.

  • The version uses the pipeline id, not the job id. The job runs once per arch, and both arches must get the same version.

  • Known limit: if a release tag is pushed between the amd64 and arm64 jobs of one pipeline, the two versions differ. This is rare; rerun the pipeline.

  • Semver orders X.Y.Z-dev... before X.Y.Z, as for auto_inject.
  • References

    Jira ticket: N/A

    Contributor Checklist

  • I am the author of this pull request and I own it.

  • I reviewed every line of this pull request.

  • This pull request follows the Contributing Guidelines.
  • Diff: 197 lines (+147 / -50) across 2 files Reviewer: iamluc Review duration: 3103m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 197 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.316
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #493"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.3% · Safe to merge
    14.3%