Conversation
…d of panicking The proxy recorder subscribes to the (node, output) pairs found by an untyped YAML walk that accepts any string. The node id went through the fallible `parse::<NodeId>()`, but the output id was converted with `.into()` -- `DataId`'s `From<String>`, which panics on an invalid id (e.g. `"bad id"`, `"a//b"`, a leading `/`). Parse both ids fallibly in a small helper and add a regression test. Machine-generated by an automated Claude Code review. Please review carefully. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016ZqAqLhDyZGTnpGHyENnh7
Contributor
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
This was referenced Oct 4, 2026
`cargo deny check advisories` fails every PR's Audit job with `error[yanked]: detected yanked crate` for yoke-derive 0.8.3 (via url -> idna -> icu). `cargo update -p yoke-derive` moves it to 0.8.4; no other lock entry changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R8CSx6yQ4JbrB3dqSiU2ME (cherry picked from commit 2132289)
Collaborator
Author
|
CI note: Generated by Claude Code |
Collaborator
Author
|
🤖 Automated review (fully automated Claude Code review; no human checked it) No issues found.
Generated by Claude Code |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
dora record --proxysubscribes to the(node, output)pairs found bydiscover_descriptor_outputs. That function walks the untyped YAML and accepts any string. The typed parse is deliberately non-fatal.The two ids were converted differently:
parse::<NodeId>()..into(), i.e.DataId'sFrom<String>, which panics on an invalid id (see its doc inlibraries/message/src/id.rs).A descriptor with
outputs: ["bad id"],"a//b"or a leading/therefore crashed the recorder withinvalid DataId 'bad id'instead of returning an error.Fix
Parse both ids fallibly in a small helper,
parse_ws_topics, and returninvalid output ID in topic: …. Operator outputs such asop/outare still accepted.Validation
Class: B
invalid_output_id_in_proxy_topics_is_an_error_not_a_panic: the three invalid forms returnErr, andop/outparses.cargo test -p dora-cli --lib record: ✅ (28 passed)cargo clippy -p dora-cli --all-targets -- -D warnings: ✅,cargo fmt --check: ✅🤖 Generated with Claude Code
https://claude.ai/code/session_016ZqAqLhDyZGTnpGHyENnh7
Generated by Claude Code