Skip to content

Conversation

@arturgawlik
Copy link
Contributor

In this PR https://github.com/nodejs/node/pull/31711/files#diff-b06b65a7f7e33816a1986d731765d732ab23f585bece6b23c5e83ca3682dba62L537-L554 there were removed implementations for Worker::CloneParentEnvVars and Worker::SetEnvVars, but declarations not. This PR removes those not implemented declarations.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. worker Issues and PRs related to Worker support. labels Nov 9, 2025
@arturgawlik arturgawlik force-pushed the worker-remove-not-implmented-declarations branch from 714b656 to b1b3714 Compare November 9, 2025 15:15
@arturgawlik arturgawlik marked this pull request as draft November 9, 2025 15:27
@arturgawlik arturgawlik marked this pull request as ready for review November 9, 2025 15:31
uv_loop_t loop_;
bool loop_init_failed_ = true;
DeleteFnPtr<IsolateData, FreeIsolateData> isolate_data_;
const SnapshotData* snapshot_data_ = nullptr;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed also this one because of error: private field 'snapshot_data_' is not used [-Werror,-Wunused-private-field]

@arturgawlik arturgawlik changed the title worker_threads: remove not implemented declarations of Worker::CloneParentEnvVars and Worker::SetEnvVars worker: remove not implemented declarations of Worker::CloneParentEnvVars and Worker::SetEnvVars Nov 9, 2025
@codecov
Copy link

codecov bot commented Nov 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.54%. Comparing base (60b9aaa) to head (191fed7).
⚠️ Report is 71 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60655      +/-   ##
==========================================
- Coverage   88.54%   88.54%   -0.01%     
==========================================
  Files         703      703              
  Lines      208077   208076       -1     
  Branches    40082    40081       -1     
==========================================
- Hits       184252   184237      -15     
- Misses      15848    15858      +10     
- Partials     7977     7981       +4     
Files with missing lines Coverage Δ
src/node_worker.cc 81.60% <ø> (-0.22%) ⬇️
src/node_worker.h 90.90% <ø> (ø)

... and 32 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.

@addaleax addaleax added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Nov 10, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 10, 2025
@nodejs-github-bot
Copy link
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/70133/

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 17, 2025
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Nov 17, 2025
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/60655
✔  Done loading data for nodejs/node/pull/60655
----------------------------------- PR info ------------------------------------
Title      worker: remove not implemented declarations of `Worker::CloneParentEnvVars` and `Worker::SetEnvVars` (#60655)
Author     Artur Gawlik <artur.gawlik@icloud.com> (@arturgawlik)
Branch     arturgawlik:worker-remove-not-implmented-declarations -> nodejs:main
Labels     c++, author ready, worker, needs-ci
Commits    2
 - worker: remove not implemented declarations
 - remove not used private `snapshot_data_` field
Committers 1
 - arturgawlik <artur.gawlik@icloud.com>
PR-URL: https://github.com/nodejs/node/pull/60655
Reviewed-By: Anna Henningsen <anna@addaleax.net>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/60655
Reviewed-By: Anna Henningsen <anna@addaleax.net>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 09 Nov 2025 15:12:12 GMT
   ✔  Approvals: 1
   ✔  - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/60655#pullrequestreview-3444593800
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2025-11-14T14:47:42Z: https://ci.nodejs.org/job/node-test-pull-request/70172/
- Querying data for job/node-test-pull-request/70172/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/main up to date...
From https://github.com/nodejs/node
 * branch                  main       -> FETCH_HEAD
✔  origin/main is now up-to-date
- Downloading patch for 60655
From https://github.com/nodejs/node
 * branch                  refs/pull/60655/merge -> FETCH_HEAD
✔  Fetched commits as 33586d51ae28..191fed78e640
--------------------------------------------------------------------------------
[main 17088ac2de] worker: remove not implemented declarations
 Author: arturgawlik <artur.gawlik@icloud.com>
 Date: Sun Nov 9 15:59:08 2025 +0100
 1 file changed, 3 deletions(-)
[main 3ad46f1b54] remove not used private `snapshot_data_` field
 Author: arturgawlik <artur.gawlik@icloud.com>
 Date: Sun Nov 9 16:30:38 2025 +0100
 1 file changed, 1 deletion(-)
   ✔  Patches applied
There are 2 commits in the PR. Attempting autorebase.
(node:2188) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Rebasing (2/4)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
worker: remove not implemented declarations

PR-URL: #60655
Reviewed-By: Anna Henningsen <anna@addaleax.net>

[detached HEAD 0b0dd5d5f2] worker: remove not implemented declarations
Author: arturgawlik <artur.gawlik@icloud.com>
Date: Sun Nov 9 15:59:08 2025 +0100
1 file changed, 3 deletions(-)
Rebasing (3/4)
Rebasing (4/4)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
remove not used private snapshot_data_ field

PR-URL: #60655
Reviewed-By: Anna Henningsen <anna@addaleax.net>

[detached HEAD 615dafb8c2] remove not used private snapshot_data_ field
Author: arturgawlik <artur.gawlik@icloud.com>
Date: Sun Nov 9 16:30:38 2025 +0100
1 file changed, 1 deletion(-)
Successfully rebased and updated refs/heads/main.

ℹ Add commit-queue-squash label to land the PR as one commit, or commit-queue-rebase to land as separate commits.

https://github.com/nodejs/node/actions/runs/19444329912

@aduh95 aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Nov 17, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 17, 2025
@nodejs-github-bot nodejs-github-bot merged commit 0db1c6e into nodejs:main Nov 17, 2025
103 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 0db1c6e

targos pushed a commit that referenced this pull request Nov 27, 2025
PR-URL: #60655
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. worker Issues and PRs related to Worker support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants