75 lines
6.1 KiB
Plaintext
75 lines
6.1 KiB
Plaintext
== MUTATION: K1 removed (the rule's own check of the removal set)
|
|
elif by_name[n] in protected or by_name[n] == newest: -> elif False:
|
|
tests: 7 mutant: Ran 7 tests in 0.119s | FAILED (failures=7) real: Ran 7 tests in 0.116s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 0 != 2 : running: {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'good', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'running':
|
|
AssertionError: 0 != 2 : from: {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'good', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'running': '7
|
|
== MUTATION: the simulation check removed (S1/S2)
|
|
if removal and not [x for x in refuse if x["code"] in ("K1", "N1")]: -> if False:
|
|
tests: 3 mutant: Ran 3 tests in 0.055s | FAILED (failures=3) real: Ran 3 tests in 0.047s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 0 != 2 : {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'good', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'running': '7.0.14-
|
|
AssertionError: 0 != 2 : {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'good', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'running': '7.0.14-
|
|
== MUTATION: the phase check removed (P1)
|
|
elif phase != "good": -> elif False:
|
|
tests: 1 mutant: Ran 1 test in 0.019s | FAILED (failures=1) real: Ran 1 test in 0.072s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 0 != 2 : {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'staged', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'running': '7.0.1
|
|
== MUTATION: the ring-0 check removed
|
|
if not ring0 and not not_run: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.021s | FAILED (failures=1) real: Ran 1 test in 0.047s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 'removed' != 'not_run'
|
|
== MUTATION: the flag check removed (P2)
|
|
if flag: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.021s | FAILED (failures=1) real: Ran 1 test in 0.022s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 0 != 2 : {'kernel': {'default': '7.0.14-28-pve', 'flag': '7.0.14-26-pve', 'from': '7.0.14-26-pve', 'phase': 'good', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'runni
|
|
== MUTATION: the default check removed (P3)
|
|
if pinned is None or pinned != dflt or pinned not in images: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.024s | FAILED (failures=1) real: Ran 1 test in 0.044s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 3 != 2 : {'failed': {'rc': 3, 'reason': 'the default in grub.cfg moved from 7.0.14-28-pve to 7.0.14-26-pve', 'step': 'verify'}, 'kernel': {'default': '7.0.14-26-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': '
|
|
== MUTATION: the not-on-newest rule removed
|
|
if running and newest and running in images and running != newest: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.032s | FAILED (failures=1) real: Ran 1 test in 0.028s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 'removed' != 'not_run'
|
|
== MUTATION: the fell-back rule removed
|
|
elif phase in KERNEL_ENDED_NOT_GOOD: -> elif False:
|
|
tests: 1 mutant: Ran 1 test in 0.035s | FAILED (failures=1) real: Ran 1 test in 0.101s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 'step-not-good' not found in ['not-on-newest'] : {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'fell_back', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at'
|
|
== MUTATION: the plan-names check removed (C1)
|
|
if mode == "kernel-cleanup": -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.020s | FAILED (failures=1) real: Ran 1 test in 0.001s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 0 != 2 : {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'good', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'running': '7.0.14-
|
|
== MUTATION: the no-state-file rule removed
|
|
if raw_state is None or not st: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.036s | FAILED (failures=1) real: Ran 1 test in 0.031s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 2 != 0 : {'kernel_cleanup': {'default': '7.0.14-28-pve', 'dry_run': False, 'installed': {'7.0.14-20-pve': ['proxmox-kernel-7.0.14-20-pve-signed'], '7.0.14-22-pve': ['proxmox-kernel-7.0.14-22-pve-signed'], '7.0.14-2
|
|
== MUTATION: the 20-hour window removed
|
|
if times and self.r.now() - max(times) < KERNEL_MIN_GAP: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.022s | FAILED (failures=1) real: Ran 1 test in 0.016s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 'removed' != 'not_run'
|
|
== MUTATION: the dry run purges (dry-run verdict removed)
|
|
if dry: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.022s | FAILED (errors=1) real: Ran 1 test in 0.049s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
KeyError: 'would'
|
|
== MUTATION: repair-first removed
|
|
if not dry and not not_run: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.032s | FAILED (errors=1) real: Ran 1 test in 0.031s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
KeyError: 'repair'
|
|
== MUTATION: the after-purge proof removed
|
|
if problems: -> if False:
|
|
tests: 1 mutant: Ran 1 test in 0.024s | FAILED (failures=1) real: Ran 1 test in 0.022s | OK
|
|
RED on the mutant, GREEN on the real file
|
|
AssertionError: 0 != 3 : {'kernel': {'default': '7.0.14-28-pve', 'flag': '', 'from': '7.0.14-26-pve', 'phase': 'good', 'reason': None, 'rebooted_at': '2026-10-01T02:51:00Z', 'result_at': '2026-10-01T03:10:00Z', 'running': '7.0.14-
|
|
|
|
14 mutations, 0 not a red-proof
|