Skip to content

fix(ci): preserve package versions in release images - #733

Merged
clemensv merged 1 commit into
mainfrom
fix/docker-release-version-0117-a392eeae
Dec 2, 2026
Merged

clemensv merged 1 commit into
mainfrom
fix/docker-release-version-0117-a392eeae

Conversation

@clemensv

@clemensv clemensv commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The signed v0.11.6 image contains the accepted source but reports
0.11.7.dev0 through package metadata and the CLI. Omitting tracked files
through .dockerignore makes the copied Git checkout appear dirty to SCM.
An isolated fixture reproduces the version change by removing only
the tracked .gitignore.

Fixes #732.

Change

Version-tag builds pass XRCG_VERSION from the tag to the package build.
The override is scoped to that build command, not the runtime environment
or dependency installation. Docker construction fails before publication
unless installed metadata and xrcg --version match the requested version.
Unversioned builds retain Git-based version detection.

No generator templates, APIs or dependency constraints change.

Validation

  • Isolated SCM fixture: clean 0.11.6 becomes 0.11.7.dev0 after the
    exclusion; a new release tag would likewise advance incorrectly.
    The supported explicit override produces 0.11.7.
  • Eight executed checks pass: workflow semantic preservation, five actual
    Bash release/development/error cases, and negative/positive controls
    using the actual Dockerfile guard in the published image.
  • Actual release builder emits 0.11.7 wheel/sdist; the unforced
    development builder still emits 0.11.7.dev0.
  • Supplemental Linux candidate test passes as uid 1001: installed metadata,
    generated SCM metadata and CLI all report 0.11.7; pip check passes;
    Avrotize remains 3.9.9; all 608 tracked package files match accepted
    Git bytes. This uses a canonical LF clone, not the rejected Windows-CRLF
    candidate.
  • git diff --check: passed.
  • Exact-head stock Docker workflow:
    build, Cosign verification and summary jobs passed for
    5485611d708add04c79e32f7f4f41d6fa062da40.
  • Normal PR suites:
    all eight substantive suites passed at the same head. DCO also passed.

Full local stock-image installation is not claimed: public PyPI file
downloads fail TLS, and the filesystem-identical index-only mirror lacks
Avrotize 3.9.9. The supplemental runtime test installs the private wheel
without changing dependencies in the previously published, source-correct
dependency image. It is not published-release or stock-image acceptance.
No new distribution relay, TLS bypass or artifact patch was used.

Release gates

All eight normal PR suites, DCO and the exact-head stock Docker workflow
passed. After merge, require fresh accepted-main gates, then publish
fresh immutable v0.11.7 and verify actual publisher
artifacts, PyPI/Git/installed bytes, and package/CLI versions inside the
signed versioned image. Do not replace v0.11.6.

Marketplace publication remains excluded under #721.

Docker context exclusions make the copied Git checkout appear dirty.
Pass the release tag's package version to the isolated package build,
then require installed metadata and CLI output to match before the image
can be published. Keep development builds on existing Git detection.

Refs #732.

Signed-off-by: Clemens Vasters <clemens@vasters.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@clemensv
clemensv merged commit 22e2c63 into main Dec 2, 2026
13 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.

Release Docker image v0.11.6 contains xrcg 0.11.7.dev0

1 participant