Skip to content

Conversation

gregcotten
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Jun 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.53%. Comparing base (9d9dc1a) to head (c0f9e6a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #160      +/-   ##
==========================================
- Coverage   94.56%   94.53%   -0.03%     
==========================================
  Files          62       62              
  Lines        4119     4119              
==========================================
- Hits         3895     3894       -1     
- Misses        224      225       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gregcotten
Copy link
Contributor Author

the linux error seems spurious?

Copy link
Owner

@swhitty swhitty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, TIL!

Didn't realise you could prefix a path with \0 on linux to bypass the filesystem completely, but that's very handy.

raw.initializeMemory(as: CChar.self, repeating: 0)
}

let nameBytes = Array(name.utf8.prefix(107))
Copy link
Owner

@swhitty swhitty Jun 16, 2025

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 add a constant for this max as its actually used in a couple of other places (macOS: 104, linux: 108)

extension Socket {
   static let sunPathMax = MemoryLayout.size(ofValue: sockaddr_un().sun_path)
}

@swhitty
Copy link
Owner

swhitty commented Jun 16, 2025

the linux error seems spurious?

Yeah I think a flakey test I need to investigate, passes on retry

@swhitty swhitty merged commit 22a3a1e into swhitty:main Jun 16, 2025
22 of 24 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