Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Add aSocketPath
type forlinux
systems#10378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Add aSocketPath
type forlinux
systems#10378
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codspeed-hqbot commentedSep 10, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
CodSpeed Performance ReportMerging#10378 willnot alter performanceComparing Summary
|
Test will need to be skipped on windows; as it doesn't have sockets to begin with. |
Viicos left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'm wondering if we should do something like:
Edit: Seems like on Windows,is_socket
returnsFalse
, so maybe it's safe to not add these kind of conditions.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Looking good though, happy to support this once we get tests passing, etc :). |
ok for the issue with the Mac tests - pytest seems to be configured wrong, the temporary paths its generating with its fixture exceed the maximum length of a socket name on that platform. |
I'm ok only running the test on Linux. The goal isn't to test that creating sockets works, but to ensure that |
62fdf62
to10d4ce8
Compare10d4ce8
tob874a82
CompareAdded condition to skip new test if not linux. |
Coverage reportClick to see where and how coverage changed
This report was generated bypython-coverage-comment-action |
please review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Great, thanks!
SocketPath
typeSocketPath
type forlinux
systems5d5b8af
intopydantic:mainUh oh!
There was an error while loading.Please reload this page.
@sydney-runkle when can i expect this change to be released? 😇 |
@theunkn0wn1, with our 2.10 release in late October! Feel free to install from main in the meantime :) |
Uh oh!
There was an error while loading.Please reload this page.
Change Summary
The existing FilePath type does not accept sockets, as they fail the
Path.is_file(self)
check.As such, I added a new
SocketPath
type and corresponding validator usingPath.is_socket(self)
.Related issue number
fix#10376
Checklist
Selected Reviewer:@sydney-runkle