Skip to content

watch-fs. Flaky api tests #2036

@ScharfViktor

Description

@ScharfViktor

Precondition

STORAGE_USERS_POSIX_WATCH_FS=true

Describe the bug

Issue 1: user uploads file with content but it's empty:

we already added checkFileContentWithRetry() which checks file content. It takes more than 10 seconds — that seems like a real problem

And user "Alice" has uploaded file with content "content" to "textfile.txt"                                                                         # FeatureContext::userHasUploadedAFileWithContentTo()
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (1)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (2)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (3)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (4)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (5)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (6)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (7)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (8)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (9)...
      │ [INFO] File content mismatch. Expected content 'content' but got '', checking content again (10)...
      │ 
      The content was expected to be 'content', but actually is ''. HTTP status was 200
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'content'
      +''

Issue 2: file stuck in 425

Given user "Alice" has uploaded file with content "content" to "test.txt"            # FeatureContext::userHasUploadedAFileWithContentTo()
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (1)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (2)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (3)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (4)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (5)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (6)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (7)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (8)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (9)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] Waiting for post processing to finish, attempt (10)...
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [ERROR] 10 seconds timeout! Post processing did not finish in time.
     │ [INFO] Received '425' status code, retrying request (1)...
     │ [INFO] Received '425' status code, retrying request (2)...
     │ [INFO] Received '425' status code, retrying request (3)...
     │ [INFO] Received '425' status code, retrying request (4)...
     │ [INFO] Received '425' status code, retrying request (5)...
     │ [INFO] Received '425' status code, retrying request (6)...
     │ [INFO] Received '425' status code, retrying request (7)...
     │ [INFO] Received '425' status code, retrying request (8)...
     │ [INFO] Received '425' status code, retrying request (9)...
     │ [INFO] Received '425' status code, retrying request (10)...
     │ [INFO] File content mismatch. Expected '200' but got '425', checking content again (1)...
     │ 
     HTTP status code 425 is not the expected value 200
     Failed asserting that 425 matches expected 200.

issue 3 (rarely)

Scenario: user doesn't lose share and public link after renaming the file                                                                             # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/collaborativePosix/collaborativePosixFS.feature:159
    Given user "Brian" has been created with default attributes                                                                                         # FeatureContext::userHasBeenCreatedWithDefaultAttributes()
    And user "Alice" has uploaded file with content "content" to "textfile.txt"                                                                         # FeatureContext::userHasUploadedAFileWithContentTo()
    And user "Alice" has created the following resource link share:                                                                                     # SharingNgContext::userHasCreatedTheFollowingResourceLinkShare()
      | resource        | textfile.txt |
      | space           | Personal     |
      | permissionsRole | view         |
      | password        | %public%     |
    And user "Alice" has sent the following resource share invitation:                                                                                  # SharingNgContext::userHasSentTheFollowingResourceShareInvitation()
      | resource        | textfile.txt |
      | space           | Personal     |
      | sharee          | Brian        |
      | shareType       | user         |
      | permissionsRole | Viewer       |
    And user "Brian" has a share "textfile.txt" synced                                                                                                  # SharingNgContext::userHasShareSynced()
    When the administrator renames the file "textfile.txt" to "new-name.txt" for user "Alice" on the POSIX filesystem                                   # CliContext::theAdministratorRenamesFile()
    Then the command should be successful                                                                                                               # CliContext::theCommandShouldBeSuccessful()
    And user "Brian" should have a share "textfile.txt" shared by user "Alice" from space "Personal"                                                    # SharingNgContext::userShouldHaveShareSharedByUserFromSpace()
      Share mountpoint 'textfile.txt' was not found in the drives list.
      Failed asserting that false is identical to true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Qualification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions