Skip to content

test: skip test failing when run under root - #66666

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
LiviaMedeiros:test-fs-rmsync-adderror-skip
Oct 13, 2026
Merged

nodejs-github-bot merged 1 commit into
nodejs:mainfrom
LiviaMedeiros:test-fs-rmsync-adderror-skip

Conversation

@LiviaMedeiros

Copy link
Copy Markdown
Member

This test attempts to delete directory with insufficient permissions, which are ignored for root so expected throw doesn't happen.

Signed-off-by: LiviaMedeiros <livia@cirno.name>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. labels Oct 11, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.47%. Comparing base (6f71b9b) to head (5acc826).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66666      +/-   ##
==========================================
- Coverage   92.82%   90.47%   -2.35%     
==========================================
  Files         422      791     +369     
  Lines      194189   277088   +82899     
  Branches    30044    53268   +23224     
==========================================
+ Hits       180251   250691   +70440     
- Misses      13612    16808    +3196     
- Partials      326     9589    +9263     

see 500 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@meixg meixg added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 12, 2026
@github-actions github-actions Bot added request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. and removed request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Failed to start CI

   ℹ  Existing CI run found: https://ci.nodejs.org/job/node-test-pull-request/78320/
   ✖  Refusing to start a potentially duplicate CI job. Resume CI by adding the "resume-ci" label to the PR, or run: ncu-ci resume https://github.com/nodejs/node/pull/66666
