-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unit tests failing on Ubuntu 20.04 with PHP 7.4 #38348
Comments
An example in the nightly CI - files_primary_s3 running the core unit tests with PHP 7.4
|
I have reverted the changes to |
PR owncloud-ci/php#130 has created |
Headers are here. But the script
returns no headers: I'm pretty sure and it does return headers when the resource is changed from So CLI curl returns headers for the |
@phil-davis this one fails for me even with php 7.3 when running locally, so seems like the problem is with ubuntu 20.04. |
Note: this needs doing in the next month or two, because it will be good to run all CI with Ubuntu 20.04 before PHP 8.* gets progress. |
I found this which reports the same problem: https://stackoverflow.com/questions/59709625/curlfile-scheme-not-returns-headers-in-php-7-3 I am starting an Ubuntu 18.04 VM so that I can try it with PHP 7.4 etc. Update: This cURL code to get the headers works on Ubuntu 18.04 with any of the PHP that I tried - 7.2 7.3 and 7.4 Exactly the same code fails to return any header information on Ubuntu 20.04 with any version of PHP - I tried 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1. So I guess that there is something different about libcurl. On my systems:
Ubuntu 20.04
This issue looks like where the regressions was reported: curl/curl#3083 |
I have confirmed that I found a way to use |
Currently blocked waiting for core 10.10.0 final release. Then I can merge the waiting PRs and continue... |
@phil-davis owncloud core |
Now blocked by #40054 - carddav and caldav tests need python2, but Ubuntu 22.04 has python3 by default. @xoxys has said that he will update those test suites so that they run with python3: #40054 (comment) The PHP unit tests in master now pass on Ubuntu 22.04 |
PR #40054 was merged. It explicitly uses The next step is testing with Ubuntu 22.04 - see PR #40123 After that is passing, I will think about what to do for regular CI. Maybe we will wait until a few other infrastructure things have happened - for example, the guzzle v7 update and dropping PHP 7.3 support. Then we can decide what to do about the test matrix for PHP 7.4. |
closing. see owncloud/files_primary_s3#613 (comment) |
Yesterday the
owncloudci/php:7.4
docker images was updated to use Ubuntu 20.04 as the base image (was previously Ubuntu 18.04). See PR owncloud-ci/php#128Now some unit tests are failing. See demonstration in PR #38346
Maybe Ubuntu 20.04 is missing some things that were installed by default in Ubuntu 18.04, or...?
Investigate and fix (or revert the docker image change for now)
The text was updated successfully, but these errors were encountered: