myxce/src/xceadmin
Rongsong Shen c79ccf0fae
feat(dirty-content-fingerprint): xceadmin shows fingerprint in --version
Adds DIRTY_FINGERPRINT = "" to _build_info.py's committed fallback stub
and cli.py's separate ImportError fallback class. New
_compose_version_display() applies the strip-and-append rule via a
genuine anchored removesuffix("-dirty"), mirroring the C/Go
implementations (tasks 3.1/4.4/4.5).

Updates one pre-existing test whose hard-coded literal-GIT_COMMIT
assertion no longer holds once a fingerprint is present, to compute its
expected value via the production function instead -- independently
assessed by review as a legitimate strengthening, not a weakened check.
4 new dedicated unit tests independently guard the transform itself with
hard-coded literal assertions, including an anchored-suffix-not-blind-
substring regression case.

Verified independently by review (including a second, differently-
constructed mutation test) across both install paths via a full real
/xce-build xceadmin cycle: editable install shows "unknown, unknown" with
no import error; wheel built from the dirty tree shows <hash>-<fingerprint>,
never <hash>-dirty-<fingerprint>. 267 passed/3 skipped.

This completes all xceadmin work (tasks 5.1-5.2) for this spec.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 09:20:27 +00:00
..
src feat(dirty-content-fingerprint): xceadmin shows fingerprint in --version 2026-08-21 09:20:27 +00:00
tests feat(dirty-content-fingerprint): xceadmin shows fingerprint in --version 2026-08-21 09:20:27 +00:00
.gitignore feat(admin-config-tool): task 1.3 - nix and xce-build.sh integration 2026-07-22 03:57:43 +00:00
meson-build.sh feat(dirty-content-fingerprint): xceadmin build-info module gains fingerprint 2026-08-21 08:38:50 +00:00
meson-install.sh fix(admin-config-tool): pin xceadmin's python3 to meson's own resolution 2026-07-22 13:07:23 +00:00
meson.build feat(dirty-content-fingerprint): xceadmin build-info module gains fingerprint 2026-08-21 08:38:50 +00:00
pyproject.toml feat(deploy,xceadmin): standalone xceadmin packaging + deploy-ha usability (bug-1566) 2026-08-17 10:20:52 +00:00