Full Auto Start CI output
�[36m⠋�[39m Getting reviews from nodejs/node/pull/66666
�[36m⠋�[39m Getting commits from nodejs/node/pull/66666
�[36m⠙�[39m Validating Jenkins credentials
�[36m⠙�[39m Validating Jenkins credentials
✔  Jenkins credentials valid
�[36m⠹�[39m Getting comments from nodejs/node/pull/66666
�[36m⠸�[39m Querying data for job/node-test-pull-request/78320/
�[36m⠸�[39m Querying data for job/node-test-pull-request/78320/
�[36m⠸�[39m Querying API for job/node-test-pull-request/78320/
✔  Build data downloaded
   ℹ  Existing CI run found: https://ci.nodejs.org/job/node-test-pull-request/78320/
   ✖  Refusing to start a potentially duplicate CI job. Resume CI by adding the "resume-ci" label to the PR, or run: ncu-ci resume https://github.com/nodejs/node/pull/66666

View workflow run

@aduh95 aduh95 added author ready PRs with CI started, the required approvals, and no outstanding review comments. resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. and removed request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. labels Oct 12, 2026
@github-actions github-actions Bot removed the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Oct 12, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@richardlau richardlau added the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 12, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 4599b6a into nodejs:main Oct 13, 2026
87 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 4599b6a

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 13, 2026
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
Signed-off-by: LiviaMedeiros <livia@cirno.name>
PR-URL: #66666
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
Signed-off-by: LiviaMedeiros <livia@cirno.name>
PR-URL: nodejs#66666
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
electron-claude Bot added a commit to electron/electron that referenced this pull request Dec 1, 2026
Node.js v26.14.0 carries all of these:

- fix_handle_boringssl_and_openssl_incompatibilities.patch
  Ref: nodejs/node#66752
- test_skip_rmsync_permission_error_test_when_running_as_root.patch
  Ref: nodejs/node#66666
- test_skip_openssl_config_test_under_boringssl.patch
- test_expect_unable_to_get_issuer_cert_locally_under_boringssl.patch
  Ref: nodejs/node#66922
- build_fix_overriding_node_path_in_gn_build.patch
  Ref: nodejs/node#66805
- test_wait_for_inspector_restart_before_exit.patch

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
electron-claude Bot added a commit to electron/electron that referenced this pull request Dec 1, 2026
Node.js v26.14.0 carries all of these:

- fix_handle_boringssl_and_openssl_incompatibilities.patch
  nodejs/node#66752
- test_skip_rmsync_permission_error_test_when_running_as_root.patch
  nodejs/node#66666
- test_skip_openssl_config_test_under_boringssl.patch
  nodejs/node#66780
- test_expect_unable_to_get_issuer_cert_locally_under_boringssl.patch
  nodejs/node#66922
- build_fix_overriding_node_path_in_gn_build.patch
  nodejs/node#66805
- test_wait_for_inspector_restart_before_exit.patch
  nodejs/node#66722

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ckerr pushed a commit to electron/electron that referenced this pull request Dec 1, 2026
* chore: bump node in DEPS to v26.14.0

* chore: remove upstreamed patches

Node.js v26.14.0 carries all of these:

- fix_handle_boringssl_and_openssl_incompatibilities.patch
  nodejs/node#66752
- test_skip_rmsync_permission_error_test_when_running_as_root.patch
  nodejs/node#66666
- test_skip_openssl_config_test_under_boringssl.patch
  nodejs/node#66780
- test_expect_unable_to_get_issuer_cert_locally_under_boringssl.patch
  nodejs/node#66922
- build_fix_overriding_node_path_in_gn_build.patch
  nodejs/node#66805
- test_wait_for_inspector_restart_before_exit.patch
  nodejs/node#66722

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(patch): tls: test the SPKI blocklist with a fixture key

Upstream replaced the test-only runtime extension of the SPKI blocklist
with a fixture CA key compiled into the list, removing the process-wide
list, its mutex and the crypto binding hooks. Electron's cert-revocation
spec still extends the list at runtime through the testing binding, so
the patch now re-adds the list and mutex behind the exported C++ hooks.
The OPENSSL_SIZE_T loop in CheckSPKIs() is upstream now and no longer
part of the patch.

Ref: nodejs/node#66949

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(patch): ffi: fix handle leak in fast buffer arguments

Ref: nodejs/node#66867

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* chore: update patches (trivial only)

* fix(patch): crypto: reject immutable random fill buffers

Ref: nodejs/node#66944

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test: disable test-buffer-bytelength-gc in the Node.js spec runner

The test, new in Node.js v26.14.0, runs under --gc-global
--gc-interval=500. Chromium's V8 segfaults in
MarkCompactCollector::ClearFullMapTransitions() whenever Electron runs
as Node with --gc-interval, even for a trivial script, so the test
crashes before it exercises Buffer.byteLength() at all. The sibling
tests added alongside it (test-buffer-bytelength-safe-fast and
test-buffer-bytelength-strings) pass. test-domain-error-types is
already disabled for the same --gc-interval crash.

Ref: nodejs/node#67136

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(patch): tls: drop the runtime SPKI blocklist test hooks

Node.js v26.14.0 removed the test-only runtime extension of the SPKI
blocklist, and the process-wide list and mutex consulted on every
certificate check, in favour of a fixture CA whose public key is a
permanent compiled-in entry (nodejs/node#66949). Restoring that list
only for Electron's spec would put the mutex back on every TLS
handshake in production.

Trim the patch to the eMudhra G2B/G2C entries that are not yet
upstream, remove the addNodeBlockedSPKI/clearNodeBlockedSPKIs testing
binding hooks, and point spec/cert-revocation.spec.ts at Node's
blocked-ca, blocked-key-leaf and agent6 fixtures in
third_party/electron_node, so it exercises the real list. The
unaffected-chain case no longer uses spec/fixtures/certificates/server.pem,
which expired in April 2026.

Ref: nodejs/node#66949

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: electron-claude[bot] <279139701+electron-claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
ckerr pushed a commit to electron/electron that referenced this pull request Dec 1, 2026
* chore: bump node in DEPS to v26.14.0

* chore: remove upstreamed patches

Node.js v26.14.0 carries all of these:

- fix_handle_boringssl_and_openssl_incompatibilities.patch
  Ref: nodejs/node#66752
- test_skip_rmsync_permission_error_test_when_running_as_root.patch
  Ref: nodejs/node#66666
- test_skip_openssl_config_test_under_boringssl.patch
- test_expect_unable_to_get_issuer_cert_locally_under_boringssl.patch
  Ref: nodejs/node#66922
- build_fix_overriding_node_path_in_gn_build.patch
  Ref: nodejs/node#66805
- test_wait_for_inspector_restart_before_exit.patch

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(patch): tls: test the SPKI blocklist with a fixture key

Upstream dropped the test-only extension of the SPKI blocklist, and
the process-wide list and mutex behind it, in favour of a fixture CA
whose key is a permanent blocklist entry. Electron's cert-revocation
spec extends the list at runtime through the testing binding, so the
patch now carries the list and mutex alongside the C++ hooks. The
OPENSSL_SIZE_T loop in CheckSPKIs() is upstream and dropped here.

Ref: nodejs/node#66949
Ref: nodejs/node#66889

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(patch): ffi: fix handle leak in fast buffer arguments

Ref: nodejs/node#66867

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* chore: update patches (trivial only)

* fix(patch): crypto: reject immutable random fill buffers

Ref: nodejs/node#66944

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test: disable test-buffer-bytelength-gc

The test runs with --gc-interval=500. Any --gc-interval value crashes
Electron as Node during deserialization of the Node.js startup
snapshot: the forced mark-compact reads a Map whose descriptors have
not been deserialized yet (ClearFullMapTransitions). The only other
upstream test using that flag, test-domain-error-types, is disabled
for the same reason. The underlying byteLength fix is covered by
test-buffer-bytelength-safe-fast and test-buffer-bytelength-strings,
which pass.

Ref: nodejs/node#67136

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(patch): tls: drop the runtime SPKI blocklist test hooks

Node.js v26.14.0 removed the test-only runtime extension of the SPKI
blocklist, and the process-wide list and mutex consulted on every
certificate check, in favour of a fixture CA whose public key is a
permanent compiled-in entry (nodejs/node#66949). Restoring that list
only for Electron's spec would put the mutex back on every TLS
handshake in production.

Trim the patch to the eMudhra G2B/G2C entries that are not yet
upstream, remove the addNodeBlockedSPKI/clearNodeBlockedSPKIs testing
binding hooks, and point spec/cert-revocation.spec.ts at Node's
blocked-ca, blocked-key-leaf and agent6 fixtures in
third_party/electron_node, so it exercises the real list. The
unaffected-chain case no longer uses spec/fixtures/certificates/server.pem,
which expired in April 2026.

Ref: nodejs/node#66949

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: electron-claude[bot] <279139701+electron-claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants