hub (unreleased): the System page shows the kernel clean-up and the security-profile refresh; a clean-up no longer hides a kernel step (R-1383)
gates / gates (push) Successful in 2m20s
gates / gates (push) Successful in 2m20s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
e5c643d73d
commit
68292e40f6
14 files changed
+452
-13
No files matched your search
@@ -0,0 +1,44 @@
|
||||
== MUTATION: the clean-up's detail is not sent (the hub shows only „cleaned”)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestKernelCleanup_NightOrderOnceAndNoNames (0.00s)
|
||||
kernel_test.go:408: the clean-up's detail did not reach the hub: <nil>
|
||||
== MUTATION: the clean-up report names a kernel as its release (the hub reads a kernel STEP)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestKernelCleanup_NightOrderOnceAndNoNames (0.00s)
|
||||
kernel_test.go:401: the clean-up's report names a kernel (the hub reads that as a kernel step): {RunID:20261004T040000Z Layer:kernel Trigger:night Mode:kernel-cleanup Ring:0 ReleaseID:7.0.14-22-pve Outcome:cleaned Healthy:true Hea
|
||||
== MUTATION: the clean-up report carries a kernel view
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestKernelCleanup_NightOrderOnceAndNoNames (0.00s)
|
||||
kernel_test.go:401: the clean-up's report names a kernel (the hub reads that as a kernel step): {RunID:20261004T040000Z Layer:kernel Trigger:night Mode:kernel-cleanup Ring:0 ReleaseID:kernel-cleanup Outcome:cleaned Healthy:true He
|
||||
|
||||
3 mutations, 0 not a red-proof
|
||||
== MUTATION: the stanza is built only from memory (an agent restart forgets the box's last refresh)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestProfileRefreshStanza_RecordAndLastAsk (0.00s)
|
||||
profilerefresh_test.go:126: stanza after a refresh = {"rewritten":0,"last_ask":"refreshed","last_ask_at":"2026-11-14T11:30:11Z"}
|
||||
== MUTATION: a failed ask is not remembered
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestProfileRefreshStanza_RecordAndLastAsk (0.00s)
|
||||
profilerefresh_test.go:143: stanza after a failed ask = {"kernel":"7.0.14-28-pve","at":"2026-11-14T11:30:11Z","rewritten":2,"restarted":["chrony.service"]}
|
||||
== MUTATION: nothing to say is sent as an empty stanza, not omitted
|
||||
*** NOT A RED-PROOF *** (mutant rc=1 built=False real rc=0)
|
||||
FAIL gitea.dooplex.hu/admin/felhom-agent/internal/osupdate [build failed]
|
||||
internal/osupdate/profilerefresh.go:62:2: declared and not used: have
|
||||
== MUTATION: a unit name is passed on unchecked
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestProfileRefreshStanza_RecordAndLastAsk (0.00s)
|
||||
profilerefresh_test.go:126: stanza after a refresh = {"kernel":"7.0.14-28-pve","at":"2026-11-14T11:30:11Z","rewritten":2,"restarted":["chrony.service","bad name; rm -rf"],"last_ask":"refreshed","last_ask_at":"2026-11-14T11:30:11Z"
|
||||
|
||||
4 mutations, 1 not a red-proof
|
||||
== MUTATION: main does not wire the profile stanza into the report
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestMainWiresPVETrust (0.02s)
|
||||
pvetrust_wiring_test.go:68: main.go wires "profile refresh → report" 0 time(s), want at least 1 (the two-call ones: at start and after a bundle install)
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
== MUTATION: nothing to say is sent as an empty stanza, not omitted — done again: the first mutant did not compile
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestProfileRefreshStanza_RecordAndLastAsk (0.00s)
|
||||
profilerefresh_test.go:114: before any refresh the stanza is osupdate.ProfileRefreshStatus{Kernel:"", At:"", Rewritten:0, Restarted:[]string(nil), LastAsk:"", LastAskAt:""}, want an untyped nil
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
@@ -0,0 +1,66 @@
|
||||
== MUTATION: the newest kernel-layer report is the step (a clean-up hides a kernel that fell back — the old behaviour)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestKernelLine_CleanupBesideTheStep (0.05s)
|
||||
kernel_cleanup_line_test.go:41: the clean-up HID the step: the step line reads "cleaned" for "", want fell_back for 7.0.14-22-pve
|
||||
== MUTATION: the clean-up line has no detail
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestKernelLine_CleanupBesideTheStep (0.04s)
|
||||
kernel_cleanup_line_test.go:45: the clean-up's own fields: outcome "cleaned" detail <nil>
|
||||
(the third mutation of this group matched two places in the file and did not run; it is done again at the end)
|
||||
== MUTATION: the hub's report struct does not keep kernel_cleanup (lost at ingest)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestKernelLine_CleanupBesideTheStep (0.05s)
|
||||
kernel_cleanup_line_test.go:45: the clean-up's own fields: outcome "cleaned" detail <nil>
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
== MUTATION: left-over paths are not amber
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemCells_KernelCleanupAndSecurityProfiles (0.00s)
|
||||
system_b3_test.go:35: left-over paths must be amber and named: {Text:removed 6, kept 2 · 6.0 GiB gained · 3 h ago · 2 left-over path(s) Class: Title:removed: proxmox-kernel-7.0.2-6-pve-signed, b, c, d, e, f — kept: 7.0.14-26-pve,
|
||||
== MUTATION: a refused or failed clean-up is not amber
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemCells_KernelCleanupAndSecurityProfiles (0.00s)
|
||||
system_b3_test.go:43: refused clean-up: {Text:refused 1 h ago Class: Title:K4: the phase is judging}, want amber with the reason
|
||||
system_b3_test.go:43: failed clean-up: {Text:failed 1 h ago Class: Title:K4: the phase is judging}, want amber with the reason
|
||||
== MUTATION: a failed ask of the profile refresh is not amber
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemCells_KernelCleanupAndSecurityProfiles (0.00s)
|
||||
system_b3_test.go:63: last ask failed: {Text:7.0.14-28-pve · 2 rewritten · 18 h ago · last ask FAILED 1 h ago Class: Title:last ask: failed}, want amber, the failed ask AND the older record
|
||||
system_b3_test.go:63: last ask no_answer: {Text:7.0.14-28-pve · 2 rewritten · 18 h ago · last ask NO_ANSWER 1 h ago Class: Title:last ask: no_answer}, want amber, the failed ask AND the older record
|
||||
--- FAIL: TestSystemPage_ShowsCleanupAndProfiles (0.05s)
|
||||
== MUTATION: the restarted services are not shown
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemCells_KernelCleanupAndSecurityProfiles (0.00s)
|
||||
system_b3_test.go:54: profile cell "7.0.14-28-pve · 2 rewritten · 18 h ago" lacks "restarted chrony.service"
|
||||
== MUTATION: a refused ask (an older wrapper) is amber
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemCells_KernelCleanupAndSecurityProfiles (0.00s)
|
||||
system_b3_test.go:68: a refused ask (an older wrapper) is not a fault: {Text:no refresh yet Class:warn Title:last ask: refused (an older root wrapper that does not know the mode, or a BYO host)}
|
||||
|
||||
5 mutations, 0 not a red-proof
|
||||
== MUTATION: the two cells are built and never put on the row
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemPage_ShowsCleanupAndProfiles (0.06s)
|
||||
system_b3_test.go:86: the System page lacks "removed 1, kept 1"
|
||||
system_b3_test.go:86: the System page lacks "1.0 GiB gained"
|
||||
system_b3_test.go:86: the System page lacks "restarted chrony.service"
|
||||
== MUTATION: the profile cell is not in the needs-attention list
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemPage_ShowsCleanupAndProfiles (0.05s)
|
||||
system_b3_test.go:90: a failed ask of the profile refresh is not under „Needs attention”
|
||||
|
||||
2 mutations, 0 not a red-proof
|
||||
== MUTATION: the hub does not read the profile_refresh stanza
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSystemCells_KernelCleanupAndSecurityProfiles (0.00s)
|
||||
system_b3_test.go:54: profile cell "—" lacks "7.0.14-28-pve"
|
||||
system_b3_test.go:54: profile cell "—" lacks "2 rewritten"
|
||||
system_b3_test.go:54: profile cell "—" lacks "restarted chrony.service"
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
== MUTATION: only the newest report is read (a later step drops the clean-up line) — done again: the first spec matched two places and did not run
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestKernelLine_CleanupBesideTheStep (0.04s)
|
||||
kernel_cleanup_line_test.go:41: the clean-up HID the step: the step line reads "" for "", want fell_back for 7.0.14-22-pve
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
Reference in new issue
Block a user