Skip to content

watch-fs. Flaky api tests #2036

Open

Description

@v-scharf

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.

Activity

  1. prashant-gurung899 commented on Dec 16, 2025

    @prashant-gurung899
    Member

    Similar issue here: #2026

  2. moved this from Qualification to Done in OpenCloud Team Boardon Dec 16, 2025
  3. saw-jan commented on Dec 16, 2025

    @saw-jan
    Contributor

    Test suite is skipped in the CI for now: #2039

  4. moved this from Done to Qualification in OpenCloud Team Boardon Dec 16, 2025
  5. moved this from Qualification to Prio <= 3 in OpenCloud Team Boardon Jan 29, 2026
  6. butonic commented on Nov 13, 2026

    @butonic
    Member

    Issue 1 also hits the posix API tests in reva CI, which still run with watch_fs = true (tests/oc-integration-tests/ci/storage-users-posix.toml): https://ci.opencloud.rocks/repos/4/pipeline/1736, coreApiAuth/webDavPUTAuth.feature:98 (on line 11).

    And user "Alice" has uploaded file with content "some data" to "/textfile0.txt"     # FeatureContext::userHasUploadedAFileWithContentTo()
      │ [INFO] File content mismatch. Expected content 'some data' but got '', checking content again (1)...
      ...
      │ [INFO] File content mismatch. Expected content 'some data' but got '', checking content again (10)...
      The content was expected to be 'some data', but actually is ''. HTTP status was 200

    The revad log has no error for that file, only the watcher's skip already known item for it and then nothing for ~10 seconds, while the test retries. Every other scenario in the suite uploads the same file in its background and passed.

  7. pbleser-oc commented on Nov 14, 2026

    @pbleser-oc
    Member

    This still happens in the nightly runs on main, in watchfs-test-API-wopi-posix (apiCollaboration/checkFileInfo.feature): the upload in the setup reads back empty after all retries ("The content was expected to be 'hello world', but actually is ''. HTTP status was 200"):

    • #5048 (2026-11-09), also once with 425 on the read
    • #5247 (2026-11-13)
    • #5336 (2026-11-14)
  8. butonic commented on Nov 17, 2026

    @butonic
    Member

    again in reva CI: https://ci.opencloud.rocks/repos/4/pipeline/1813 (posixfs/1), coreApiAuth/webDavPUTAuth.feature:84 (on line 12). The PUT returns 200, the read stays empty:

    And user "Alice" has uploaded file with content "some data" to "/textfile1.txt"
      │ [INFO] File content mismatch. Expected content 'some data' but got '', checking content again (1)...
      ...
      │ [INFO] File content mismatch. Expected content 'some data' but got '', checking content again (10)...
      The content was expected to be 'some data', but actually is ''. HTTP status was 200

    The other three posixfs workflows of the same run passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions