node/test/async-hooks
James M Snell 05ad792a07
async_hooks: remove experimental onPropagate option
The `onPropagate` option for `AsyncLocalStorage` is problematic for a
couple of reasons:

1. It is not expected to be forwards compatible in any way with the
   upcoming TC-39 `AsyncContext` proposal.
2. It introduces a non-trivial O(n) cost invoking a JavaScript callback
   for *every* AsyncResource that is created, including every Promise.

While it is still experimental, I recommend removing it while we can
revisit the fundamental use cases in light of the coming `AsyncContext`
proposal.

Refs: https://github.com/nodejs/node/issues/46374
PR-URL: https://github.com/nodejs/node/pull/46386
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2023-02-18 16:01:28 -05:00
..
async-hooks.status test: mark flaky tests on smartos 2022-06-28 18:06:48 +01:00
coverage.md doc: format markdown files in test directory 2021-10-04 20:19:11 -07:00
hook-checks.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
init-hooks.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-await.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-exec-resource-http-32060.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-exec-resource-http.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-exec-resource-match.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-local-storage-args.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-async-await.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-async-functions.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-dgram.js test: add AsyncLocalStorage tests using udp, tcp and tls sockets 2021-11-18 18:42:23 +05:30
test-async-local-storage-enable-disable.js test: improve clarity of ALS-enable-disable.js 2021-04-02 18:37:35 +02:00
test-async-local-storage-enter-with.js async_hooks: add sync enterWith to ALS 2020-03-09 14:24:21 -04:00
test-async-local-storage-errors.js async_hooks: fix AsyncLocalStorage in unhandledRejection cases 2021-12-21 09:33:45 -06:00
test-async-local-storage-gcable.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-http-agent.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-local-storage-http.js async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
test-async-local-storage-misc-stores.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-nested.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-no-mix-contexts.js async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
test-async-local-storage-promises.js async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
test-async-local-storage-socket.js test: add AsyncLocalStorage tests using udp, tcp and tls sockets 2021-11-18 18:42:23 +05:30
test-async-local-storage-thenable.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-local-storage-tlssocket.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-async-wrap-providers.js async_hooks: expose async_wrap providers 2021-11-12 21:48:34 +00:00
test-callback-error.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-crypto-pbkdf2.js
test-crypto-randomBytes.js
test-destroy-not-blocked.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-disable-in-init.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-embedder.api.async-resource-no-type.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-embedder.api.async-resource.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-embedder.api.async-resource.runInAsyncScope.js
test-emit-after-on-destroyed.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-emit-before-after.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-emit-before-on-destroyed.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-emit-init.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-enable-disable.js test: adjust comments for upcoming lint rule 2020-10-07 04:36:02 -07:00
test-enable-in-init.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-filehandle-no-reuse.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-fseventwrap.js test: fix ibmi skip message 2021-03-22 10:56:05 -07:00
test-fsreqcallback-access.js
test-fsreqcallback-readFile.js
test-getaddrinforeqwrap.js
test-getnameinforeqwrap.js
test-graph.fsreq-readFile.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.http.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.intervals.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.pipe.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.pipeconnect.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.shutdown.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.signal.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.statwatcher.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.tcp.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.timeouts.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-graph.tls-write-12.js
test-graph.tls-write.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-http-agent-handle-reuse-parallel.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-http-agent-handle-reuse-serial.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-httpparser-reuse.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-httpparser.request.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-httpparser.response.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-immediate.js
test-improper-order.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-improper-unwind.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-late-hook-enable.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-net-get-connections.js
test-nexttick-default-trigger.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-no-assert-when-disabled.js
test-pipeconnectwrap.js test: work around ENOTEMPTY when cleaning tmp dir 2019-12-12 14:37:05 -05:00
test-pipewrap.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-promise.chain-promise-before-init-hooks.js
test-promise.js
test-promise.promise-before-init-hooks.js
test-querywrap.js
test-queue-microtask.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-shutdownwrap.js
test-signalwrap.js test: permit test-signalwrap to work without test runner 2019-09-08 10:10:38 -07:00
test-statwatcher.js test: unflake async-hooks/test-statwatcher 2020-03-29 22:33:33 +02:00
test-tcpwrap.js test: defer invocation checks 2022-11-10 09:45:35 -03:00
test-timers.setInterval.js
test-timers.setTimeout.js
test-tlswrap.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-ttywrap.readstream.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-udpsendwrap.js dgram: use uv_udp_try_send() 2019-10-05 17:48:10 -07:00
test-udpwrap.js
test-unhandled-exception-valid-ids.js process: ignore asyncId 0 in exception handler 2022-01-18 22:05:12 +01:00
test-unhandled-rejection-context.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
test-writewrap.js
test-zlib.zlib-binding.deflate.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 15:20:48 -05:00
testcfg.py
verify-graph.js tools: add prefer-proto rule 2023-01-19 21:58:10 -03:00