Skip to content

Parity fixtures: assert output on 48 request-only generated-alias cases - #335

Merged
poiley merged 3 commits into
rust-cli-portfrom
rust-cli-alias-fixtures
Jul 22, 2026
Merged

Parity fixtures: assert output on 48 request-only generated-alias cases#335
poiley merged 3 commits into
rust-cli-portfrom
rust-cli-alias-fixtures

Conversation

@poiley

@poiley poiley commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Parity backlog: 48 "generated … alias request" fixtures asserted only the emitted HTTP request, with compare: false and no stdout/stderr/exit expectations, so response rendering for those command paths was unverified on both CLIs.

What changed

Fixture-only. Each case's mock already returns {success: true, data: null}; all 48 now additionally assert stdout: "null\n", empty stderr, implicit exit 0, and drop compare: false so Node↔Rust cross-comparison runs.

All 48 pass without any code change, which is itself the useful result: the two CLIs already render these paths identically, and the corpus now enforces it instead of assuming it.

Validation

make cli-parity: 457/457 green.

🤖 Generated with Claude Code

etbyrd and others added 2 commits July 20, 2026 18:54
48 "generated ... alias request" fixtures asserted only the emitted HTTP
request: no stdout, stderr, or exit-code expectation, and Node<->Rust
cross-comparison off. Response rendering for those commands was entirely
unverified on both CLIs.

Each case's mock already returns {success: true, data: null}, so all 48
now assert stdout "null\n", empty stderr, implicit exit 0, and run with
full cross-compare. All pass unchanged, confirming the two CLIs render
these paths identically; the assertions keep it that way.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Jul 21, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
test-fixtures/cli-parity/cases.json Adds stdout and stderr expectations to generated-alias CLI parity cases and re-enables cross-runner comparison.

Reviews (2): Last reviewed commit: "Merge updated rust-cli-port base" | Re-trigger Greptile

Comment thread sdk-node/src/webhook/index.ts
@etbyrd
etbyrd force-pushed the rust-cli-port branch 2 times, most recently from 322c5b5 to 0765fa5 Compare July 21, 2026 17:25
# Conflicts:
#	.github/workflows/rust-cli-release.yml
#	.github/workflows/sdk-checks.yml
#	Makefile
#	cli-rust/src/completion_commands.rs
#	cli-rust/src/friendly.rs
#	cli-rust/src/functions_commands.rs
#	cli-rust/src/help_snapshots.generated.rs
#	cli-rust/src/payments.rs
#	cli-rust/tests/completion_commands.rs
#	scripts/generate-rust-cli-help-snapshots.mjs
#	scripts/run-cli-help-sweep.mjs
#	scripts/run-cli-parity.mjs
#	test-fixtures/cli-parity/cases.json
@poiley poiley mentioned this pull request Jul 21, 2026
@poiley
poiley merged commit feca6e7 into rust-cli-port Jul 22, 2026
19 checks passed
@poiley
poiley deleted the rust-cli-alias-fixtures branch July 22, 2026 20:25
poiley added a commit that referenced this pull request Jul 22, 2026
…339)

PR #335 removed compare:false and added stdout/stderr assertions to the 48
request-only "generated ... alias request" fixtures, but the conflict
resolution when landing #332 reverted them via an ours-wins union. Re-apply
the transformation: assert stdout "null\n" + empty stderr + full Node<->Rust
cross-compare on each (the mocks already return {success:true,data:null}).

make cli-parity: 485 cases green.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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