fix(I199-followup): use anonymous() in 2 example test sites #3
No reviewers
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
h-dv/ixt-sdk-rust!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/i199-sdk-examples-anonymous-ctor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SDK CI's clippy + check on examples fails after the I198/I199 lockstep merges:
Two stale
InvocationContext::new("test-sender".to_string())calls in the embedded test modules of the example binaries. Both files already useInvocationContext::anonymous(...)correctly elsewhere (lines 484/498). Migrate the 2 remaining sites to match.Pre-1.0 SDK mirror has no
new()constructor —anonymous(source_module: impl Into<String>)is the canonical opaque-actor ctor (matches the runtime's spec 21 InvocationContext shape).Why it slipped through
PR #2's local validation ran
cargo test -p ixt-sdk --libwhich doesn't compile examples. SDK CI's--all-targetsdoes, catching it post-merge.Validation
cargo check --examples— cleancargo test --examples --no-run— cleancargo clippy --all-targets -- -D warnings— cleanFollow-up
After merge, the parent
h-dv/ixtsuperproject pin bump will land separately.🤖 Generated with Claude Code
SDK CI's clippy + check on examples fails after I198/I199 lockstep merge: error[E0599]: no function or associated item named `new` found for struct `ixt_sdk::types::InvocationContext` Two stale `InvocationContext::new("test-sender".to_string())` calls in the embedded test modules of the example binaries: - examples/async_init_demo.rs:627 - examples/lifecycle_demo.rs:648 Both files already use `InvocationContext::anonymous(...)` correctly elsewhere (lines 484/498). Migrate the 2 remaining sites; ship-1.0 SDK mirror has no `new()` constructor — `anonymous(source_module: impl Into<String>)` is the canonical opaque-actor ctor (matches the runtime's spec 21 InvocationContext shape). The miss slipped through PR #2 because `cargo test -p ixt-sdk --lib` doesn't compile examples. SDK CI's `--all-targets` does. Verified locally: cargo check --examples — clean cargo test --examples --no-run — clean cargo clippy --all-targets -- -D warnings — clean Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>