FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lib: fix emit warning for debuglog.time when disabled by H4ad · Pull Request #54275 · nodejs/node · GitHub

/ node Public

lib: fix emit warning for debuglog.time when disabled - #54275

Merged
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
H4ad:fix-gh-54265
Aug 27, 2024
Merged

lib: fix emit warning for debuglog.time when disabled#54275
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
H4ad:fix-gh-54265

Conversation

H4ad commented Aug 8, 2024
edited
Loading

Copy link
Copy Markdown
Member

Fixes #54265

The code of debuglog.time was executing because the internal flag timerFlags had the value 7 and the comparison was wrong, instead of checking if the enum flags were activated (2 | 4), I was just making a === comparison.

Now this behavior is fixed by just doing the comparison correctly, I also added a test to track this regression.

In theory, this bug slowed down a little bit all the requires but not too much since the heavy part was skipped.

nodejs-github-bot added needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module. labels Aug 8, 2024

codecov Bot commented Aug 9, 2024
edited
Loading

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 87.10%. Comparing base (9e6c526) to head (44e8eb1).
Report is 1458 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/util/debuglog.js 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54275      +/-   ##
==========================================
- Coverage   87.10%   87.10%   -0.01%     
==========================================
  Files         647      648       +1     
  Lines      181754   182214     +460     
  Branches    34880    34969      +89     
==========================================
+ Hits       158323   158715     +392     
- Misses      16742    16786      +44     
- Partials     6689     6713      +24     
Files with missing lines Coverage Δ
lib/internal/util/debuglog.js 91.36% <57.14%> (+1.13%) ⬆️

... and 58 files with indirect coverage changes

Comment thread test/fixtures/GH-54265/dep1.js Outdated
Comment thread test/fixtures/GH-54265/dep2.js Outdated
Comment thread test/fixtures/GH-54265/index.js Outdated
Comment thread test/fixtures/GH-54265/require-hook.js Outdated
H4ad and others added 4 commits August 13, 2024 13:35
Co-authored-by: James M Snell <jasnell@gmail.com>
Co-authored-by: James M Snell <jasnell@gmail.com>
Co-authored-by: James M Snell <jasnell@gmail.com>
Co-authored-by: James M Snell <jasnell@gmail.com>
H4ad added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Aug 13, 2024
H4ad added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 15, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 15, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

RafaelGSS mentioned this pull request Aug 26, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

RafaelGSS added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 27, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 27, 2024
nodejs-github-bot merged commit a7271ab into nodejs:main Aug 27, 2024

Copy link
Copy Markdown
Collaborator

Landed in a7271ab

H4ad deleted the fix-gh-54265 branch August 27, 2024 18:14
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
PR-URL: #54275
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
joyeecheung pushed a commit to joyeecheung/node that referenced this pull request Feb 6, 2025
PR-URL: nodejs#54275
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>

Copy link
Copy Markdown
Member

Tentatively backport in #56927 to reduce conflicts. Though this is not very essential and might get dropped.

Copy link
Copy Markdown
Member

Backing it out from #56927 to avoid introducing surface for regressions.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 outstanding review comments, and a CI started. 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. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unactionable "Label ... already exists for debuglog.time" warning since Node.js 22.6

6 participants


Back | FazBrowse Home | New Git URL