Skip to content

test(bun): share the file-handle read observer - #14577

Merged
vincentkoc merged 1 commit into
mainfrom
test/share-bun-counted-file-handle
Nov 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/share-bun-counted-file-handle

Conversation

@vincentkoc

Copy link
Copy Markdown
Collaborator

Summary

Use the Bun fixture module to observe successful reads on a borrowed file handle. Each test still owns its counter, budget, and handle cleanup.

Verification

The original and updated observers matched in 180 controlled cases and 15 real file reads. All 19 test cases, 66 assertions, and five handle-close calls remain. The changed files pass the pinned formatter and git diff --check.

@vincentkoc
vincentkoc marked this pull request as ready for review November 25, 2026 16:28
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T16:28:33.175699Z
We couldn’t complete this review. Comment @codex review to try again.
53fa50b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This focused test cleanup appears safe to merge.

Summary

Extracts duplicated successful-read observation into observeBunFixtureReads and reuses it in three test helpers.

  • Bun tests share one file-read observer.

Reviews (1) · Last reviewed commit: "test(bun): share the file-handle read ob..." · Reviewed by Greptile

@vincentkoc
vincentkoc enabled auto-merge (squash) November 25, 2026 16:31
@vincentkoc
vincentkoc merged commit 1db0721 into main Nov 25, 2026
38 checks passed
@vincentkoc
vincentkoc deleted the test/share-bun-counted-file-handle branch November 25, 2026 16:39
vincentkoc added a commit that referenced this pull request Nov 25, 2026
…-artifact-cancellation-projection

* commit '3d4633176f15f3bd8072751af788bf31c7f2e0d8':
  refactor(views): reuse JSON record and request-line projections (#14582)
  test(cutter): share loopback listener and descriptor fixtures (#14578)
  ci(apple): give the macOS lane room for the discovered macOS-gated tests
  test(native): accept plutil nesting diagnostics on stdout
  fix(native): admit the missing-UUID dyld_info refusal when it exits 0
  refactor(ghidra): share the executable file probe (#14573)
  refactor(artifacts): reuse carrier ranges and Mach-O field decoding (#14574)
  perf(tar): update global PAX map in place after budget accounting (#14580)
  refactor(manifest): share ordered sibling group traversal (#14571)
  test(browser): reuse page and Evidence inspection fixtures (#14581)
  ci(apple): run the macOS lane when a pull request changes a macOS-gated test
  test(cli): use the registered argument schemas directly (#14586)
  test(bun): share the file-handle read observer (#14577)
  test(mcp): share the successful tool assertion (#14576)
  test(uefi): reuse the driver file across firmware fixtures (#14570)
  feat(delivery)!: bound default results by an agent result budget (#14252)
vincentkoc added a commit that referenced this pull request Nov 25, 2026
* commit '3d4633176f15f3bd8072751af788bf31c7f2e0d8':
  refactor(views): reuse JSON record and request-line projections (#14582)
  test(cutter): share loopback listener and descriptor fixtures (#14578)
  ci(apple): give the macOS lane room for the discovered macOS-gated tests
  test(native): accept plutil nesting diagnostics on stdout
  fix(native): admit the missing-UUID dyld_info refusal when it exits 0
  refactor(ghidra): share the executable file probe (#14573)
  refactor(artifacts): reuse carrier ranges and Mach-O field decoding (#14574)
  perf(tar): update global PAX map in place after budget accounting (#14580)
  refactor(manifest): share ordered sibling group traversal (#14571)
  test(browser): reuse page and Evidence inspection fixtures (#14581)
  ci(apple): run the macOS lane when a pull request changes a macOS-gated test
  test(cli): use the registered argument schemas directly (#14586)
  test(bun): share the file-handle read observer (#14577)
  test(mcp): share the successful tool assertion (#14576)
  test(uefi): reuse the driver file across firmware fixtures (#14570)
  feat(delivery)!: bound default results by an agent result budget (#14252)
  ci(apple): discover and run every macOS-gated test on macOS
  test(apple): expect path-selected inspect_artifact in resource-only sessions
  fix(errors)!: keep only changed reader integrity checks retryable
@morluto morluto added the area: tests Test suite and verification label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants