-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Reenable skipped federated sharing integration test steps #24551
Conversation
juliusknorr
commented
Dec 4, 2020
•
edited
Loading
edited
- They currently run fine locally except for one that only succeedes on the first run (see FIXME)
- Enabling APCu locally brings a huge speed boost, might make sense in general for the integration tests
35d6eee
to
16d2603
Compare
e5a4ee2
to
ba2fc1a
Compare
Turns out this requires php7.4 (for the tests) in order to be able to make requests to the same nextcloud instance |
641100e
to
6874817
Compare
@@ -30,7 +30,6 @@ | |||
* Trashbin functions | |||
*/ | |||
trait Trashbin { | |||
use WebDav; |
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 really sure but it seems that this has become an issue when running the tests with php 7.4, i also have the following error locally with other integration tests without this change:
PHP Fatal error: Trait 'WebDav' not found in /drone/src/build/integration/features/bootstrap/Trashbin.php on line 32
Removing it here seems to be fine since the trait is still being pulled in by the feature context themselve, however maybe someone can tell if that makes sense. Maybe @rullzer or @danxuliu ?
I feel the whole trait usage seems to be quite a mess and we should at some point rather just have multiple context classes that are applied to the test suites.
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.
The error also doesn't make much sense to me as the class loading should be handled as part of the behat loading of the PSR-0 namespace defined in
'': "%paths.base%/../features/bootstrap" |
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.
The problem seems to be caused by a circular dependency between the traits that, for some reason, works fine in PHP 7.3 and fails in PHP 7.4. I have no idea why 🤷 For more information please see #24895 (I have extracted it to its own pull request because it seemed worth of it ;-) ).
I feel the whole trait usage seems to be quite a mess and we should at some point rather just have multiple context classes that are applied to the test suites.
👍
.drone.yml
Outdated
@@ -794,8 +794,9 @@ steps: | |||
commands: | |||
- git submodule update --init | |||
- name: integration-federation_features | |||
image: nextcloudci/integration-php7.3:integration-php7.3-2 | |||
image: nextcloudci/php7.4:php7.4-3 |
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.
nextcloudci/integration-php7.4
Docker images are not available even if the tag is set. Maybe the Docker repositories for integration-php7.4
need to be explicitly created? @rullzer
6874817
to
d12daeb
Compare
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 877: failurenodbShow full log
mysql8.0-php7.4integration-maintenance-modeintegration-ratelimitingintegration-carddavintegration-dav-v2integration-checksums-v1integration-external-storageintegration-provisioning-v1integration-caldavintegration-favoritesintegration-provisioning-v2integration-sharees-featuresintegration-sharees-v2-featuresintegration-sharing-v1integration-sharing-v1-part2integration-sharing-v1-video-verificationintegration-setup-featuresintegration-transfer-ownership-featuresintegration-ldap-openldap-featuresintegration-ldap-openldap-uid-featuresintegration-trashbinintegration-download |
d12daeb
to
ee707f1
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
ee707f1
to
b3df3a1
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Closing due to lack of time. |