Skip to content

Commit 6ca9ea8

Browse files
authored
Merge pull request #1474 from DeusData/diag/cohort-unheld-claim
diag(daemon): name the cohort path that admits a mismatched build
2 parents 0d6f26a + 455e9e5 commit 6ca9ea8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/daemon/version_cohort.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,14 @@ cbm_version_cohort_status_t cbm_version_cohort_acquire(cbm_version_cohort_manage
457457
CBM_PRIVATE_FILE_LOCK_EX, &lease->lifetime);
458458
cbm_version_cohort_status_t status = version_cohort_status_from_lock(lock_status);
459459
if (status == CBM_VERSION_COHORT_OK) {
460+
/* No live holder: this participant CLAIMS the cohort and NO identity
461+
* comparison happens — a mismatched build is admitted, not refused.
462+
* That is correct when nothing is running, and it is the only path by
463+
* which a mismatched client can join. Name it: "was the lifetime lock
464+
* held?" is exactly what separates a local run (conflict raised) from
465+
* a CI run (client admitted), and it was not observable in any log. */
466+
cbm_log_info("version_cohort.claimed_unheld", "build",
467+
identity->build_fingerprint ? identity->build_fingerprint : "<null>");
460468
status = version_cohort_claim_new(lease, identity, deadline_ms);
461469
} else if (status == CBM_VERSION_COHORT_BUSY) {
462470
lock_status =

0 commit comments

Comments
 (0)