feat(dirty-content-fingerprint): controller/scheduler show fingerprint in --version
controller/main.c and scheduler/src/main.c now compose argp_program_version via a genuinely separate buffer/call to xce_compose_version_ex() (reading STR(VERSION_DIRTY_FINGERPRINT), matching the existing commit_id/build_time macro pattern). The startup-log composition call site -- same function, same arguments, same buffer -- is left completely unchanged in both files. controller/testsuite/test.c (xce_test, confirmed to have no startup log) gets a direct in-place swap. All three files carry explicit comments marking the --version/startup-log divergence as deliberate. Verified independently by review with real builds and live daemon starts: --version shows <commit>-<fingerprint> for all three binaries, matching compile_commands.json; live startup logs for both daemons show the unchanged old <commit>-dirty format with the fingerprint never present. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
7ebcba6d49
commit
fd62e26bce
4 changed files with 49 additions and 8 deletions
|
|
@ -26,9 +26,9 @@
|
|||
- _Requirements: 1.1, 1.2, 1.3, 1.4, 2.1, 3.1, 3.2, 5.2_
|
||||
- _Boundary: utils.h, utils.c_
|
||||
|
||||
- [ ] 3.2 (P) Controller and scheduler: fingerprint in --version, startup log unaffected
|
||||
- `argp_program_version`'s composition call (controller/main.c, scheduler/main.c, controller/testsuite/test.c) passes the new `dirty_fingerprint` value; the startup INFO log line's own composition call is left unchanged, with a code comment marking the divergence as deliberate
|
||||
- Observable confirmed live: on a dirty tree, `xce_controller --version`/`xce_test --version`/`xce_scheduler --version` show the fingerprint suffix; the startup log line for both daemons is byte-identical to the original `build-time-versioning` feature's already-shipped format (with or without the tree being dirty)
|
||||
- [x] 3.2 (P) Controller and scheduler: fingerprint in --version, startup log unaffected
|
||||
- `argp_program_version` for controller/scheduler now composed via a genuinely separate buffer/call to `xce_compose_version_ex()` (reading `STR(VERSION_DIRTY_FINGERPRINT)`, matching the existing commit_id/build_time macro pattern); the startup-log call site's `xce_compose_version()` call, arguments, and buffer are byte-for-byte unchanged (independently verified by review via diff + grep); `controller/testsuite/test.c` (no startup log, confirmed via grep) got a direct in-place swap; all three files carry explicit code comments marking the divergence as deliberate
|
||||
- Observable confirmed live (independently re-verified by review, real builds + live daemon starts): `xce_controller --version`/`xce_test --version`/`xce_scheduler --version` all show `<commit>-<fingerprint>`, cross-checked against `compile_commands.json`; live controller and scheduler startup logs show the old `<commit>-dirty` format unchanged, fingerprint never present, build_time matching `--version` exactly
|
||||
- _Requirements: 1.1, 1.2, 1.3, 1.4, 2.1, 3.1, 3.2, 4.1_
|
||||
- _Boundary: controller/main.c, scheduler/main.c, controller/testsuite/test.c_
|
||||
- _Depends: 3.1_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue