Repository navigation
Drive: disk parent, mmcblk/loop names, password lsblk/cancel - #12717
chessing234 wants to merge 5 commits into
Conversation
|
Verified by source inspection: the disk/physical-partition lookup, digit-suffixed partition naming and cancelled-picker exit changes address the intended paths. No new production regression was established. One new test overstates support for directly queried device-mapper mappings.
Test/documentation correction: In This mapping limitation is pre-existing, not a regression in the disk/physical-partition fix. Suggested change: Make the stub and mapping claim reflect that scope, or implement mapping-aware traversal with an explicit policy for multiple backing devices if that capability is intended. Review informationTest scope: Pinned head Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial inspection and synthesis; independent Opus 5.5 High and GPT 6 Sol Xhigh technical assessments; claims checked against source and targeted evidence, followed by a fresh Astra Medium editorial check. |
|
toned down the dm mapping test claim |
|
toning down the dm mapping test claim next |
|
Reviewed at
I've linked #7974 and #8918 so they close when this merges. The review was done by Claude Opus 5.5 alone. The second opinion (Codex Medium) didn't run because today's review budget was used up. This PR is labelled |
|
For triage: as well as #7974 and #8918, the |
|
I looked at this again because it no longer merges into
I didn't push anything or run anything on a worker this time. Resolving the conflict here would mean replacing this PR's copy of the password script with This review was done by Claude Opus 5.5, with Codex Medium as the second opinion. It was asked to compare the PRs without being told my answer, and it came to the same conclusion on all three parts. It can read my session, so its agreement is not guaranteed to be independent. This now waits on the maintainer. |
[Medium impact] This PR appears safe to merge. SummaryThis PR fixes drive labels for disks with encrypted partitions and fixes partition names for devices such as
Reviews (1) · Last reviewed commit: "Merge upstream quattro." · Reviewed by Greptile |
|
Re-reviewed at
Compared with #9148. In my last comment I preferred the older #9148 for the drive-info fix. That was wrong, because I went by the dates the two PRs were opened. This exact fix, walking up with Reviewed by Claude Opus 5.5, with Codex Medium as the second opinion. Codex found no defects in the change and also put this PR forward over #9148. I gave it the history above, so its agreement is not independent of my reasoning. It also said #8926 was still open, but #8926 was closed on 21 September when it was folded in here. Waiting on the maintainer. |
The stub moves to a scratch bin/ and format-drive runs with only that on PATH, as docs/testing.md has stubs done: a future step that skips sudo then finds no real command to aim at the block device the test picks, instead of running against it. The mkfs-failure case now checks that mkfs.exfat was reached (it grepped for wipefs, which always runs first), and the refusal check's pass line no longer says the opposite of what it checks. The exact count of eight commands and the partition name copied from the code under test are gone: one breaks on any added step, and the other asserts the very naming omacom#12717 fixes, so it would go red on a correct loop or mmcblk name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@pi.dev>
…a failure (#18784) * format-drive: refuse non-block devices and report a failed format as a failure format-drive ran every step unchecked, announced success whatever happened, and accepted any path: a non-block argument made dd create a regular file under /dev and the function still claimed the drive was formatted. The device is now checked with -b before anything runs, a failing step stops the sequence, and the success line prints only when mkfs.exfat succeeded. Fixes #18760 * format-drive: run non-block refusal tests even without a block device The refusal assertions only exercise /dev/no-such-drive and need no hardware, so move them above the device-availability gate; only the device-backed assertions stay gated (Greptile review fix). * Keep format-drive's test honest and off the real device The stub moves to a scratch bin/ and format-drive runs with only that on PATH, as docs/testing.md has stubs done: a future step that skips sudo then finds no real command to aim at the block device the test picks, instead of running against it. The mkfs-failure case now checks that mkfs.exfat was reached (it grepped for wipefs, which always runs first), and the refusal check's pass line no longer says the opposite of what it checks. The exact count of eight commands and the partition name copied from the code under test are gone: one breaks on any added step, and the other asserts the very naming #12717 fixes, so it would go red on a correct loop or mmcblk name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@pi.dev> * Check format-drive passes the label to mkfs.exfat The mkfs check now looks for `-n POC`, so dropping the label from the command fails the test rather than passing while the announcement still names it. The stub's two exits become an if/else per the style guide, and the PATH comment says what the confinement covers: commands looked up by name, not absolute paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@pi.dev> * Partition in one parted call, and keep the test to the refusal The three parted steps carried the same guard, so they run as one invocation with one. The test keeps the case that fails on the base branch, a path that is not a block device, and that nothing runs before the refusal; the rest needed a real device and restated each step. Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test the failure paths again, against a stubbed real device Keeping only the refusal left the fix's second half untested: reverting to announcing success after a failed mkfs.exfat would have passed. The test now runs format-drive on the first block device in /dev with only the sudo stub on PATH, after checking the stub is what will run, and checks a failed wipefs stops the sequence and a failed mkfs.exfat is reported as a failure, each after confirming the step was reached. With no block device it skips. Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Codex Medium <noreply@openai.com> Co-authored-by: muse-wonder via pi, thinking high <noreply@pi.dev>
Summary
Test plan
Fixes #7974
Fixes #8918