Skip to content

test: identify closed pipe fds by inode - #34

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/pipe-fd-test-b6e1
Oct 16, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/pipe-fd-test-b6e1

Conversation

@jaredLunde

Copy link
Copy Markdown
Contributor

What

The pipe-fd tests now prove a pipe was closed by counting /proc/self/fd entries with that pipe's inode.

Why

chromium_pipe_fds_drop_closes_every_end failed on main because it called F_GETFD on the descriptor number after close. Parallel tests reuse the lowest freed number immediately, so descriptor 4 looked open even though this pipe was gone.

Testing

  • cargo test --locked --lib -- --test-threads=16 (399 passed, including both pipe-fd tests)
  • cargo check --locked
  • Targeted pytest, using the focused -k subset from CONTRIBUTING.md

Checklist

  • I kept this change focused.
  • I added or updated tests for behavior changes.
  • I did not include private credentials, tokens, or internal-only artifacts.
Open in Web Open in Cursor 

F_GETFD after close races with parallel tests, which reuse the lowest
freed descriptor. Count /proc/self/fd entries by pipe inode instead.

Co-authored-by: Jared Lunde <jared.lunde@gmail.com>
@cursor
cursor Bot merged commit 97c7911 into main Oct 16, 2026
3 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