-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Fix casing of core test folder, bring back missing tests #26265
Conversation
It seems Phpunit < 9 was case insensitive. Fixed the phpunit config to target the correct name for the "Core" test directory. Signed-off-by: Vincent Petry <[email protected]>
Oww, I wonder if those tests were just disabled/ignored:
|
Signed-off-by: Vincent Petry <[email protected]>
|
Signed-off-by: Vincent Petry <[email protected]>
I've fixed more tests from the spotted reports, let's see... |
Signed-off-by: Vincent Petry <[email protected]>
Remove "ocs-provider" test folder reference as it doesn't exist any more. Added back "Test" test subdir and fixed the tests inside. Signed-off-by: Vincent Petry <[email protected]>
And, fixed even more tests. Seems there was also a subdir "ocs-provider" that was referenced but didn't exist any more. |
seems the can of worms is even deeper:
definitely related to the implicit Phpunit version bump in the PHP 8 pipeline. for now I'd say let's pin it to Phpunit 8.x for PHP 8. |
hmm, as far as I can see phpunit 9 was added 3 months ago and it used to work: https://github.com/nextcloud/docker-ci/blame/d1ad17acfac53762812d1421376212d99eda7dde/php8.0/Dockerfile#L13 since we didn't pin to a minor version, it seems that there were API changes in PHPUnit in 9.5: https://www.drupal.org/project/drupal/issues/3186443 |
PR for the docker-ci to set the PHPUnit version to 9.4.4: nextcloud/docker-ci#274 |
waiting for php8.0-2 to appear in https://hub.docker.com/r/nextcloudci/php8.0/tags?page=1&ordering=last_updated then we can restart CI |
restarted CI as the new image has been published |
one of the "new" tests that got reenabled fail on Oracle:
|
Fixes issue with Oracle by enforcing the order of the results to check. Signed-off-by: Vincent Petry <[email protected]>
all the other DB tests passed, so we're good for php8 and the new tests. I've pushed a fix for Oracle to enforce the check order. Now unless acceptance tests decide to randomly fail, I expected full green |
Note: as observed on another PR https://drone.nextcloud.com/nextcloud/server/3560, it seems CI only needed the phpunit docker-ci fix to work again. Still, we should move forward with this PR here as it reenables and fixes tests that were missing previously. |
strange, it's the second time that
|
a lot has changed
it's green now, please re-review as a lot has changed important to note is that now we have more tests enabled than before. |
/backport to stable21 |
/backport to stable20 |
/backport to stable19 |
will it backport ? 🥁 |
The backport to stable19 failed. Please do this backport manually. |
It seems Phpunit < 9 was case insensitive.
Fixed the phpunit config to target the correct name for the "Core" test
directory.
Fixes failing CI on PRs targetting master, like https://drone.nextcloud.com/nextcloud/server/3531/10/6