Skip to content
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

Create a new pull request by comparing changes across two branches #1037

Merged
merged 31 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2310409
report: fix network queries in getReport libuv with exclude-network
Tofandel Nov 12, 2024
bd0c4f8
test: fix permission fixtures lint
RafaelGSS Nov 12, 2024
0d29315
doc: update unflag info of `import.meta.resolve`
skyclouds2001 Nov 12, 2024
f17b9a4
2024-11-12, Version 18.20.5 'Hydrogen' (LTS)
aduh95 Nov 7, 2024
598bbf4
doc: correct max-semi-space-size statement
joebowbeer Nov 12, 2024
b52a49b
module: tidy code string concat → string templates
JakobJingleheimer Nov 13, 2024
be5a500
doc: fix history info for `URL.prototype.toJSON`
aduh95 Nov 13, 2024
8a29648
doc: add notable-change mention to sec release
RafaelGSS Nov 14, 2024
d9540b5
fs: remove `dirent.path`
aduh95 Oct 26, 2024
7a461ed
events: add hasEventListener util for validate
sungpaks Nov 14, 2024
b02cd41
fs: runtime deprecate `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, `fs.X_OK`
LiviaMedeiros Nov 14, 2024
0c8ef48
doc: clarify UV_THREADPOOL_SIZE env var usage
preveen-stack Nov 15, 2024
def4c28
doc: add `-S` flag release preparation example
aduh95 Nov 15, 2024
7d28de9
benchmark: add `test-reporters`
Nov 16, 2024
b67986f
doc: add `node:sqlite` to mandatory `node:` prefix list
sapphi-red Nov 16, 2024
a6d853c
doc: add history entries for JSON modules stabilization
aduh95 Nov 16, 2024
669b692
doc: remove non-working example
aduh95 Nov 16, 2024
2933866
deps: update undici to 6.21.0
nodejs-github-bot Nov 16, 2024
c91ce21
fs: fix `getDirent().parentPath` when type is `UV_DIRENT_UNKNOWN`
LiviaMedeiros Nov 16, 2024
7fa2a13
deps: update simdutf to 5.6.1
nodejs-github-bot Nov 16, 2024
9f2885a
Revert "src: migrate `String::Value` to `String::ValueView`"
targos Nov 16, 2024
23275cc
test: add test case for `util.inspect`
ljharb Nov 8, 2024
e577618
util: inspect: enumerable Symbols no longer have square brackets
ljharb Nov 8, 2024
b648d37
src: use env strings to create sqlite results
targos Nov 17, 2024
775a100
test_runner: error on mocking an already mocked date
Nov 17, 2024
b0051de
fs: prevent unwanted `dependencyOwners` removal
Ceres6 Nov 17, 2024
be34b5e
tools: disable doc building when ICU is not available
aduh95 Nov 16, 2024
b1ee186
tools: update doc to new version
nodejs-github-bot Nov 16, 2024
1618463
crypto: allow length=0 for HKDF and PBKDF2 in SubtleCrypto.deriveBits
panva Nov 17, 2024
d159c97
tools: bump @eslint/plugin-kit from 0.2.0 to 0.2.3 in /tools/eslint
dependabot[bot] Nov 17, 2024
746b17e
sqlite: add support for SQLite Session Extension
louwers Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ release.
<a href="doc/changelogs/CHANGELOG_V20.md#20.0.0">20.0.0</a><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.20.4">18.20.4</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.20.5">18.20.5</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.4">18.20.4</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.3">18.20.3</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.2">18.20.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.1">18.20.1</a><br/>
Expand Down
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ ifeq ($(OSTYPE),os400)
DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS) out/$(BUILDTYPE)/node.exp
endif

node_use_openssl = $(call available-node,"-p" \
"process.versions.openssl != undefined")
node_use_openssl_and_icu = $(call available-node,"-p" \
"process.versions.openssl != undefined && process.versions.icu != undefined")
test/addons/.docbuildstamp: $(DOCBUILDSTAMP_PREREQS) tools/doc/node_modules
@if [ "$(shell $(node_use_openssl))" != "true" ]; then \
echo "Skipping .docbuildstamp (no crypto)"; \
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
echo "Skipping .docbuildstamp (no crypto and/or no ICU)"; \
else \
$(RM) -r test/addons/??_*/; \
[ -x $(NODE) ] && $(NODE) $< || node $< ; \
Expand Down Expand Up @@ -535,7 +535,7 @@ NATIVE_SUITES ?= addons js-native-api node-api
# CI_* variables should be kept synchronized with the ones in vcbuild.bat
CI_NATIVE_SUITES ?= $(NATIVE_SUITES) benchmark
CI_JS_SUITES ?= $(JS_SUITES) pummel
ifeq ($(node_use_openssl), false)
ifeq ($(node_use_openssl_and_icu), false)
CI_DOC := doctool
else
CI_DOC =
Expand Down Expand Up @@ -632,8 +632,8 @@ test-hash-seed: all ## Verifu that the hash seed used by V8 for hashing is rando

.PHONY: test-doc
test-doc: doc-only lint-md ## Build, lint, and verify the docs.
@if [ "$(shell $(node_use_openssl))" != "true" ]; then \
echo "Skipping test-doc (no crypto)"; \
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
echo "Skipping test-doc (no crypto and/or no ICU)"; \
else \
$(PYTHON) tools/test.py $(PARALLEL_ARGS) doctool; \
fi
Expand Down Expand Up @@ -749,17 +749,17 @@ apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json))
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))

tools/doc/node_modules: tools/doc/package.json
@if [ "$(shell $(node_use_openssl))" != "true" ]; then \
echo "Skipping tools/doc/node_modules (no crypto)"; \
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
echo "Skipping tools/doc/node_modules (no crypto and/or no ICU)"; \
else \
cd tools/doc && $(call available-node,$(run-npm-ci)) \
fi

.PHONY: doc-only
doc-only: tools/doc/node_modules \
$(apidoc_dirs) $(apiassets) ## Build the docs with the local or the global Node.js binary.
@if [ "$(shell $(node_use_openssl))" != "true" ]; then \
echo "Skipping doc-only (no crypto)"; \
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
echo "Skipping doc-only (no crypto and/or no ICU)"; \
else \
$(MAKE) out/doc/api/all.html out/doc/api/all.json out/doc/api/stability; \
fi
Expand Down Expand Up @@ -1382,8 +1382,8 @@ lint-js-fix: tools/eslint/node_modules/eslint/bin/eslint.js ## Lint and fix the
# Note that on the CI `lint-js-ci` is run instead.
lint-js-doc: LINT_JS_TARGETS=doc
lint-js lint-js-doc: tools/eslint/node_modules/eslint/bin/eslint.js ## Lint the JavaScript code with eslint./eslint/bin/eslint.js
@if [ "$(shell $(node_use_openssl))" != "true" ]; then \
echo "Skipping $@ (no crypto)"; \
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
echo "Skipping $@ (no crypto and/or no ICU)"; \
else \
echo "Running JS linter..."; \
$(call available-node,$(run-lint-js)) \
Expand Down
11 changes: 11 additions & 0 deletions benchmark/fixtures/basic-test-runner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { test } = require('node:test');

test('should pass', () => {});
test('should fail', () => { throw new Error('fail'); });
test('should skip', { skip: true }, () => {});
test('parent', (t) => {
t.test('should fail', () => { throw new Error('fail'); });
t.test('should pass but parent fail', (t, done) => {
setImmediate(done);
});
});
2 changes: 1 addition & 1 deletion benchmark/fs/bench-opendirSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tmpdir.refresh();

const testFiles = fs.readdirSync('test', { withFileTypes: true })
.filter((f) => f.isDirectory())
.map((f) => path.join(f.path, f.name));
.map((f) => path.join(f.parentPath, f.name));
const bench = common.createBenchmark(main, {
type: ['existing', 'non-existing'],
n: [1e3],
Expand Down
41 changes: 41 additions & 0 deletions benchmark/test_runner/test-reporters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
'use strict';

const common = require('../common');
const { run } = require('node:test');
const reporters = require('node:test/reporters');
const { Readable } = require('node:stream');
const assert = require('node:assert');

const bench = common.createBenchmark(main, {
n: [1e4],
reporter: Object.keys(reporters),
});

// No need to run this for every benchmark,
// it should always be the same data.
const stream = run({
files: ['../fixtures/basic-test-runner.js'],
});
let testResults;

async function main({ n, reporter: r }) {
testResults ??= await stream.toArray();

// Create readable streams for each iteration
const readables = Array.from({ length: n }, () => Readable.from(testResults));

// Get the selected reporter
const reporter = reporters[r];

bench.start();

let noDead;
for (const readable of readables) {
// Process each readable stream through the reporter
noDead = await readable.compose(reporter).toArray();
}

bench.end(n);

assert.ok(noDead);
}
Loading
Loading