Skip to content

ai slop - #32084

Closed
alii wants to merge 1 commit into
mainfrom
ali/leaksan-serve-wrapper-supp
Closed

ai slop#32084
alii wants to merge 1 commit into
mainfrom
ali/leaksan-serve-wrapper-supp

Conversation

@alii

@alii alii commented Jun 11, 2026 •

Copy link
Copy Markdown
Member

This PR has been marked as AI slop and the description has been updated to avoid confusion or misleading reviewers.

Many AI PRs are fine, but sometimes they submit a PR too early, fail to test if the problem is real, fail to reproduce the problem, or fail to test that the problem is fixed. If you think this PR is not AI slop, please leave a comment.

A stopped server's NewServer box is freed in NewServer::deinit, which runs
only after the JS Server wrapper finalizes. When the wrapper is still alive
or unswept at process exit, the box and everything its config owns are
unreachable to LeakSanitizer: the only pointer lives in the JS heap, which
lsan does not scan.

These reports were previously masked by accident. Parked worker-thread
stacks (lsan roots) held stale pointers into the dev-server options stored
inline in ServerConfig, anchoring the whole server box. Boxing the options
behind the erased DevServerOptions handle re-pointed those stale words at
the separate options allocation, unmasking the server graph in
test/bake/deinitialization.test.ts on the x64-asan lane.
@robobun

robobun commented Jun 11, 2026 •

Copy link
Copy Markdown
Collaborator
Updated 5:26 PM PT - Jun 10th, 2026

❌ @robobun, your commit ab26456 has 2 failures in Build #61846 (All Failures):


🧪   To try this PR locally:

bunx bun-pr 32084

That installs a local version of the PR into your bun-32084 executable, so you can run:

bun-32084 --bun

@github-actions

Copy link
Copy Markdown
Contributor

This PR has been closed because it was flagged as AI slop.

Many AI-generated PRs are fine, but this one was identified as having one or more of the following issues:

  • Fails to verify the problem actually exists
  • Fails to test that the fix works
  • Makes incorrect assumptions about the codebase
  • Submits changes that are incomplete or misleading

If you believe this was done in error, please leave a comment explaining why.

@github-actions github-actions Bot changed the title Suppress lsan reports for JS-wrapper-owned Bun.serve server state ai slop Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR may be a duplicate of:

  1. Confine bake's bundler, server, and CLI integration to designated seams #32078 - Contains the identical leak:bun_runtime::api::bun_object::serve LSan suppression in test/leaksan.supp; this PR was extracted from that one

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

Walkthrough

Adds a LeakSanitizer suppression for the Bun.serve deinitialization routine. The suppression includes explanatory comments describing a server ref-lifetime scenario where the allocation graph may appear unreachable depending on incidental stale pointers and GC/stack scanning behavior.

Changes

Bun.serve deinitialization leak suppression

Layer / File(s) Summary
Bun.serve deinitialization leak suppression
test/leaksan.supp
Adds a LeakSanitizer suppression record for leak:bun_runtime::api::bun_object::serve with comments explaining server deinitialization timing and why allocations may be marked as unreachable depending on stale pointers and GC behavior.
🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides substantial detail about what is suppressed and why it is safe, but does not follow the required template with 'What does this PR do?' and 'How did you verify your code works?' sections. Restructure the description to match the template: add 'What does this PR do?' and 'How did you verify your code works?' sections with appropriate content.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding a LeakSanitizer suppression for JS-wrapper-owned Bun.serve server state.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants