hub (unreleased): the hub keeps and shows which boxes were accepted on a small system disk (D83, R-1398 part 2)
gates / gates (push) Successful in 3m40s
gates / gates (push) Successful in 3m40s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
8378dc446b
commit
c3fa43a486
10 files changed
+407
-1
No files matched your search
@@ -476,7 +476,7 @@ seam (no real disk).
|
||||
| The size cannot be read (no `pve` group, two physical volumes, a RAID, no size) | appliance: stops and names the flag; with the flag it goes on, recorded as small with size „unknown” | `…_size_that_cannot_be_read_refuses_and_names_the_flag` |
|
||||
| A small system disk and a large second one | the system disk decides, in both directions | `…_a_large_second_disk_does_not_help` |
|
||||
| The existing 120 GiB pool warning | stays | `test_lvm_minimum_is_named_as_what_it_does` |
|
||||
| The public image, nobody watching | **NOT built — R-1398.** The first-boot unit runs the installer again until it succeeds, so a refused machine prints the refusal on its own screen every 30 seconds; the hub is not told why, and the hub does not read `small_disk` | — |
|
||||
| The public image, nobody watching | **NOT built — R-1398.** The first-boot unit runs the installer again until it succeeds, so a refused machine prints the refusal on its own screen every 30 seconds; the hub is not told why (R-1398 part 1). **The hub's half of the mark is built, not released (2026-11-15 evening):** the hub keeps `small_disk` from the enrolment and the box's page shows „System disk: small — accepted below 200 GB”; the size shows when an installer sends `system_disk_bytes` (installer 1.38.0 sends only the flag) | hub `TestD83_*`, `TestSmallDisk_*` |
|
||||
|
||||
**The sentences, as built (the installer's output, English only — the installer has no Hungarian text):**
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
## run in a private copy of hub/ (another helper edits the shared tree; a mutation tool rewrites whole files)
|
||||
== MUTATION: a box whose id only starts with this id reads the mark
|
||||
*** NOT A RED-PROOF *** (mutant rc=0 built=True real rc=0)
|
||||
== MUTATION: a size at or above the line is kept
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSmallDisk_NotedPerBox_ReadBack_LookAlikeApart (0.04s)
|
||||
small_disk_test.go:39: size 200000000000 was kept: &{Bytes:200000000000 NotedAt:2026-11-16 09:00:00 +0000 UTC}
|
||||
== MUTATION: told again leaves two marks
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSmallDisk_NotedPerBox_ReadBack_LookAlikeApart (0.05s)
|
||||
small_disk_test.go:30: told again: &{Bytes:128035676160 NotedAt:2026-11-16 09:00:00 +0000 UTC}
|
||||
== MUTATION: an id with a colon makes a mark
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSmallDisk_NotedPerBox_ReadBack_LookAlikeApart (0.05s)
|
||||
small_disk_test.go:45: an id with a colon made 1 mark(s)
|
||||
== MUTATION: the mark is not under the names a box delete removes
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSmallDisk_GoesWithTheBox (0.05s)
|
||||
small_disk_test.go:66: the deleted box's mark stayed: &{Bytes:128000000000 NotedAt:2026-11-15 14:59:58 +0000 UTC}
|
||||
|
||||
5 mutations, 1 not a red-proof
|
||||
== MUTATION: any value of small_disk is the flag
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestD83_OnlyTrueIsTheFlag_AndARefusedRequestMarksNothing (0.04s)
|
||||
d83_small_disk_test.go:77: {"customer_id":"c%d","small_disk":"true"} was read as the flag
|
||||
== MUTATION: the first enrolment does not store the mark
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestD83_EnrolmentStoresTheSmallDiskMark (0.05s)
|
||||
d83_small_disk_test.go:40: the hub did not keep the mark of c1-370d7b: <nil>
|
||||
== MUTATION: a reinstall over the record does not store the mark
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestD83_EnrolmentStoresTheSmallDiskMark (0.05s)
|
||||
d83_small_disk_test.go:48: the size of the second enrolment was not kept: &{Bytes:0 NotedAt:2026-11-15 15:00:10 +0000 UTC}
|
||||
== MUTATION: the size is not read
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestD83_EnrolmentStoresTheSmallDiskMark (0.05s)
|
||||
d83_small_disk_test.go:48: the size of the second enrolment was not kept: &{Bytes:0 NotedAt:2026-11-15 15:00:13 +0000 UTC}
|
||||
|
||||
4 mutations, 0 not a red-proof
|
||||
== MUTATION: the page never shows the line
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestD83_HostPageShowsTheSmallDiskLine (0.06s)
|
||||
d83_small_disk_test.go:34: the page of a box accepted on 128 GB does not say so
|
||||
== MUTATION: every box shows the line
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestD83_HostPageShowsTheSmallDiskLine (0.07s)
|
||||
d83_small_disk_test.go:40: the page of a box the hub was never told about shows the small-disk line
|
||||
== MUTATION: the size is shown in GiB as GB
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestD83_HostPageShowsTheSmallDiskLine (0.06s)
|
||||
d83_small_disk_test.go:34: the page of a box accepted on 128 GB does not say so
|
||||
|
||||
3 mutations, 0 not a red-proof
|
||||
|
||||
== MUTATION: a box whose id only starts with this id reads the mark (redone: the first mutant removed one of TWO guards and was equal in effect; this one removes both)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSmallDisk_NotedPerBox_ReadBack_LookAlikeApart (0.05s)
|
||||
small_disk_test.go:22: "demo-hp-bb76e" reads the mark of another box: &{Bytes:128035676160 NotedAt:2026-11-16 09:00:00 +0000 UTC}
|
||||
--- FAIL: TestSmallDisk_GoesWithTheBox (0.05s)
|
||||
small_disk_test.go:66: the deleted box's mark stayed: &{Bytes:128000000000 NotedAt:2026-11-15 15:00:44 +0000 UTC}
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
Reference in new issue
Block a user