You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT CI is broken due to test_pathlib and test_posixpath #118246
Thanks for the link! It might have been aggravated by #117447 - perhaps under emulation, lstat('/') and lstat('/..') are returning different st_inos for some reason.
@barneygale, is this something that you think is worth fixing in os.path.ismount? I don't think Python technically supports emulated environments, so it's not worth reverting any speed improvement or whatever.
The special filename dot-dot shall refer to the parent directory of its predecessor directory. As a special case, in the root directory, dot-dot may refer to the root directory itself.
I think / and /.. always refer to the same directory in practice, and os.path.ismount() uses that fact to detect the root directory. In all other cases, joining .. onto a path and calling lstat() will produce a different stat result. This all seems quite reasonable to me -- I'm not sure if there's anything to fix in ismount().
Activity
nineteendo commentedon Apr 24, 2024
Can it not be fixed? Or can we skip certain tests?
barneygale commentedon Apr 24, 2024
Could you share a link to a failing GHA workflow please?
brandtbucher commentedon Apr 24, 2024
Yeah, we could probably use the
--ignorefileoption and maintain a text file with a list of individual failures under emulation... any volunteers?The current PR is a good stopgap though, just to get things passing on PRs (we already skip a bunch of tests, so adding these isn't a huge change).
savannahostrowski commentedon Apr 24, 2024
Yes, definitely - https://github.com/python/cpython/actions/runs/8820363755/job/24213816403
I'd like to spend time digging into the emulation failures but this is intended to provide fix in the meantime.
nineteendo commentedon Apr 24, 2024
barneygale commentedon Apr 24, 2024
Thanks for the link! It might have been aggravated by #117447 - perhaps under emulation,
lstat('/')andlstat('/..')are returning differentst_inos for some reason.brandtbucher commentedon Apr 24, 2024
Ah, I missed that change. Thanks for digging into it.
brandtbucher commentedon Apr 24, 2024
GH-118251
brandtbucher commentedon Apr 24, 2024
@barneygale, is this something that you think is worth fixing in
os.path.ismount? I don't think Python technically supports emulated environments, so it's not worth reverting any speed improvement or whatever.barneygale commentedon Apr 24, 2024
POSIX says:
I think
/and/..always refer to the same directory in practice, andos.path.ismount()uses that fact to detect the root directory. In all other cases, joining..onto a path and callinglstat()will produce a different stat result. This all seems quite reasonable to me -- I'm not sure if there's anything to fix inismount().GH-118246: Exclude test_pathlib and test_posixpath from emulated JIT …
brandtbucher commentedon Apr 24, 2024
This is done, then!