-
Notifications
You must be signed in to change notification settings - Fork 239
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with file permissions in tests on Linux GHA build #1882
Comments
I can't think what cibuildwheel would be doing that would affect this. We don't vary how docker is invoked between GHA and Azure - cibuildwheel treats them the same. So I'd guess the issue is on the GHA side. Perhaps Github is using some kind of special Docker runner/kernel where |
Over in my fork of HDF5 in You can see in the GitHub actions run the https://github.com/larsoner/h5py/actions/runs/9785287457/job/27018013077#step:11:9744 But then in a second job I download the wheel and run the same tests in the native GHA context, and it passes just fine (not marked as https://github.com/larsoner/h5py/actions/runs/9785287457/job/27018103570#step:7:81
This part I was wrong about -- the testing mechanism on Azure wasn't through standard
A tiny bit of reading I came across actions/runner#1282 (comment) but I'm not convinced it's related... my docker knowledge is limited. Feel free to close if you think it's an upstream issue! |
Description
In h5py tests, we do:
where
fname
comes fromtempfile.mktemp(..., dir=None)
, and then check that trying to append to this file raises aPermissionError
. However, on the Linux build on GHA (only) it does not. This was found as part of a migration from Azure over to GHA -- Azure did not seem to have this problem. None of our other non-cibuildwheel CIs have shown this problem.Is it possible that this is related to the containerized structure where permissions aren't set on temp files properly for some reason? With a debug statement from h5py/h5py@4e67388, though, I can see that at least Python thinks the permissions have changed properly from 33188 to 33024.
We do also use
so maybe we have some issue with our custom images somehow.
So not 100% sure this is a
cibuildwheel
problem but wanted to open the issue in case it is.Build log
https://github.com/h5py/h5py/actions/runs/9517645998/job/26236715157?pr=2444#step:11:2400
CI config
https://github.com/larsoner/h5py/blob/gha/.github/workflows/build_wheels.yml
The text was updated successfully, but these errors were encountered: