• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 18548748869 / 6
80%
main: 80%

Build:
DEFAULT BRANCH: main
Ran 16 Oct 2025 04:04AM UTC
Files 1169
Run time 47s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Oct 2025 02:51AM UTC coverage: 40.94%. Remained the same
18548748869.6

push

github

web-flow
[windows] Add windows support in the stdio crate. (#22745)

The `stdio` crate depended on the unix-specific RawFd.

This change removes that dependency, replacing it
with our own C file descriptor type, `CFd`.

For background: 

This crate is used for IO against the Python side's 
stdin/stdout/stderr. We pass int32 C fds (as returned by
`fileno()`) from  Python into Rust, cast those to `RawFd`,
and then wrap those in Rust `File` objects. To pass file
references back into Python we grab the `RawFd` back
from the `File`. 

This works because on unix the raw file descriptor is used
directly by the stdlib. So while we were trading in `RawFd`
what we actually meant was "C stdlib file descriptor".

However on windows the C file descriptor type *wraps*
the underlying `RawHandle`, and is not identical to it. 
It is easy to go from C file descriptor to `RawHandle`, 
but the converse is not possible.

Fortunately since all our `RawHandle`s originate from
Python-side filenos, we can store those, as `CFd` structs,
alongside the corresponding `File` objects.

24283 of 59314 relevant lines covered (40.94%)

0.41 hits per line

Source Files on job test_python_linux_x86_64_6/10 - 18548748869.6
  • Tree
  • List 1169
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 18548748869
  • bd4607b8 on github
  • Prev Job for on main (#18500880424.4)
  • Next Job for on main (#18567011470.10)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc