Skip to content

src: skip calling object setters #57942

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

JonasBa
Copy link
Contributor

@JonasBa JonasBa commented Apr 20, 2025

We can call Object constructor directly without calling the setter methods and checking if they fail.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/sqlite

@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. sqlite Issues and PRs related to the SQLite subsystem. labels Apr 20, 2025
@anonrig anonrig added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Apr 20, 2025
@anonrig anonrig requested review from jasnell, mcollina and cjihrig April 20, 2025 01:09
@anonrig anonrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 20, 2025
Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM with one small nit.

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 20, 2025
@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Apr 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.26%. Comparing base (25842c5) to head (48f22a6).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #57942      +/-   ##
==========================================
- Coverage   92.26%   90.26%   -2.00%     
==========================================
  Files         325      630     +305     
  Lines      126673   186110   +59437     
  Branches    20783    36471   +15688     
==========================================
+ Hits       116869   167991   +51122     
- Misses       9576    10981    +1405     
- Partials      228     7138    +6910     
Files with missing lines Coverage Δ
src/node_sqlite.cc 80.64% <100.00%> (ø)

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

@anonrig
Copy link
Member

anonrig commented Apr 20, 2025

@JonasBa it seems there is a single test failing

@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 Apr 22, 2025
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/57942
✔  Done loading data for nodejs/node/pull/57942
----------------------------------- PR info ------------------------------------
Title      src: skip calling object setters (#57942)
Author     Jonas <[email protected]> (@JonasBa)
Branch     JonasBa:jb/sqlite-obj -> nodejs:main
Labels     c++, author ready, needs-ci, sqlite
Commits    3
 - src: skip calling object setters
 - fixup! src: skip calling object setters
 - fixup! fixup! src: skip calling object setters
Committers 1
 - JonasBa <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/57942
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Edy Silva <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/57942
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Edy Silva <[email protected]>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 20 Apr 2025 01:03:34 GMT
   ✔  Approvals: 4
   ✔  - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/57942#pullrequestreview-2780124749
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/57942#pullrequestreview-2780122974
   ✔  - Colin Ihrig (@cjihrig): https://github.com/nodejs/node/pull/57942#pullrequestreview-2780123409
   ✔  - Edy Silva (@geeksilva97): https://github.com/nodejs/node/pull/57942#pullrequestreview-2780125616
   ✘  Last GitHub CI failed
   ℹ  Last Full PR CI on 2025-04-20T01:52:20Z: https://ci.nodejs.org/job/node-test-pull-request/66375/
- Querying data for job/node-test-pull-request/66375/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/14584656089

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-failed An error occurred while landing this pull request using GitHub Actions. needs-ci PRs that need a full CI run. sqlite Issues and PRs related to the SQLite subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants