Skip to content

diagnostics_channel: validate before channel activation - #65313

Open
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:sqlite-diagnostics-native-tracing-with-invalid-callback
Open

diagnostics_channel: validate before channel activation#65313
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:sqlite-diagnostics-native-tracing-with-invalid-callback

Conversation

@trivikr

@trivikr trivikr commented Aug 15, 2026

Copy link
Copy Markdown
Member

Fixes: #65312

Validate the first subscription before calling markActive(). This prevents invalid callbacks from leaving channels active and notifying native consumers without an installed subscriber.


Assisted-by: codex:gpt-5.6-sol

Validate the first subscription before calling markActive().
This prevents invalid callbacks from leaving channels active and
notifying native consumers without an installed subscriber.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: codex:gpt-5.6-sol
@nodejs-github-bot nodejs-github-bot added diagnostics_channel Issues and PRs related to diagnostics channel needs-ci PRs that need a full CI run. labels Aug 15, 2026
@codecov

codecov Bot commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (c7b962c) to head (bf2dc9e).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65313      +/-   ##
==========================================
- Coverage   90.31%   90.13%   -0.19%     
==========================================
  Files         751      752       +1     
  Lines      250474   251569    +1095     
  Branches    47335    47269      -66     
==========================================
+ Hits       226218   226750     +532     
- Misses      15601    16169     +568     
+ Partials     8655     8650       -5     
Files with missing lines Coverage Δ
lib/diagnostics_channel.js 97.31% <100.00%> (+<0.01%) ⬆️

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

@trivikr trivikr added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 15, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 15, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diagnostics_channel Issues and PRs related to diagnostics channel needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diagnostics_channel: invalid sqlite.db.query subscription activates native tracing

3 participants