fleetd #613: boot log for role fallback gaps + heartbeat contextHighNudge #616
Reference in New Issue
Block a user
Delete Branch "worker/fleetd-613-f85deb-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes fleetd #613.
Part 1 — role fallback gaps at boot
Fleetd.reportRoleFallbackGaps(cfg), called right aftercfg.validateAll()inmain, logs at INFO:MemberRolewith nofleet.<role>s:pool, naming how many profiles it may land on AND the resolveddefaultProfileFor(role)first choice (the number that actually surprised the reporter on the live host).fleet.charters.<role>:entry.If neither gap exists, nothing is logged (no per-role block on a healthy config).
No behaviour change: the fallback in
FleetConfig#candidateProfiles/CompositePeerLauncher#poolForis untouched — a config with onlyprofiles:and nofleet:block still starts and still spawns, exactly as before. This is a report, not a validation.Part 2 — heartbeat boot line names all 4 settings
LeadHeartbeatLoop#start()'s boot line now also printscontextHighNudge(fleetd #609), alongsideidleAfterSeconds,backoffMsandquietNudgeCap.Tests
RoleFallbackGapReportTest(new, 4 cases) pins the content of both new lines via a realListAppender, including that the resolved first choice followsprofiles:definition order (not hardcoded), that a healthy config logs nothing, and that a config with nofleet:block at all reports every role gapped rather than throwing.LeadHeartbeatLoopTestpin the heartbeat boot line's exact text withcontextHighNudgetrue and false.Both test files raise the
dev.ltms.fleetlogger pastlogback-test.xml's WARN override for the duration of the call (the same seamGitHostShapeReportTestalready uses) — asserting on the emitted log content, not the call site's source text.Build
mvn install(target manually cleared first;mvn cleanis blocked by this session's auto-mode classifier) fromfleetd/in my own worktree:Tests run: 1870, Failures: 0, Errors: 0, Skipped: 0,BUILD SUCCESS.