-
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
[full-ci] Allow disabling the files_external app #39856
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
f33bfbe
to
c62645d
Compare
It seems the problem with the CI is that the files_external app is disabled when the phpstan runs, which causes the classes from the app not to get loaded. Enabling the app before hand should solve the problem, but we want to run the tests without the files_external app being enabled. @phil-davis not sure how we want to go through this issue:
I'm not sure if it's possible to use a different phpstan configuration depending on the state of the files_external app, or make it conditional somehow. |
That's what I've found locally after running phpstan with files_external disabled. The second commit should fix those dependencies. |
bd70a6e
to
2b99b30
Compare
💥 Acceptance tests pipeline apiAuthOcs-mariadb10.2-php7.4 failed. The build has been cancelled. |
2b99b30
to
3a73a79
Compare
I fixed the phpstan problem. See the c ommit "Enable files_external for phpstan in drone" Now there are fails in acceptance tests, like:
Test scenarios like this are doing "quick" tests of various endpoints, all in the same scenario, for performance reasons. We need to separate all the test steps that are testing files_external and put them in separate scenarios. Then tag those scenarios, and skip the scenarios. |
https://drone.owncloud.com/owncloud/core/34849/10/7
The unit tests will need to be looked through. If those 145 failing tests are all just tests that test something that includes files_external, then those tests will need minor adjustment so that they "skip" when files_external is not enabled. |
I added a commit that separates out and skips some acceptance tests that relate to files_external. It will take some work to sort out all the unit and acceptance tests so that they "understand" what to do when running with files_external disabled. Do we want to continue with this? |
Acceptance tests pass - good. |
I'm still checking unit tests but I might need more eyes on this.
The problem is what tests we want to skip. I'm checking some sharing tests, and those shouldn't be crashing even if the files_external app is disabled. Moreover, running those tests isolated (just those tests) doesn't give any problem. So far, it seems that at some point, the |
PHP things: set the
At least it seems we're getting closer. We still need to figure out a way to check whether the files_external app is enabled or not. |
0d153fc
to
499168f
Compare
499168f
to
7028dcc
Compare
This seems to go through now. There are a couple of things to be discussed here:
Other than that, I think the only thing left is to squash the commits a bit. |
I will add CI pipelines that enable files_external and:
That will help ensure that future regressions in the files_external code will be caught by CI. |
@phil-davis unless you have an idea for #39856 (comment) I think this is good to merge. I'm adding a changelog item now |
It looks good to me. Please invite some dev(s) to review and it could be merged. I can make a separate issue to put back some "full" testing for files_external in CI. Note: for the next core oC10 release we will need to check exactly what happens for:
|
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM but I guess @DeepDiver1975 should also have a look :)
Description
Allow disabling the files_external app
Related Issue
https://github.com/owncloud/enterprise/issues/5036#issuecomment-1061743656
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: