-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Make socket path shorter for socket_cmsg_{rights|credentials}.phpt #8617
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
Conversation
1bb6d51
to
0246874
Compare
Oh, indeed, these paths may be too long. I wonder whether we want to go with relative paths, though, or whether we want to use |
@cmb69 tmp dir also can be longer 108 chars, the great explanation I found is https://unix.stackexchange.com/a/367158 |
At least inside tests dir the test runner must be able to create files, so socksts too, as I get we are not supposed to move any files while tests are running, maybe just tune socket names according test to allow parallel |
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 not concerned that relative filenames won't work as socket names, but rather that we would create the files in a folder relative to the CWD (so not necessarily besides the test files as usual), so the names might conflict. Not a big problem in this case, and your argument that the temporary directory might be too long makes sense.
We could |
0246874
to
8e922a3
Compare
@arnaud-lb I think this is more readable |
1 similar comment
@arnaud-lb I think this is more readable |
@cmb69 I think that this addresses your concerns |
Thank you! |
Ugh, the new tests apparently fail for ZTS builds; I've reverted for now. |
Hmm, I think that |
8e922a3
to
47b12ce
Compare
So I changed to |
47b12ce
to
efd234c
Compare
It also fails on ZTS so only relative path works |
Not clear why CI failed this time |
On NTS builds, |
There has not been any recent activity in this PR. It will automatically be closed in 7 days if no further action is taken. |
@cmb69 I have no idea how to fix path for zts build |
@andypost Maybe try to not use |
@bukka, see #8617 (comment). :( |
Well it's quite unlikely to happen in our pipeline and it's already used elsewhere and working fine: php-src/sapi/fpm/tests/tester.inc Lines 1040 to 1042 in da94baf
|
@andypost What's the status of this? Are you happy to do the suggested change in #8617 (comment) ? As I mentioned it should be fine because we are already using that for FPM tests. |
@bukka I can change it but already faced with it in #8617 (comment) And @cmb69 also mentioned it #8617 (comment) |
@andypost Are you actually working / running test on the platform where |
efd234c
to
e2a8892
Compare
e2a8892
to
36291e1
Compare
@bukka I checked both builders and CI returns |
Then let's go with |
…edentials}.phpt When running in CI it fails when path/address is longer 108
36291e1
to
6125d40
Compare
Fixed! hope tests will be green) |
Just to clarify, where is this currently failing? Just considering what branch to merge this to. I guess if this is failing for someone already and they need to fix it, we could potentially target 8.0 but if it's just more theoretical, I might just merge it to master... |
@bukka it fails in CI when there's "home/whateber/subdir..hash" used and |
Yeah I understand when this happens. I was more asking in which pipeline this is failing as it is fine in ours... Anyway I guess it might be failing in yours pipelines so I just merged it to 8.0 ( c58241a ) as it's not a big deal to get it there anyway. |
Thank you a lot, I'm using it in Alpinelinux (it adds extra depth in builders and CI) |
@bukka I faced it only on PHP 8.2 build, others works fine |
When running in CI it fails when path/address is longer 108 with following message
Fatal error: Uncaught ValueError: socket_bind(): Argument #2 ($address) must be less than 108 in ...