Skip to content

Flaky Test in OpenCloud #83

Closed
Closed

Description

@micbar
  1. Unit Tests
• [FAILED] [0.375 seconds]
SpaceDebouncer [It] fires at the timeout even when continuously debounced
/go/src/github.com/opencloud-eu/opencloud/services/search/pkg/service/event/debouncer_test.go:77

  [FAILED] Failed after 0.107s.
  Expected
      <int>: 2
  to equal
      <int>: 1
  In [It] at: /go/src/github.com/opencloud-eu/opencloud/services/search/pkg/service/event/debouncer_test.go:116 @ 05/11/26 08:50:56.926
  1. OpenCloud Crashing -> tracked in opencloud still doesn't shutdown cleanly opencloud#2746
2026/05/11 19:29:53 [ocwrapper] Restarting OpenCloud server...
{"level":"error","error":"unknown edition channel ''","time":"2026-05-11T19:29:53.98271243Z","caller":"/go/src/github.com/opencloud-eu/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
2026/05/11 19:29:55 [ocwrapper] All services are up
2026/05/11 19:29:55 [ocwrapper] OpenCloud server is ready to accept requests
{"level":"error","service":"graph","request-id":"apiSharingNg1/sharedWithMe.feature:5448-9","error":"LDAP Result Code 68 \"Entry Already Exists\": ","time":"2026-05-11T19:29:56Z","message":"failed to add user"}
{"level":"error","service":"graph","request-id":"apiSharingNg1/sharedWithMe.feature:5448-9","error":"nameAlreadyExists: a user with that name already exists","time":"2026-05-11T19:29:56Z","message":"could not create user: backend error"}
2026/05/11 19:29:56 [ocwrapper] Stopping OpenCloud server...
{"level":"error","service":"opencloud","event":"opencloud: Failed service 'activitylog' (1.000000 failures of 5.000000), restarting: true, error: %!s(<nil>)","service":"activitylog","supervisor":"opencloud","restarting":true,"failures":1,"threshold":5,"error":null,"time":"2026-05-11T19:29:56Z","message":"service terminated"}
{"level":"error","service":"activitylog","error":"Stream did not exist and adding a stream failed: context deadline exceeded","transport":"http","time":"2026-05-11T19:30:11Z","message":"Failed to initialize server"}
Error: Stream did not exist and adding a stream failed: context deadline exceeded
Usage:
  activitylog server [flags]

Flags:
  -h, --help   help for server

2026/05/11 19:30:11 [ocwrapper] Restarting OpenCloud server...
{"level":"error","error":"unknown edition channel ''","time":"2026-05-11T19:30:11.219515982Z","caller":"/go/src/github.com/opencloud-eu/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
2026/05/11 19:30:13 [ocwrapper] All services are up
2026/05/11 19:30:13 [ocwrapper] OpenCloud server is ready to accept requests
{"level":"error","service":"graph","request-id":"apiSharingNg1/sharedWithMe.feature:5449-9","error":"LDAP Result Code 68 \"Entry Already Exists\": ","time":"2026-05-11T19:30:13Z","message":"failed to add user"}
{"level":"error","service":"graph","request-id":"apiSharingNg1/sharedWithMe.feature:5449-9","error":"nameAlreadyExists: a user with that name already exists","time":"2026-05-11T19:30:13Z","message":"could not create user: backend error"}
2026/05/11 19:30:13 [ocwrapper] Stopping OpenCloud server...
{"level":"error","service":"opencloud","event":"opencloud: Failed service 'activitylog' (1.000000 failures of 5.000000), restarting: true, error: %!s(<nil>)","service":"activitylog","supervisor":"opencloud","restarting":true,"failures":1,"threshold":5,"error":null,"time":"2026-05-11T19:30:13Z","message":"service terminated"}
{"level":"error","service":"activitylog","error":"Stream did not exist and adding a stream failed: context deadline exceeded","transport":"http","time":"2026-05-11T19:30:28Z","message":"Failed to initialize server"}
Error: Stream did not exist and adding a stream failed: context deadline exceeded

Activity

  1. aduffeck commented on May 13, 2026

    @aduffeck
    Member
      Scenario: check file info with onlyOffice                                                                        # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiCollaboration/checkFileInfo.feature:214
        Given user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"                            # FeatureContext::userHasUploadedAFileWithContentTo()
        When user "Alice" checks the information of file "textfile0.txt" of space "Personal" using office "OnlyOffice" # CollaborationContext::userChecksTheInformationOfFileOfSpaceUsingOffice()
          Warning: Undefined property: stdClass::$form_parameters in /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/bootstrap/CollaborationContext.php line 107
    

    according server logs

    ==> REQUEST [2026-05-13T9:32:19]
    		POST /app/open
    		QUERY: app_name=OnlyOffice&file_id=d9bf857a-844d-4f1a-b800-4ba054df2104$622d1b86-2da9-48e0-9624-3d8abd9a5bbc!a3b7abcd-25e5-4bc7-a5b4-d398597c2650
    		X-Request-ID: apiCollaboration/checkFileInfo.feature:214-216
    
    		<== RESPONSE [2026-05-13T9:32:19]
    		500 Internal Server Error
    		X-Xss-Protection: 1; mode=block
    		<== RES BODY
    		{
    		  "code": "SERVER_ERROR",
    		  "message": "Error contacting the requested application, please use a different one or try again later"
    		}
    
    
  2. micbar commented on May 13, 2026

    @micbar
    MemberAuthor
    --- Failed scenarios:
    
        /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiSpaces/disableAndDeleteSpaces.feature:85 (on line 7)
        /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiSpaces/quota.feature:70 (on line 14)
    

    Reason:

          | Quota76%   | 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456                         | nearing  | 24            | 76   | 100           |
            Failed step: Given user "Alice" has been created with default attributes
            cURL error 18: SSL certificate OpenSSL verify result: self-signed certificate (18) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://opencloud-server:9200/konnect/v1/token (GuzzleHttp\Exception\RequestException)
    
  3. micbar commented on May 13, 2026

    @micbar
    MemberAuthor

    Needs in depth check.

    Sometimes the thumbnails have a very small difference.

      Scenario: local user downloads thumbnail preview of a federated shared image                                                             # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiOcm/share.feature:956
        Given using spaces DAV path                                                                                                            # FeatureContext::usingOldOrNewOrSpacesDavPath()
        And using server "LOCAL"                                                                                                               # FeatureContext::usingServer()
        And "Alice" has created the federation share invitation                                                                                # OcmContext::userHasCreatedTheFederationShareInvitation()
        And using server "REMOTE"                                                                                                              # FeatureContext::usingServer()
        And "Brian" has accepted invitation                                                                                                    # OcmContext::userHasAcceptedTheLastFederationShareInvitation()
        And user "Brian" has uploaded file "filesForUpload/testavatar.jpg" to "testavatar.jpg"                                                 # FeatureContext::userHasUploadedAFileTo()
        And user "Brian" has sent the following resource share invitation to federated user:                                                   # SharingNgContext::userHasSentTheFollowingResourceShareInvitationToFederatedUser()
          | resource        | testavatar.jpg |
          | space           | Personal       |
          | sharee          | Alice          |
          | shareType       | user           |
          | permissionsRole | Viewer         |
        And using server "LOCAL"                                                                                                               # FeatureContext::usingServer()
        When user "Alice" downloads the preview of federated share image "testavatar.jpg" with width "32" and height "32" using the WebDAV API # FeatureContext::userDownloadsThePreviewOfFederatedShareImageWithWidthHeightUsingWebDAVAPI()
        Then the HTTP status code should be "200"                                                                                              # FeatureContext::thenTheHTTPStatusCodeShouldBe()
        And the downloaded image should be "32" pixels wide and "32" pixels high                                                               # FeatureContext::imageDimensionsShouldBe()
        And the downloaded preview content should match with "thumbnail.png" fixtures preview content                                          # FeatureContext::theDownloadedPreviewContentShouldMatchWithFixturesPreviewContentFor()
          Failed asserting that two strings are equal.
          --- Expected
          +++ Actual
          @@ @@
          -Binary String: 0xffd8ffe100bc45786966000049492a000800000006001201030001000000010000001a01050001000000560000001b010500010000005e0000002801030001000000020000001302030001000000010000006987040001000000660000000000000000770100e803000000770100e8030000060000900700040000003032313001910700040000000102030000a00700040000003031303001a0030001000000ffff000002a00400010000002000000003a00400010000002000000000000000ffdb00430006040506050406060506070706080a100a0a09090a140e0f0c1017141818171416161a1d251f1a1b231c1616202c20232627292a29191f2d302d283025282928ffdb0043010707070a080a130a0a13281a161a2828282828282828282828282828282828282828282828282828282828282828282828282828282828282828282828282828ffc20011080020002003012200021101031101ffc4001a000001050100000000000000000000000000010203040506ffc400160101010100000000000000000000000000000304ffda000c03010002100310000001e40d18af9a997261c998179d9e1fffc4001c1000000701010000000000000000000000000102030411141220ffda0008010100010502f19ac6676f33d47193d372b971331491a560e49f5e3fffc400161100030000000000000000000000000000000112ffda0008010301013f01964b2994cfffc4001511010100000000000000000000000000000011ffda0008010201013f0188aaffc4002110000201030305000000000000000000000102110003121320413151526191ffda0008010100063f02d8745c5d20c1005461efad4e068a0bc0bacc88ed4a74d546419b1e6a151427889ae2608fa668b0b76c399961cedfffc4001e100002020203010100000000000000000001112131004120517161a1ffda0008010100013f21e04c5231802cf4ec4647d8248ad5b579aa87d4ed57b8863163410928ee9652ef63263d3f980e37b025b6dbc2d7d9e5e02a0a885b047717c7ffda000c03010002000300000010dbafdeffc4001511010100000000000000000000000000000061ffda0008010301013f10820b28ffc4001511010100000000000000000000000000000011ffda0008010201013f10a5294fffc4001d100101010002030101000000000000000001112100312041518191ffda0008010100013f10f093217d523ec94523666f0d4ac4b1fe93a4b6e7235f9887b6eac30e63df00ca80e821335a66fd38201ac01553b00aac42bc276209855e50687b9338a100176050d5b47a7fb786c0c0347498ec7037c7ffd9
          +Binary String: 0xffd8ffe100bc45786966000049492a000800000006001201030001000000010000001a01050001000000560000001b010500010000005e0000002801030001000000020000001302030001000000010000006987040001000000660000000000000000770100e803000000770100e8030000060000900700040000003032313001910700040000000102030000a00700040000003031303001a0030001000000ffff000002a00400010000002000000003a00400010000002000000000000000ffdb00430006040506050406060506070706080a100a0a09090a140e0f0c1017141818171416161a1d251f1a1b231c1616202c20232627292a29191f2d302d283025282928ffdb0043010707070a080a130a0a13281a161a2828282828282828282828282828282828282828282828282828282828282828282828282828282828282828282828282828ffc20011080020002003012200021101031101ffc4001a000001050100000000000000000000000000010203040506ffc400160101010100000000000000000000000000000304ffda000c03010002100310000001e40d18af9a997261c998179d9e1fffc4001c1000010403010000000000000000000000020001041403111220ffda0008010100010502f15b6ab65dd6cda78e3d04ae720cc21564d3c97ebc7fffc400161100030000000000000000000000000000000112ffda0008010301013f01964b2994cfffc4001511010100000000000000000000000000000011ffda0008010201013f0188aaffc4002110000201030305000000000000000000000102110003121320413151526191ffda0008010100063f02d8745c5d20c1005461efad4e068a0bc0bacc88ed4a74d546419b1e6a151427889ae2608fa668b0b76c399961cedfffc4001e100002020203010100000000000000000001112131004120617151a1ffda0008010100013f21e04c5231802fa762323ec12456adabcd543b4ed57b8963163410928ee9656ef63263d3f980e36b025b6dbc2d7f4f2f01505442d823b8be3fffda000c03010002000300000010dbafdeffc4001511010100000000000000000000000000000061ffda0008010301013f10820b28ffc4001511010100000000000000000000000000000011ffda0008010201013f10a5294fffc4001d100101010002030101000000000000000001112100312041518191ffda0008010100013f10f093217d2b1f64a291b3379da56258ff0049d25b7391afcc43db75618731ef8265407410982e99bf4e1806b005543402ab10af09dcc2615796943dc99c50800bb0286ada3d3fdbc360601a3a4c76381be3ffd9
    
  4. v-scharf commented on Jul 1, 2026

    @v-scharf
    Collaborator
    • apiSharingNg1/enableDisableShareSync.feature:422 -> 500 error
    Scenario: try to enable sync of shared resource from Personal Space when sharer is deleted
        Given user "Brian" has disabled the auto-sync share
        And user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"
        And we save it into "FILEID"
        And user "Alice" has sent the following resource share invitation:
          | resource        | textfile0.txt |
          | space           | Personal      |
          | sharee          | Brian         |
          | shareType       | user          |
          | permissionsRole | Viewer        |
        And the user "Admin" has deleted a user "Alice"
        When user "Brian" tries to enable share sync of a resource "<<FILEID>>" using the Graph API
        Then the HTTP status code should be "400"
        And the JSON data of the response should match
          """
          {
            "type": "object",
            "required": ["error"],
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "innererror",
                  "message"
                ],
                "properties": {
                  "code" : {
                    "const": "invalidRequest"
                  },
                  "innererror" : {
                    "type": "object",
                    "required": [
                      "date",
                      "request-id"
                    ]
                  },
                  "message" : {
                    "const": "converting to drive items failed"
                  }
                }
              }
            }
          }
          """
    
    ### When user "Brian" tries to enable share sync of a resource "<<FILEID>>" using the Graph API
    		_______________________________________________________________________
    
    		==> REQUEST [2026-07-01T11:29:21]
    		GET /graph/v1.0/me
    		X-Request-ID: apiSharingNg1/enableDisableShareSync.feature:422-433
    
    		_______________________________________________________________________
    
    		==> REQUEST [2026-07-01T11:29:21]
    		POST /graph/v1beta1/drives/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668/root/children
    		X-Request-ID: apiSharingNg1/enableDisableShareSync.feature:422-433
    		==> REQ BODY
    		{"remoteItem":{"id":"f3e2077f-bd7d-4479-b050-c946af3b1663$4569ed64-670f-402a-b4e7-446d61f4e467!6109fa06-3422-49dc-87ab-6fe7bf99f3e8"}}
    
    		<== RESPONSE [2026-07-01T11:29:21]
    		500 Internal Server Error
    		X-Xss-Protection: 1; mode=block
    		<== RES BODY
    		{"error":{"code":"generalException","innererror":{"date":"2026-07-01T11:29:21Z","request-id":"apiSharingNg1/enableDisableShareSync.feature:422-433"},"message":"stat:node.Xattr /root/.opencloud/storage/users/users/23cb8f0f-1684-46f4-a3ab-d977e4f8c7f6 user.oc.name: no data available"}}
    
    	### Then the HTTP status code should be "400"
    
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions