GeezerVison is showing github.com — [v24.x] deps: update undici to 7.30.2 by nodejs-github-bot · Pull Request #67273 · nodejs/node
[v24.x] deps: update undici to 7.30.2
#67273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Uh oh!
There was an error while loading. Please reload this page.
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
240 commits
Select commit
Hold shift + click to select a range
feeeed1
lib: add lint rule to enforce use of `kEmptyObject`
aduh95 Jun 10, 2026
d097b95
test_runner: add support for --test-coverage-include-all
avivkeller Jul 29, 2026
a3624ec
test_runner: extend tag filter with boolean expression DSL
atlowChemi Aug 13, 2026
c27900d
module: do not split a portable compile cache by uid
codebytere Aug 21, 2026
5dcda69
quic: apply multiple fixes to flow control signaling
jasnell Aug 15, 2026
be4cfcb
test: use common spawnSync helpers in more tests
greenheadHQ Aug 28, 2026
eb2f6ec
test: remove `console.log` call in `node_run_list`
aduh95 Aug 29, 2026
f748520
node-api: enter env context for async callbacks
codebytere Aug 30, 2026
deb9b0c
tools: avoid workflow shell interpolation
panva Sep 13, 2026
de7c719
test: update WPT for WebCryptoAPI to 55ce71bb9d
nodejs-github-bot Sep 7, 2026
46ce642
http: reduce per-request allocations in the server
mcollina Sep 19, 2026
5af3be0
test: deflake long timer WPTs
marcopiraccini Sep 19, 2026
ac20c2d
quic: cleanly tear down QUIC after worker.terminate()
pimterry Sep 19, 2026
ae9daa8
perf_hooks: fix truncation of uvMetricsInfo counters
jasnell Sep 17, 2026
666d9c4
doc: use Type for performanceNodeTiming.uvMetricsInfo
jasnell Sep 17, 2026
d26c7a8
perf_hooks: add performanceNodeTiming.uvMetricsInfoBigInt
jasnell Sep 17, 2026
14cc70f
stream: trim per-stream costs in webstreams
mcollina Sep 20, 2026
2b74b0f
meta: bump codecov/codecov-action from 7.0.0 to 7.1.0
dependabot[bot] Sep 20, 2026
3a5e979
perf_hooks: fix PerformanceObserver observer count leaks
jasnell Sep 17, 2026
5a196dd
perf_hooks: track GC callback installation natively
jasnell Sep 17, 2026
376515b
perf_hooks: restore GC tracking after snapshot deserialization
jasnell Sep 17, 2026
7ba72ec
https: handle invalid TLS options in proxied requests
christianaurichzm Sep 20, 2026
6b76fa6
lib: add primitive fast path to structuredClone
araujogui Sep 20, 2026
466ceb7
fs: close fd 0 on discarded FileHandle transfer
christianaurichzm Sep 21, 2026
e6fe0dd
typings: wire up quic internal binding types
agape1225 Sep 21, 2026
96e5fb9
doc: restore XadillaX to collaborators
XadillaX Sep 21, 2026
a34e624
node-api: do not crash on module version mismatch
krassx Sep 21, 2026
aa6a3d9
test: deflake test-benchmark-crypto
panva Sep 20, 2026
d520d5a
test: deflake test-http2-debug
panva Sep 20, 2026
c9ceee9
test: update WPT for WebCryptoAPI to a6a0a0292a
nodejs-github-bot Sep 22, 2026
ae4b586
typings: add mksnapshot internal binding types
leah-1ee Sep 22, 2026
abaaa6a
watch: strip watch flags from NODE_OPTIONS in child process
marcopiraccini Sep 22, 2026
c6425ed
typings: share AsyncWrap and HandleWrap types
leah-1ee Sep 22, 2026
14bc58a
test: deflake pummel/test-timers
panva Sep 22, 2026
ed673e1
fs: close file streams with fd 0
greenheadHQ Sep 22, 2026
b58212e
test: mark some tests flaky for now on riscv64
sxa Sep 4, 2026
de4e5f7
src: free placeholder nodes for cppgc wrappers in MemoryTracker
codebytere Sep 22, 2026
a8b9b14
util: show SuppressedError's error/suppressed properties on inspect
agape1225 Sep 22, 2026
3342161
test_runner: do not reuse a worker ID held by a running file
vserpokryl Sep 22, 2026
1d0b6c6
stream: ensure nested async iterators are cancellation aware
jasnell Aug 30, 2026
de2ced4
stream: make broadcast waiters use SafeSet
jasnell Aug 30, 2026
60b2148
stream: trim per-pipe and per-tee costs in webstreams
mcollina Sep 22, 2026
9d0cedc
doc: document iterable input for AbortSignal.any
haramj Sep 22, 2026
881b21c
src: add a flag to keep the embedder's wasm streaming callback
codebytere Sep 23, 2026
1dd0a9a
doc: clarify Worker execArgv vs Permission Model grants
yunshingng Sep 22, 2026
b69d90d
doc: add return type to Blocklist.isBlocklist
motokaneyuki Sep 23, 2026
c4af19f
test: deflake watch mode tests
panva Sep 23, 2026
2dc06c6
test: update WPT for url to c48d58747e
nodejs-github-bot Sep 23, 2026
95a287e
test: use heapdump test for SecureContext memory tracking
mertcanaltin Sep 23, 2026
4802849
tools: add resume-ci label handling
panva Sep 24, 2026
4db710c
test: accept ENOTEMPTY from libc++ in test-fs-rm
codebytere Sep 24, 2026
21aa2d6
meta: label permission model changes correctly
RafaelGSS Sep 24, 2026
883a430
process: graduate process.ref/unref from experimental
jasnell Sep 24, 2026
c04adc6
perf_hooks: harden histogram CBOR import validation
jasnell Sep 18, 2026
5ec251c
perf_hooks: add histogram.snapshot()
jasnell Sep 18, 2026
6d58ce5
perf_hooks: add histogram.diff()
jasnell Sep 18, 2026
770d016
buffer: fix odd UTF-16LE indexOf start
inoway46 Sep 25, 2026
8c243d7
doc: add indexed `Array.prototype` properties to primordial exclusions
Renegade334 Sep 25, 2026
514c279
crypto: match algorithm names as ASCII
panva Sep 22, 2026
88ebe32
crypto: reject short AES-KW inputs
panva Sep 22, 2026
ae35a8f
crypto: isolate cipher job errors
panva Sep 22, 2026
f6e1dad
crypto: convert getRandomValues views
panva Sep 22, 2026
9cd3d15
crypto: validate normalized hash names
panva Sep 22, 2026
8586689
crypto: allow short AES-GCM IVs
panva Sep 22, 2026
9597c4f
crypto: allow unbound SubtleCrypto.supports
panva Sep 22, 2026
a07712e
crypto: resolve supports overloads by type
panva Sep 22, 2026
e3e0703
crypto: copy detached parameters as empty
panva Sep 22, 2026
7ec1d16
crypto: convert importKey data as a union
panva Sep 22, 2026
8098e37
crypto: copy parameters without array species
panva Sep 22, 2026
dfc96ac
crypto: check RSA JWK alg with SHA-3 hashes
panva Sep 22, 2026
b2e9060
crypto: reject duplicate unknown key usages
panva Sep 22, 2026
4b6e9f5
crypto: handle PBKDF2 iteration limits
panva Sep 22, 2026
a14d443
crypto: copy derived bits without species
panva Sep 22, 2026
d1ac653
crypto: minimize RSA public exponent metadata
panva Sep 22, 2026
253b8e7
crypto: create key usage arrays without species
panva Sep 22, 2026
4a5d366
crypto: derive Argon2 without worker threads
panva Sep 22, 2026
051e785
crypto: report actual RSA modulus lengths
panva Sep 22, 2026
ebf32f5
crypto: split hybrid keys without species
panva Sep 22, 2026
7167b54
crypto: use the public CryptoKey prototype
panva Sep 22, 2026
fa99ce2
crypto: include EC public keys in PKCS8 exports
panva Sep 22, 2026
1d682c6
crypto: map JWK export failures to OperationError
panva Sep 22, 2026
0b5196c
crypto: check EC coordinate conversion results
panva Sep 22, 2026
12dbdcb
benchmark: cover Web Crypto conversion costs
panva Sep 23, 2026
4f7e913
crypto: verify empty KMAC outputs
panva Sep 23, 2026
99640f2
zlib: reject reset while a zstd frame is incomplete
xia-chao Sep 25, 2026
5458d21
module: normalize package map paths
Dansatch Sep 25, 2026
c613879
url: create URLSearchParams collision map lazily
RomainLanz Sep 25, 2026
07cfccc
net: skip IPv6 regex when the string has no colon
anonrig Sep 25, 2026
7ef78fb
test: ensure fsPromises.watch rejects on abort
hanityx Sep 25, 2026
ff02a27
net: speed up BlockList.check for strings
anonrig Sep 25, 2026
7b67993
util,assert: expose util.isPartialDeepStrictEqual()
tlhunter Sep 25, 2026
10a2377
doc,src,test: fix typos in code comments
aguashui Sep 22, 2026
962f52c
test: use spawnSync helpers in cpu-prof tests
DevJunz Sep 1, 2026
2c409d9
src: reserve shared_array_buffers capacity in Message::Deserialize
agape1225 Sep 25, 2026
c5669fb
http: preserve socket errors as response error causes
XadillaX Sep 16, 2026
ccad151
stream: support ArrayBufferView in Utf8Stream write() buffer mode
agape1225 Aug 14, 2026
8ae6c5b
build: add GZIP_COMPRESSION Make variable
inoway46 Sep 25, 2026
0297599
test: deflake debugger function name extraction
panva Sep 26, 2026
437a315
test: deflake inspector async hook setup
panva Sep 24, 2026
d90d232
test: deflake test runner timeout coverage
panva Sep 24, 2026
a1c44f9
deps: update googletest to 4267679b6887f349f17b01ccd70c9e3483689b25
nodejs-github-bot Sep 26, 2026
4fc8c3b
http: normalize CONNECT request paths
efekrskl Sep 26, 2026
8f2553f
build: add clang support for pgo on macOS/Linux
legendecas Sep 26, 2026
b7af4ad
benchmark: fix shadowing that broke h=20 on incoming_headers benchmark
pimterry Sep 26, 2026
22a86a4
zlib: reject reset after gzip/deflate emitted incomplete output
xia-chao Sep 26, 2026
41ca0e8
zlib: preserve brotli params and dictionary on reset
xia-chao Sep 26, 2026
c228ab1
stream: fix pipeline function tail deadlock
dayun6530 Sep 26, 2026
761c3d5
worker: remove messageerror listeners on exit
dayun6530 Sep 26, 2026
16899fe
fs: fix crash on negative zero file descriptor
christianaurichzm Sep 26, 2026
0c9ade5
querystring: speed up default parse and unescape
anonrig Sep 26, 2026
d863075
worker: add Symbol.toStringTag to MessageChannel and MessagePort
lazerg Aug 25, 2026
818c49c
worker: add Symbol.toStringTag to BroadcastChannel
lazerg Aug 25, 2026
f82dea9
typings: wire up spawn_sync internal binding types
agape1225 Sep 27, 2026
c3463de
watch: detect files replaced via unlink and create
marcopiraccini Sep 27, 2026
efaf0a2
tools: check CI availability and workload
panva Sep 27, 2026
5c0bd39
http: avoid toLowerCase on the server hot path
anonrig Sep 25, 2026
6faf61d
buffer: add isLatin1
jasnell Sep 28, 2026
6ba363b
stream: keep webstreams nil requests in fast mode
mcollina Sep 28, 2026
47c08e0
buffer: fix negative index for large buffers
Dansatch Sep 28, 2026
762fd1d
test: use common.PIPE in fs.cp socket tests
maksim-romanov Sep 28, 2026
077d157
deps: upgrade npm to 11.20.0
npm-cli-bot Sep 24, 2026
79c5dae
module: avoid allocating a cache key string for every require()
MarshallOfSound Sep 28, 2026
15ef1df
deps: update zlib to 1.3.2.1-motley-456ae73
nodejs-github-bot Sep 29, 2026
7859d5a
http: add isValidHeaderName() and isValidHeaderValue()
jasnell Sep 27, 2026
0102e7a
benchmark: add http header validator benchmark
jasnell Sep 27, 2026
071f355
benchmark: add a node::MakeCallback benchmark
nigrosimone Sep 26, 2026
f3eb8bf
test: check frame restore in CallbackScope
nigrosimone Sep 26, 2026
24b0739
deps: update lief to 1.0.0
nodejs-github-bot Sep 29, 2026
ff2ad5b
benchmark: add zstdCompress benchmark
Cherry Sep 28, 2026
0cab835
crypto: fix raw key export error for wrong key type
koreahghg Sep 29, 2026
7654e3a
src: fix builds without SSL and SQLite
panva Sep 30, 2026
a5b0616
src: remove `HAVE_QUIC` macro in favor of `OPENSSL_NO_QUIC`
aduh95 Sep 30, 2026
0b2fb0c
test: deflake inspector network fetch
panva Sep 26, 2026
fa710c9
test: deflake debugger PID attachment and cleanup
panva Sep 26, 2026
facfda7
test: deflake inspector close connection test
panva Sep 26, 2026
661222b
test: deflake http server mixed request timeouts
panva Sep 26, 2026
dcbee2f
test: deflake http headers timeout keepalive
panva Sep 26, 2026
a72877c
test: deflake esm loader http imports
panva Sep 26, 2026
d706d5c
test: deflake watch cwd with isolation none
panva Sep 26, 2026
ab975cc
test: probe cluster workers with signal 0
panva Sep 26, 2026
e53047b
test: isolate styleText tests from the environment
panva Sep 26, 2026
a16a13c
src: assert that an IsolateData outlives its Environments
codebytere Sep 22, 2026
0dea8f3
doc: update FreeEnvironment() notes for sibling Environments
codebytere Sep 22, 2026
1a1eb84
fs: stop recursive mkdir from retrying ENOENT forever
marcopiraccini Sep 30, 2026
0e69105
child_process: build the default env block in one native pass
codebytere Sep 30, 2026
30203d5
test_runner: do not crash on stdout that mimics a v8 frame
faizanu94 Oct 1, 2026
9ac0fbc
tools: update gyp-next to 0.22.3
nodejs-github-bot Oct 1, 2026
030ef3b
tools: keep OpenSSL update PRs in draft until arch configs committed
Renegade334 Oct 1, 2026
dd4512a
process: use a class for nextTick resources
mcollina Oct 2, 2026
7cb102e
test: do not hardcode V8 serialization header
joyeecheung Oct 2, 2026
35fd570
tools: bump brace-expansion from 5.0.9 to 5.0.12 in /tools/eslint
dependabot[bot] Oct 2, 2026
fd57ae0
tools: bump brace-expansion in /tools/clang-format
dependabot[bot] Oct 3, 2026
02b6e51
tools: add cache to `lint-js-and-md`
aduh95 Sep 30, 2026
7360801
util: fix inspect indentation of detached DataView
Kjubikstronk Oct 3, 2026
623b31b
benchmark: add implicit-framing case to http/set-header
mcollina Sep 30, 2026
4595f1e
tools: avoid repeated subtree scans in must-call-assert
inoway46 Oct 3, 2026
fda2197
tools: wait for test processes instead of polling
mcollina Oct 3, 2026
7d51ddc
http: cache parser callbacks
mcollina Sep 27, 2026
90747d4
zlib: fix abort with decodeStrings: false
Cherry Sep 29, 2026
7e15b7d
http: avoid dictionary-mode objects in responses
mcollina Sep 30, 2026
4612967
util: make mime parsing faster
jasnell Oct 5, 2026
e72b27a
build: fix vcbuild lint skipping lint-md-build
vedchaudhari Oct 5, 2026
f0adca7
tools: limit format-cpp checkout history
inoway46 Oct 5, 2026
2d8d314
build: fix vcbuild format-md install and exit
vedchaudhari Oct 5, 2026
16ff02f
tools: limit checkout for lint-cpp
inoway46 Oct 5, 2026
eb3a1e1
meta: bump github/codeql-action/upload-sarif from 4.38.0 to 4.38.2
dependabot[bot] Oct 5, 2026
4b8d7d6
meta: bump github/codeql-action/init from 4.38.0 to 4.38.2
dependabot[bot] Oct 5, 2026
982b9cb
meta: bump github/codeql-action/autobuild from 4.38.0 to 4.38.2
dependabot[bot] Oct 5, 2026
709cec3
meta: bump github/codeql-action/analyze from 4.38.0 to 4.38.2
dependabot[bot] Oct 5, 2026
0488018
watch: escape quotes and backslashes in NODE_OPTIONS
trivikr Oct 5, 2026
31b43c2
deps: update histogram to 0.12.0
nodejs-github-bot Oct 6, 2026
fe9ea33
test: update WPT for WebCryptoAPI to 3127c3a492
nodejs-github-bot Oct 6, 2026
d3c8026
test: update test426-fixtures to 9ea66b466fd37e8a4050033d23b3e1480973c3d
nodejs-github-bot Oct 6, 2026
8d748a6
build: do not include shared gtest in `node` link path
aduh95 Oct 11, 2026
06330cf
test: run instantiateStreaming-bad-imports WPT
panva Sep 26, 2026
7bc1f81
meta: bump codecov/codecov-action from 7.1.0 to 7.1.1
dependabot[bot] Oct 3, 2026
7bffdd1
tools: bump the eslint group in /tools/eslint with 5 updates
dependabot[bot] Oct 3, 2026
b84cff9
test: remove duplicated cases in permission fs-read fixture
RafaelGSS Oct 3, 2026
f716617
doc: add missing return types in cluster.md
Cayan Oct 4, 2026
0a24d06
crypto: remove select Web Crypto warnings
panva Oct 4, 2026
79963f4
stream: port remaining SonicBoom tests for Utf8Stream
mcollina Oct 5, 2026
9818249
test_runner: add mock call assertions to t.assert
araujogui Oct 6, 2026
4144f03
watch: strip underscore aliases of watch flags
trivikr Oct 6, 2026
f9f4955
quic: destroy stream on invalid promise body
christianaurichzm Oct 6, 2026
76b639e
doc: run license-builder
github-actions[bot] Oct 7, 2026
4938ab9
tools: copy hdr_histogram_internal.h in update-histogram.sh
fcostaoliveira Oct 7, 2026
756ad11
doc: clarify node binary misuse after compromise
RafaelGSS Oct 7, 2026
0fb5843
crypto: skip secret key mutex allocation
panva Sep 30, 2026
bbe2394
crypto: remove RSA-OAEP key locking
panva Sep 30, 2026
1910ae8
crypto: remove verify setup key locking
panva Sep 30, 2026
6ee93af
crypto: isolate provider EC PKCS8 encoding
panva Oct 1, 2026
69ef95d
doc: clarify revert PR label policy
aduh95 Oct 7, 2026
2744e34
test_runner: report load errors with --test-isolation=none
lazerg Oct 8, 2026
1551f16
doc: fix request.reusedSocket timeout example
efekrskl Sep 25, 2026
99f30d8
doc: document keepAliveTimeoutBuffer server option
efekrskl Sep 25, 2026
9389dd4
doc: clarify http Agent keepSocketAlive behavior
efekrskl Oct 8, 2026
eb4064a
child_process: propagate config-file permission flags to children
RafaelGSS Oct 8, 2026
5c94136
benchmark: fix url-searchparams-sort to sort a fresh list
RafaelGSS Oct 5, 2026
6aaf667
sqlite: validate aggregate() name and options
araujogui Oct 9, 2026
17c3a4d
test: tolerate async block count updates in test-fs-stat-bigint
RafaelGSS Oct 10, 2026
ffda0b0
process: mark process.finalization as release candidate
mcollina Oct 1, 2026
43f468d
stream: fix Utf8Stream flush handling
jasnell Oct 3, 2026
126b303
benchmark: add util.parseArgs benchmark
RafaelGSS Oct 10, 2026
09bce78
http2: speed up response getHeaders
rozzilla Oct 10, 2026
88f4e12
benchmark: fix buffer option in buffer read/write benchmarks
RafaelGSS Oct 10, 2026
2d2c9a7
test_runner: rerun failing todo tests in suites
barakor Oct 10, 2026
aa3b72b
benchmark: fix input passed to subtle.digest in webcrypto-digest
RafaelGSS Oct 10, 2026
dd0e725
stream: keep share buffer when all consumers detach
jasnell Oct 3, 2026
6491f01
stream: bound pre-batched async values in from()
jasnell Oct 3, 2026
5c95c1f
stream: fix fromSync() async input error messages
jasnell Oct 3, 2026
d1059dd
deps: update simdjson to 5.0.3
lemire Oct 9, 2026
e5248ee
build: support Python 3.15
MikeMcC399 Oct 11, 2026
f4dead1
module: fix require of imports with package map
lazerg Oct 11, 2026
9affbed
lib: fix AbortSignal.any() nested composite leak
DariusHQ Oct 12, 2026
6ff20e9
meta: bump nodejs/node-pr-labeler to dfe5eb3
soulee-dev Oct 12, 2026
22561b0
build: run QUIC CI for V8 changes
inoway46 Oct 12, 2026
b49f4ec
http: reduce raw header name allocations
rozzilla Oct 12, 2026
bcb1ebb
deps: update sqlite to 3.54.0
nodejs-github-bot Oct 12, 2026
7d11f19
deps: update acorn to 8.19.0
nodejs-github-bot Oct 12, 2026
0dc3498
querystring: fix value decoding after encoded keys
vedchaudhari Oct 13, 2026
0766e26
stream: skip idle webstreams start and watchers
mcollina Sep 30, 2026
d05e32b
deps: update googletest to 988ea2c1798de7779f656df2281dd36d6039a17a
nodejs-github-bot Oct 13, 2026
da6a298
doc: list futimes among fd APIs disabled by the permission model
RafaelGSS Oct 13, 2026
b123ad3
src: release uv_fs_t in permission WildcardIfDir
RafaelGSS Oct 13, 2026
978ad84
tools: restore Python 3.14 for daily WPT
panva Oct 13, 2026
fbb832f
permission: keep explicit fs grants when dropping a covering directory
RafaelGSS Oct 13, 2026
9847a56
src: fix the fs permission tree node on wildcard nodes
jasnell Sep 19, 2026
736229e
tools: use self-repository references
panva Sep 13, 2026
2538ce8
crypto: use current FIPS state for availability
panva Sep 23, 2026
d5367e0
crypto: use internal random buffer bounds
panva Sep 22, 2026
3113be3
test: reduce expensive crypto test variants
panva Sep 25, 2026
93b5e5a
crypto: separate conversion from validation
panva Sep 22, 2026
a0d2fb3
crypto: use backend cSHAKE and KMAC
panva Sep 23, 2026
bb1def2
crypto: improve random synchronous number generation performance
mertcanaltin Oct 3, 2026
5e2b640
test: scope Blob WPT failures to big-endian
panva Sep 26, 2026
a4b6853
test: honor allowed WPT promise rejections
panva Sep 26, 2026
47811d8
crypto: remove KEM key locking
panva Sep 30, 2026
a531093
crypto: remove key export and metadata locks
panva Sep 30, 2026
145c7da
doc: list CVE-2026-106072 in v24 changelog
inoway46 Oct 24, 2026
792f0d7
deps: update undici to 7.30.2
nodejs-github-bot Nov 5, 2026
File filter
Filter by extension
.1
(1)
.js
(3)
.md
(2)
.mjs
(5)
All 4 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Hide whitespace
Diff view
Hide whitespace
test_runner: extend tag filter with boolean expression DSL
Upgrades the experimental tag filter introduced by stage 1 to accept a
boolean expression instead of a literal tag name.
Grammar: `and`/`&&`, `or`/`||`, `not`/`!`, parentheses for grouping,
and `*` wildcards inside identifiers. Standard precedence
(`not > and > or`); binary operators are left-associative. Word forms
require whitespace separation; punctuation forms do not. Untagged
tests evaluate `false` for any include expression and `true` for
`not X`, so excluding tags does not accidentally remove untagged
tests.
The flag and `testTagFilters` option are still repeatable; multiple
expressions still AND together. Malformed expressions fail fast at
the parent process at startup.
Tag value validation tightens to reject whitespace, operator
characters (`& | ! ( ) *`), and the reserved words `and`/`or`/`not`
in any casing - a breaking change relative to the stage 1 ship,
acceptable at Stability 1.0 (Early development).
Signed-off-by: atlowChemi <[email protected] >
PR-URL: #63054
Reviewed-By: Moshe Atlow <[email protected] >
Reviewed-By: Benjamin Gruenbaum <[email protected] >
Loading branch information
Uh oh!
There was an error while loading. Please reload this page.
commit a3624eca47280a42b6b386a5ef0c6ba720ba6f02
There are no files selected for viewing
Original file line number
Diff line number
Diff line change
Expand Up
@@ -1311,22 +1311,28 @@ Enable module mocking in the test runner.
This feature requires `--allow-worker` if used with the [Permission Model][].
### `--experimental-test-tag-filter=<tag> `
### `--experimental-test-tag-filter='<expr>' `
<!-- YAML
added: v24.19.0
-->
> Stability: 1.0 - Early development
Run only tests whose tag set contains `<tag>`. Tests declare tags via the
`tags` option on `test()`, `it()`, `suite()`, or `describe()`; tags
inherit from suites to nested tests by union. Filtering is
case-insensitive.
Run only tests that match the provided boolean tag-filter expression. Tests
declare tags via the `tags` option on `test()`, `it()`, `suite()`, or
`describe()`. Tags inherit from suites to nested tests by union.
The flag may be specified more than once; tests must contain **every**
filter value to run. See [Test tags][] for details on declaring and
inheriting tags.
The expression supports boolean operators (`and`/`&&`, `or`/`||`,
`not`/`!`), parentheses for grouping, and `*` wildcards inside identifiers.
Standard precedence applies: `not` binds tighter than `and`, which binds
tighter than `or`. See [Test tags][] for the full grammar and behavior.
The flag may be specified more than once; multiple expressions are combined
with AND, so a test must satisfy every expression to run.
A malformed expression causes the test runner to exit with a non-zero status
before running any tests.
### `--experimental-transform-types`
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -488,8 +488,8 @@ added: v24.19.0
Tags annotate tests and suites with arbitrary string labels. The
[`--experimental-test-tag-filter`][] CLI flag (or the `testTagFilters`
option on [`run()`][]) selects tests whose tag set contains every
provided filter value .
option on [`run()`][]) selects tests by a boolean expression over those
labels .
Tags are an alternative to encoding metadata into test names. They are
useful for cross-cutting axes such as subsystem, speed bucket, flakiness,
Expand Down
Expand Up
@@ -522,37 +522,89 @@ describe('database', { tags: ['db'] }, () => {
});
```
Tag values must be non-empty strings. Tags are matched case-insensitively;
the canonical form is lowercase. Duplicates within a single `tags` array
are collapsed on the lowercased form, preserving the first-seen
declaration order.
Tag values must be non-empty strings that contain no whitespace, no
operator characters (`& | ! ( ) *`), and are not the reserved words
`'and'`, `'or'`, or `'not'` in any casing. Tags are matched
case-insensitively; the canonical form is lowercase. Duplicates within a
single `tags` array are collapsed on the lowercased form, preserving the
first-seen declaration order.
Hooks (`before`, `after`, `beforeEach`, `afterEach`) do not declare their
own tags. They run as part of their owning suite, which carries the
suite's tags.
### Filtering by tag
### Filtering syntax
Each [`--experimental-test-tag-filter`][] value is a literal tag name. A
test runs only when its tag set contains that name. The flag may be
specified more than once; tests must match **every** filter to run. The
same applies to the `testTagFilters` array on [`run()`][]. Filters are
case-insensitive and AND'd with [`--test-name-pattern`][],
[`--test-skip-pattern`][], and `.only` filtering.
The filter expression supports:
Untagged tests are excluded under any non-empty filter, since the filter
requires the tag to be present.
* Identifiers—any non-whitespace, non-operator characters. A literal
identifier matches a tag of the same value (case-insensitive).
* `*` wildcards inside an identifier match any sequence of characters.
A bare `*` matches any tagged test.
* Boolean operators with two equivalent forms:
* `and` / `&&`
* `or` / `||`
* `not` / `!`
* Parentheses for grouping.
### Reading tags from inside a test
The word forms (`and`, `or`, `not`) require whitespace separation; the
punctuation forms do not.
#### Operator precedence
The expression is evaluated with the standard precedence
`not > and > or`. Binary operators are left-associative.
| Expression | Equivalent grouping |
| -------------- | ------------------- |
| `a or b and c` | `a or (b and c)` |
| `not a and b` | `(not a) and b` |
Use parentheses to override:
| Expression | Selects |
| ------------------------------ | ------------------------------------------ |
| `(unit or smoke) and not slow` | unit-or-smoke tests that are not also slow |
| `db && !flaky` | db tests that are not flaky |
| `*` | every tagged test |
#### Untagged tests
Untagged tests behave as if they have an empty tag set. As a result:
| Filter expression | Untagged test | Why |
| ------------------------ | ------------- | ------------------------------------------------ |
| `db` | excluded | Positive match against an empty tag set is false |
| `*` | excluded | The bare wildcard requires at least one tag |
| `db or unit` | excluded | Both branches are false against an empty tag set |
| `not flaky` | included | Negation against an empty tag set is true |
| `not flaky and not slow` | included | Both negations are true against an empty tag set |
| `db or not flaky` | included | The negated branch is true |
For example, `--experimental-test-tag-filter='not flaky'` runs every test
that is not tagged `flaky`, including all untagged tests.
#### Composing multiple filters
[`--experimental-test-tag-filter`][] may be specified more than once on the
command line. Multiple expressions compose by AND—a test must satisfy
every expression to run. The same applies to passing an array to
`testTagFilters` on [`run()`][]. The tag filter is also AND'd with
[`--test-name-pattern`][], [`--test-skip-pattern`][], and `.only`
filtering.
#### Reading tags from inside a test
The [`TestContext`][] object exposes the test's tags as a frozen array
through [`context.tags`][], so tests can branch on their own metadata.
### Errors
#### Errors
A tag value that violates the validation rules above throws
`ERR_INVALID_ARG_VALUE` at the registration site, before any test runs.
A non-array `tags` value throws `ERR_INVALID_ARG_TYPE`.
A non-array `tags` value throws `ERR_INVALID_ARG_TYPE`. A malformed
filter expression on the CLI causes the test runner to exit with a
non-zero status before running any test files.
## Extraneous asynchronous activity
Expand Down
Expand Up
@@ -825,7 +877,7 @@ test runner functionality:
* `--test` - Prevented to avoid recursive test execution
* `--experimental-test-coverage` - Managed by the test runner
* `--experimental-test-tag-filter` - Filter values are validated by the parent
* `--experimental-test-tag-filter` - Filter expressions are validated by the parent
process and re-emitted to child processes
* `--watch` - Watch mode is handled at the parent level
* `--experimental-default-config-file` - Config file loading is handled by the parent
Expand Down
Expand Up
@@ -1737,10 +1789,11 @@ changes:
For each test that is executed, any corresponding test hooks, such as
`beforeEach()`, are also run.
**Default:** `undefined`.
* `testTagFilters` {string|string\[]} A tag name, or an array of tag names,
used to filter tests by their declared tags. Tests must contain every
listed tag to run. Equivalent to passing [`--experimental-test-tag-filter`][]
on the command line. See [Test tags][]. **Default:** `undefined`.
* `testTagFilters` {string|string\[]} A boolean expression, or an array of
boolean expressions, used to filter tests by their declared tags.
Multiple expressions compose by AND. Equivalent to passing
[`--experimental-test-tag-filter`][] on the command line. See
[Test tags][]. **Default:** `undefined`.
* `timeout` {number} A number of milliseconds the test execution will
fail after.
If unspecified, subtests inherit this value from their parent.
Expand Down
Expand Up
@@ -4915,7 +4968,7 @@ test.describe('my suite', (suite) => {
[`'test:watch:restarted'`]: #event-testwatchrestarted
[`--experimental-test-coverage`]: cli.md#--experimental-test-coverage
[`--experimental-test-module-mocks`]: cli.md#--experimental-test-module-mocks
[`--experimental-test-tag-filter`]: cli.md#--experimental-test-tag-filtertag
[`--experimental-test-tag-filter`]: cli.md#--experimental-test-tag-filterexpr
[`--import`]: cli.md#--importmodule
[`--no-strip-types`]: cli.md#--no-strip-types
[`--test-concurrency`]: cli.md#--test-concurrency
Expand Down
13 changes: 13 additions & 0 deletions
13
doc/node.1
Original file line number
Diff line number
Diff line change
Expand Up
@@ -279,6 +279,19 @@ Enable code coverage in the test runner.
.It Fl -experimental-test-module-mocks
Enable module mocking in the test runner.
.
.It Fl -experimental-test-tag-filter Ns = Ns Ar '<expr>'
Run only tests that match the provided boolean tag-filter expression. Tests
declare tags via the \fBtags\fR option on \fBtest()\fR, \fBit()\fR, \fBsuite()\fR, or
\fBdescribe()\fR. Tags inherit from suites to nested tests by union.
The expression supports boolean operators (\fBand\fR/\fB&&\fR, \fBor\fR/\fB||\fR,
\fBnot\fR/\fB!\fR), parentheses for grouping, and \fB*\fR wildcards inside identifiers.
Standard precedence applies: \fBnot\fR binds tighter than \fBand\fR, which binds
tighter than \fBor\fR. See Test tags for the full grammar and behavior.
The flag may be specified more than once; multiple expressions are combined
with AND, so a test must satisfy every expression to run.
A malformed expression causes the test runner to exit with a non-zero status
before running any tests.
.
.It Fl -experimental-transform-types
Enable transformation of TypeScript-only syntax into JavaScript code.
.
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -12,6 +12,7 @@ const {
ArrayPrototypePush,
ArrayPrototypePushApply,
ArrayPrototypeShift,
ArrayPrototypeSlice,
ArrayPrototypeSome,
ArrayPrototypeSort,
MathMax,
Expand Down
Expand Up
@@ -93,7 +94,7 @@ const {
parseCommandLine,
} = require('internal/test_runner/utils');
const {
validateAndCanonicalizeTagFilter ,
parseTagFilterExpression ,
} = require('internal/test_runner/tag_filter');
const { Glob } = require('internal/fs/glob');
const { once } = require('events');
Expand Down
Expand Up
@@ -182,7 +183,7 @@ function getRunArgs(path, { forceExit,
inspectPort,
testNamePatterns,
testSkipPatterns,
testTagFilters ,
testTagFilterExpressions ,
only,
hasFiles,
testFiles,
Expand Down
Expand Up
@@ -224,8 +225,8 @@ function getRunArgs(path, { forceExit,
if (testSkipPatterns != null) {
ArrayPrototypeForEach(testSkipPatterns, (pattern) => ArrayPrototypePush(runArgs, `--test-skip-pattern=${pattern}`));
}
if (testTagFilters != null) {
ArrayPrototypeForEach(testTagFilters , (value ) => ArrayPrototypePush(runArgs, `--experimental-test-tag-filter=${value }`));
if (testTagFilterExpressions != null) {
ArrayPrototypeForEach(testTagFilterExpressions , (expr ) => ArrayPrototypePush(runArgs, `--experimental-test-tag-filter=${expr }`));
}
if (only === true) {
ArrayPrototypePush(runArgs, '--test-only');
Expand Down
Expand Up
@@ -872,19 +873,37 @@ function run(options = kEmptyObject) {
});
}
// The public contract of testTagFilters is `string | string[]`. The
// parseCommandLine bootstrap path piggybacks the already-parsed AST array
// on the same field, identifiable by the sibling testTagFilterExpressions
// field which only that path sets. When that marker is present and the
// first element isn't a string, treat the array as ASTs and skip the
// public validation loop. Otherwise validate every element as a string,
// so any non-string input throws ERR_INVALID_ARG_TYPE with the offending
// index regardless of position.
let testTagFilterExpressions = null;
if (testTagFilters != null) {
if (!ArrayIsArray(testTagFilters)) {
testTagFilters = [testTagFilters];
}
if (testTagFilters.length === 0) {
testTagFilters = null;
} else if (options.testTagFilterExpressions != null &&
typeof testTagFilters[0] !== 'string') {
// Internal bootstrap: trust the AST array as already-parsed.
} else {
emitExperimentalWarning('Test tags');
testTagFilters = ArrayPrototypeMap(testTagFilters, (value, i) => (
validateAndCanonicalizeTagFilter(value, `options.testTagFilters[${i}]`)
));
testTagFilterExpressions = ArrayPrototypeSlice(testTagFilters);
testTagFilters = ArrayPrototypeMap(testTagFilters, (value, i) => {
const name = `options.testTagFilters[${i}]`;
if (typeof value !== 'string') {
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
}
return parseTagFilterExpression(value, name);
});
}
}
testTagFilterExpressions ??= options.testTagFilterExpressions;
validateOneOf(isolation, 'options.isolation', ['process', 'none']);
validateBoolean(coverage, 'options.coverage');
Expand Down
Expand Up
@@ -998,7 +1017,7 @@ function run(options = kEmptyObject) {
inspectPort,
testNamePatterns,
testSkipPatterns,
testTagFilters ,
testTagFilterExpressions ,
hasFiles: files != null,
globPatterns,
only,
Expand Down
Loading
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.