-
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
[tests-only]Fixed flaky test detected in files_classifiers #39548
Conversation
💥 Acceptance tests pipeline webUIUpload-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. |
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.
Note:
-
we added an extra check that "/PARENT/copy1.txt" is definitely no longer a file, after it has been overwritten by a folder. That is an enhancement to the scenario, not directly fixing the flaky behavior.(see comment below - this extra step was not useful) -
the order of checking the content of the 2 copies of
testfile.txt
has been changed. That seems to eliminate the flaky behavior in the files_classifier CI. TBH we are not sure why this really helps. But it will be good to get this scenario "happy".
Unrelated fail https://drone.owncloud.com/owncloud/core/33888/150/16 |
💥 Acceptance tests pipeline apiSharePublicLink2-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiSharePublicLink2-mariadb10.2-php7.4 failed. The build has been cancelled. |
https://drone.owncloud.com/owncloud/core/33892/72/13
Actually it is probably best that that step works in that way.
That already checks that the resource is a folder, so we already know that it is not a file. I will remove that extra test step that does not do anything useful. |
b5e8604
to
b7306da
Compare
💥 Acceptance tests pipeline webUIUpload-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. |
Kudos, SonarCloud Quality Gate passed! |
This has been cherry-picked into PR #39548 |
Description
after some debugging the test scenario apiSharePublicLink2/copyFromPublicLinkOc10Issue37683.feature:9 that was failing in files_classifiers is turned out to be order dependent. And we can make the test pass by swapping the steps to check content in original and copied file.
Related Issue
How Has This Been Tested?
Types of changes
Checklist: