Conversation
This was referenced May 31, 2026
# Conflicts: # crates/perry-runtime/src/closure/dispatch.rs # crates/perry-runtime/src/node_submodules/diagnostics.rs # crates/perry-runtime/src/node_submodules/mod.rs # test-parity/node-suite/diagnostics_channel/stores/non-callable-transform.ts # test-parity/node-suite/diagnostics_channel/stores/run-stores-rest-args.ts # test-parity/node-suite/diagnostics_channel/tracing/symbol-name-validation.ts
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.
Summary
Closes #3082
Closes #3085
Closes #3086
Closes #3084
Fixes a diagnostics_channel tracing/store semantics cluster:
Channel#runStorescallback arguments through bound and unbound channelsbindStoretransforms sorunStoresreports Node-compatible asynchronousTypeErrors while continuing the callback without that store contextTracingChannel#traceCallbackcallback position and forwards all target/callback argumentstracingChannel(nameOrChannels)inputs withERR_INVALID_ARG_TYPEwhile keepingchannel(Symbol(...))validWhy These Were Batched
These issues share diagnostics_channel's store/tracing method dispatch path and depend on the same native callback argument plumbing. Fixing them together avoids separate partial fixes around synthetic argument forwarding, tracing callback wrapping, and store transform validation.
Tests Added
node-suite/diagnostics_channel/stores/run-stores-rest-args.tsnode-suite/diagnostics_channel/stores/non-callable-transform.tsnode-suite/diagnostics_channel/tracing/trace-callback-position-args.tsnode-suite/diagnostics_channel/tracing/symbol-name-validation.tsVerification
PATH="/tmp/perry-node25-wrapper:$PATH" node --experimental-strip-types test-parity/node-suite/diagnostics_channel/stores/non-callable-transform.tsPATH="/tmp/perry-node25-wrapper:$PATH" node --experimental-strip-types test-parity/node-suite/diagnostics_channel/stores/run-stores-rest-args.tsPATH="/tmp/perry-node25-wrapper:$PATH" node --experimental-strip-types test-parity/node-suite/diagnostics_channel/tracing/trace-callback-position-args.tsPATH="/tmp/perry-node25-wrapper:$PATH" node --experimental-strip-types test-parity/node-suite/diagnostics_channel/tracing/symbol-name-validation.tsPATH="/tmp/perry-node25-wrapper:$PATH" ./run_parity_tests.sh --suite node-suite --module diagnostics_channel --filter run-stores-rest-argsPATH="/tmp/perry-node25-wrapper:$PATH" ./run_parity_tests.sh --suite node-suite --module diagnostics_channel --filter non-callable-transformPATH="/tmp/perry-node25-wrapper:$PATH" ./run_parity_tests.sh --suite node-suite --module diagnostics_channel --filter symbol-name-validationPATH="/tmp/perry-node25-wrapper:$PATH" ./run_parity_tests.sh --suite node-suite --module diagnostics_channel/tracing --filter trace-callbackPATH="/tmp/perry-node25-wrapper:$PATH" ./run_parity_tests.sh --suite node-suite --module diagnostics_channel/stores-> 5 pass, 0 failPATH="/tmp/perry-node25-wrapper:$PATH" ./run_parity_tests.sh --suite node-suite --module diagnostics_channel/tracing-> 24 pass, 0 failPATH="/tmp/perry-node25-wrapper:$PATH" ./run_parity_tests.sh --suite node-suite --module diagnostics_channel-> 64 pass, 0 failcargo build --release --quiet -p perry -p perry-runtime -p perry-stdlibcargo fmt --all -- --checkgit diff --check origin/main...HEAD./scripts/check_file_size.shjq empty test-parity/known_failures.jsonKnown Limitations
Non-Goals
node:async_hooksAPI changes beyond using existing AsyncLocalStorage store behavior.