Repository navigation
Conversation
|
Kudos, SonarCloud Quality Gate passed! |
| await pollCheck() | ||
|
|
||
| const davPath = exports.createDavPath(user, fileName) | ||
| await client.pause(1000) |
There was a problem hiding this comment.
explicit pause can lead to a longer test run time cumulatively. Any other solutions?
There was a problem hiding this comment.
None that I can think of. The version of the file is not created because the file doesn't get uploaded in a short time. Do you have any suggestions?
There was a problem hiding this comment.
adding some context why that pause was necessary will be so helpful.
There was a problem hiding this comment.
@SwikritiT file gets uploaded correctly. If it wasn't uploaded then the tests should fail in step Then the content of file ....
File gets uploaded and the content is also updated to the last one but web shows only one version of it. It is so weird.
| const filename = testCase.pickle.uri | ||
| .replace('tests/acceptance/features/', '') | ||
| .replace('/', '-') | ||
| .replace('.', '-') |
There was a problem hiding this comment.
See if we can still get those line numbers, otherwise, screenshots with multiple failures in the same feature file will be confusing
| ) | ||
|
|
||
| await client.pause(500) | ||
| await client.pause(1000) |
There was a problem hiding this comment.
increasing pause time here will work. above changes are not required.
There was a problem hiding this comment.
Only increasing the pause time here doesn't work. https://drone.owncloud.com/owncloud/web/19506/7/15 This build is failing
https://github.com/owncloud/web/pull/5870/files#diff-9f84cdf80c9458298c0c142d49e0ba8303e99eb0fe5dccff79fcf6fdae337398
There was a problem hiding this comment.
Yeah, failed on multiple runs. I only tried with some scenarios.
But keep it wisely so that there won't be unnecessary longer waits.
|
i get the point that we have to use some timeouts here and there, but this can lead to flaky tests if network is slower or in other cases. Instead of timeout, can't we just wait for the file to be visible in the ui? Then we can be sure that the upload is finished. Just thinking loud, open for other solutions as well. |
|
This is a really nasty one. I tried investigating it now and even when waiting for a full 5-10 seconds plus reloading the page (and even when doing both twice in a row) there's no guarantee the backend won't just send one version (instead of the expected two versions). Not sure how to proceed now, these tests do have a negative impact on our productivity at the moment (as in a minimum of 50% of our CI runs fail because of flaky version tests) |
I'd say we skip the test in CI entirely. If there is the wish/need to get it fixed, the skip label can be removed in this PR after a rebase. Ok? |
Done in 88b7172, closing this PR in favor of the other commit/PR. Thanks JankariTech for investigating! |
|
If I am reading correctly, in this case the back-end is unreliable and does not consistently provide either the expected result, or a failing result. Note: if this is a file versions thing, then is there some relation to the 1-second granularity of versions? I know that we have had trouble in the past because actually if you update a file twice in the same second, then you only end up with one effective version created. I thought that we had put suitable delays in creating/updating files in tests so that this known problem should not happen. |
|
I'd be happy to get the test back once it's stable. @phil-davis can you guys continue investigating? A PR that removes the skip label again would be the ideal outcome. I cannot tell where the instability originates from. |
|
@phil-davis if this in an backend bug and not only a limitation because versions are only saved once a second, there should be some API tests failing |








Description
This PR adds a fix for failing versions tests and also updates the hook for setting screenshots for tests.
Related Issue
Motivation and Context
webUIFilesActionMenu/versions.feature:36was flaky and was passing on retry a lot and sometimes even failing. The behavior could only be reproduced in CI as it passed without any problem locally, even if it's run multiple times. It failed on theAnd the versions list should contain 2 entriesstep because it couldn't find the second version. Upon inspecting the screenshots the second version wasn't created probably because the file wasn't uploaded as this scenario requires fewputoperations for updating the versions. Upon adding apausebeforeputoperation and increasing thewaitTimewhich will eventually give enough time for the file to be uploaded, the tests pass.How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: