installer 1.38.0 on main (NOT tagged): an appliance install stops on a system disk below 200 GB; --accept-small-disk for the operator (D83, R-1370); R-1398 filed
gates / gates (push) Failing after 4m26s

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-15 14:32:13 +01:00
1 parent 44715fb38b
commit 92853bed2c
6 files changed
+370 -5

No files matched your search

@@ -0,0 +1,61 @@
== MUTATION: the appliance refusal is a warning
RED on the mutant: 3 failing line(s)
FAIL test_small_disk_a_large_second_disk_does_not_help -- [WARN] This machine's system disk is 128 GB. Felhom needs 200 GB. Nothing was changed. (An operator can install a small test box with --accept-small-disk.)
FAIL test_small_disk_appliance_is_refused_before_anything_changes -- a 128 GB appliance install went on: rc=0 [WARN] This machine's system disk is 128 GB. Felhom needs 200 GB. Nothing was changed. (An operator can install a small
FAIL test_small_disk_the_line_is_200_times_ten_to_the_nine_bytes -- 199999999488 bytes: passes=True wanted False: [WARN] This machine's system disk is 199 GB. Felhom needs 200 GB. Nothing was changed. (An operator can install a sm
== MUTATION: the line is 200 GiB, not 200 x 10^9
*** NOT A RED-PROOF ***: 0 failing line(s)
== MUTATION: the compare lets one sector less pass (-gt against min-512)
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_the_line_is_200_times_ten_to_the_nine_bytes -- 199999999488 bytes: passes=True wanted False: [INFO] system disk: /dev/sda, 199 GB (the minimum is 200 GB)
== MUTATION: a byo host is refused like an appliance
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_byo_host_is_warned_never_refused -- a byo host was stopped: [ERROR] This machine's system disk is 128 GB. Felhom needs 200 GB. Nothing was changed. (An operator can install a small test box with --accept-small
== MUTATION: the flag goes on without marking small_disk
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_flag_goes_on_prints_the_cost_and_marks_it -- [WARN] --accept-small-disk: this machine's system disk (/dev/sda) is 128 GB, below the 200 GB that Felhom needs.
== MUTATION: the cost is not printed
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_flag_goes_on_prints_the_cost_and_marks_it -- the cost is not printed: [WARN] --accept-small-disk: this machine's system disk (/dev/sda) is 128 GB, below the 200 GB that Felhom needs.
== MUTATION: an unreadable size passes on an appliance
*** NOT A RED-PROOF ***: 0 failing line(s)
== MUTATION: two physical volumes: the first one is taken
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_size_that_cannot_be_read_refuses_and_names_the_flag -- two physical volumes: the install went on: [INFO] system disk: /dev/sda, 200 GB (the minimum is 200 GB)
== MUTATION: a RAID's size is taken as a disk's
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_size_that_cannot_be_read_refuses_and_names_the_flag -- a RAID under the group: the install went on: [INFO] system disk: /dev/md0, 200 GB (the minimum is 200 GB)
== MUTATION: the largest disk is read, not the system disk
RED on the mutant: 2 failing line(s)
FAIL test_small_disk_a_large_second_disk_does_not_help -- [INFO] system disk: /dev/sda, 2000 GB (the minimum is 200 GB)
FAIL test_small_disk_size_that_cannot_be_read_refuses_and_names_the_flag -- no size file: the install went on: [INFO] system disk: /dev/sda, 200 GB (the minimum is 200 GB)
== MUTATION: the check runs at the END of the preflight
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_check_is_wired_first_in_the_preflight_and_recorded -- step_preflight no longer calls check_system_disk
== MUTATION: the state does not record small_disk
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_check_is_wired_first_in_the_preflight_and_recorded -- the preflight does not record small_disk in the install state
== MUTATION: the flag is not parsed
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_check_is_wired_first_in_the_preflight_and_recorded -- the flag is not parsed
== MUTATION: the hub is not told
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_is_told_to_the_hub_at_the_enrolment -- the enrolment does not tell the hub: curl -sS -w
== MUTATION: every enrolment says small_disk
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_is_told_to_the_hub_at_the_enrolment -- curl -sS -w
the real file: 0 failing line(s)
15 mutations, 2 not a red-proof
## two mutants redone
== MUTATION: the line is 200 GiB, not 200 x 10^9 (redone: the test set the number itself; it reads the installer's now)
RED on the mutant: 2 failing line(s)
FAIL test_small_disk_flag_goes_on_prints_the_cost_and_marks_it -- [WARN] --accept-small-disk: this machine's system disk (/dev/sda) is 200 GB, below the 200 GB that Felhom needs.
FAIL test_small_disk_the_line_is_200_times_ten_to_the_nine_bytes -- 200049647616 bytes: passes=False wanted True: [ERROR] This machine's system disk is 200 GB. Felhom needs 200 GB. Nothing was changed. (An operator can install a s
== MUTATION: an unreadable size passes on an appliance (redone: the mutant fell through to the other refusal; the test now asks for the right one)
RED on the mutant: 1 failing line(s)
FAIL test_small_disk_size_that_cannot_be_read_refuses_and_names_the_flag -- no pve volume group: the refusal is not the 'cannot read' one: [WARN] Cannot read the system disk's size (no single disk under the 'pve' volume group). Fe
the real file: 0 failing line(s)
2 mutations, 0 not a red-proof