Skip to content

test: fix main typecheck, memory spike test used a removed tracer helper - #47169

Merged
brennanb2025 merged 1 commit into
mainfrom
fix/memory-spike-test-tracer-reset
Nov 22, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
fix/memory-spike-test-tracer-reset

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

main fails typecheck and the node test shard. #46734 added main-memory-spike-capture.performance.test.ts, which imports _resetTracerForTests, but #46786 had just removed that helper from tracer.ts. The helper only cleared the active sink, so the test now calls setActiveSink(null) directly.

Performance

None, because this changes only a test's cleanup.

Risk

None for users: test-only. A plain revert backs it out.

Level: Low

Review

The test passes locally (4/4) and tc:node is clean.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 0
Prod 0 0 0 0

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The performance test no longer imports _resetTracerForTests. Its cleanup now calls setActiveSink(null) to clear the active sink.

Merge Risk: Minimal · up to 40ce4

This is a test-only cleanup that replaces a removed helper with a direct call to clear the trace sink. It has no production impact and is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the memory spike test no longer uses a removed tracer helper, which fixes the main typecheck. It is specific and matches the raw summary and the PR objectives. The 72-…
Description check Passed The description covers the Summary, Performance, Risk, and Review sections. It explains the failing typecheck and test shard, the removed helper, and the replacement with a direct setActiveSink(null) …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the memory spike test no longer uses a removed tracer helper, which fixes the main typecheck. It is specific and matches the raw summary and the PR objectives. The 72-character length is within a normal range.

Full details: Description check

Explanation

The description covers the Summary, Performance, Risk, and Review sections. It explains the failing typecheck and test shard, the removed helper, and the replacement with a direct setActiveSink(null) call. It states the change is test-only and gives a Low risk level with a revert path. The template's ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing checklist, Agent skill boundary, and AI Disclosure sections are missing or unfilled. The Linked Issue section is required by the template for outside contributors, but this change appears to come from a maintainer, so the gap is non-critical. The description is mostly complete but should add the missing sections or mark them N/A.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 67359466-cde1-483b-ab7b-46f9327e7b78
Commits

Reviewing files that changed from the base of the PR and between 5bb0ef2 and 40ce47e.

Files selected for processing: 1

  • src/main/memory/main-memory-spike-capture.performance.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@brennanb2025
brennanb2025 merged commit 5ba1757 into main Nov 22, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants