Repository navigation
fix(services/fs): return IsADirectory on Linux direct-I/O directory reads and consolidate tests - #9599
Merged
Conversation
Run stalled TimeoutLayer tests on Tokio time and consolidate the FS and Java suites. Assert the error kinds and relevant diagnostics for removed objects and unsupported write conditions. Linux can reject an O_DIRECT open before FS can inspect the directory. Confirm the directory with a read-only directory open and report IsADirectory.
PsiACE
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #9583.
Rationale for this change
On
ext4andtmpfs, Linux rejects anO_DIRECTopen of a directory beforefscan inspect the file type. Separately, sixTimeoutLayertests wait in real time for Tokio deadlines, and Cargo and JUnit can run the samefsintegration tests and Java service-config tests with fewer binaries and classes.What changes are included in this PR?
services/fson Linux, when a direct-I/O open reportsUnsupported, confirm a readable directory with a read-only directory open so direct-I/O reads returnIsADirectory.TimeoutLayertests while preserving their deadlines and assertions.fsintegration cases from one binary and combine the 13 Java service-config cases into one class.NotFoundfor deleted Foyer entries, and to check the error kind, operation, option, and wildcard hint for unsupported write conditions.Are there any user-facing changes?
On Linux, direct-I/O reads of a readable directory now return
IsADirectory.Observed on
ext4andtmpfs:Reader::readon a readable directory returnedIsADirectoryon both filesystems.ext4and returnedUnsupportedontmpfs.PermissionDeniedon both filesystems.Breaking changes
AI Usage Statement
magpie/codex/gpt-6.2-astra,higheffort. Mapped existing test coverage and identified the Linux directory-open path to verify.magpie/codex/gpt-6.2-sol,maxeffort. Implemented the changes and verified them against the existing test suites and local Linux filesystems.Gemini 4 Neon,Higheffort. Copy-edited the PR title and description.magpie/devin/swe-2-1, default effort (no explicit reasoning-effort override). Independently reviewed the signed commit and reran the affected Rust and Java suites.