Skip to content

fix(tests): use the #406 command names in the levels test - #418

Merged
Blogbotana merged 1 commit into
Apibim-com:masterfrom
axisrow:bug/levels-attach-to-assembly
Oct 26, 2026
Merged

Blogbotana merged 1 commit into
Apibim-com:masterfrom
axisrow:bug/levels-attach-to-assembly

Conversation

@axisrow

@axisrow axisrow commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

What

Test-only fix in apps/beamcraft-cli/tests/levels.rs: four call sites still used command names
removed by the #406 verb-first rename — assembly-attach → attach-to-assembly,
workspace-create → create-workspace, workspace-undo/workspace-redo → undo-workspace/
redo-workspace, and plate-inspect → inspect-elements. Every other call site in the suite
already uses the new names.

Why master is red

#404's branch predated #406's rename; its squash re-introduced the old names in a levels.rs
hunk, so copying_connected_assembly_parts_keeps_only_the_level_replays_and_supports_undo_redo
fails on master (red CI since the #411/#404 merge, all three OSes, shard 5/8) with
INVALID_ARGUMENT / UNSUPPORTED_COMMAND on each old name.

Tests

  • cargo test -p beamcraft-cli --test levels: the failing test red on master (reproduced
    locally), all 10 green after the fix.
  • cargo fmt --all -- --check: clean.

No production code changes; the #406 rename contract is restored, not altered.

🤖 Generated with Claude Code

The #404 squash re-introduced pre-rename command names in one levels.rs hunk;
the CLI rejects them, so the assembly copy test fails on master. Restore the
verb-first names: attach-to-assembly, create-workspace, undo-workspace,
redo-workspace and inspect-elements.

Co-Authored-By: Claude Code <[email protected]>
@axisrow
axisrow requested a review from Blogbotana as a code owner October 26, 2026 14:13

@axisrow axisrow left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix(tests): use the #406 command names in the levels test

Verdict: approved. No changes requested.

Reviewed the diff against master at a737573: eight lines in one test of tests/levels.rs, replacing the pre-rename command names with the F04 verb-first names (#406): assembly-attach to attach-to-assembly, workspace-create to create-workspace, workspace-undo and workspace-redo to undo-workspace and redo-workspace, and plate-inspect to inspect-elements.

Verified that every replacement name is the actual command name in src at master (help registry and dispatch), and that the old names exist nowhere in src since #406, so the affected test fails on master today — the regression came from #404, which re-introduced the old names into this test while extending it. The hunk is byte-identical to the one currently carried in the stacked #416; once this lands, #416 should rebase onto it and drop its duplicate copy, which also keeps the fix discoverable as its own change per the one-issue-one-PR rule.

Tests, fmt and clippy were not run in this review; CI covers them.

@axisrow

axisrow commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator Author

Merged on the repository owner's explicit instruction (axisrow, 2026-10-27): the
levels.rs rename fallout from #404 had left master red on all three operating systems and
blocked every open pull request. The fix is reviewed and fully green on this pull request
(all 34 checks pass, including test shard 5/8 on ubuntu, windows and macos).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants