Repository navigation
rust: stop discarding write errors unseen by unused_result_ok (closes #13317) - #13343
Conversation
|
Local run ( |
|
Review: approve All 28 sites named in #13317 are gone on the PR head. No 🤖 Generated with Claude Code |
…13317) Route stderr diagnostics in cli/plan slots, the Cloudflare Pages deploy and process_probe through dx_output::write_stderr; fail the Pages run when its stdout report cannot be written; propagate group lease write errors; report a failed version pin refresh; and add a lint_attributes_test check that rejects drop(write!), drop(writeln!) and `let _ = <expr>.ok();`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
e2ed338 to
a4ed7ff
Compare
Closes #13317
cli/plan/src/slots.rs,deploy/private/src/cloudflare.rs,tools/testing/process_probe/src/main.rs: stderr diagnostics go throughdx_output::write_stderr.deploy/private/src/cloudflare.rs: the check and deploy reports are written in onewrite_all; a failed stdout write is reported and exits 1.cli/process/src/groups.rs:GroupLease::write_line/record/record_unwrittenreturnio::Result;lifecycle.rsreports a failed lease write with its path.cli/adopt/src/version.rs: a failedwrite_version_pinsinrefresh_stale_pinsis reported on stderr.deploy/private/release/tests/*_consumer_test.rs: uncaptured stderr writesexpectsuccess.cli/output/BUILD.bazel:dx_outputis visible to//deployandprocess_probe.tools/ci/lint_attributes_test.rs: new check rejectsdrop(write!(..)),drop(writeln!(..))andlet _ = <expr>.ok();in every Rust source, with fixture tests.Tests:
bazel test //tools/ci:lint_attributes_test //cli/output/... //cli/plan/... //cli/process/... //cli/adopt/... //tools/testing/process_probe/... //deploy/private:dx_deploy_tools_test(result in the comment below). The*_consumer_testtargets were not run locally (CI runs them).🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K