Skip to content

test: wait for the DeleteRevision handler before redelivering - #861

Merged
micbar merged 1 commit into
opencloud-eu:mainfrom
butonic:fix/delete-revision-redelivery-spec
Oct 8, 2026
Merged

micbar merged 1 commit into
opencloud-eu:mainfrom
butonic:fix/delete-revision-redelivery-spec

Conversation

@butonic

@butonic butonic commented Oct 7, 2026

Copy link
Copy Markdown
Member

The redelivery spec sampled the node until its blob metadata was back, but RevertUpload restores the metadata before UnmarkProcessing clears the processing flag. Under load the Consistently then caught the first handler still running and saw processing=true. Wait for the flag to be gone, like the pkg/storage/pkg/decomposedfs copy of this spec already does.

fixes flakyness in tests: https://ci.opencloud.rocks/repos/4/pipeline/929/157

• [FAILED] [0.141 seconds]
DeleteRevision event [It] is a no-op when the event is redelivered
/go/src/github.com/opencloud-eu/reva/pkg/storage/utils/decomposedfs/delete_revision_event_test.go:283

  [FAILED] Failed after 0.000s.
  The function passed to Consistently failed at /go/src/github.com/opencloud-eu/reva/pkg/storage/utils/decomposedfs/delete_revision_event_test.go:303 with:
  Expected
      <bool>: true
  to be false
  In [It] at: /go/src/github.com/opencloud-eu/reva/pkg/storage/utils/decomposedfs/delete_revision_event_test.go:304 @ 10/06/26 15:40:15.295
------------------------------
••••••••••••••••

Summarizing 1 Failure:
  [FAIL] DeleteRevision event [It] is a no-op when the event is redelivered
  /go/src/github.com/opencloud-eu/reva/pkg/storage/utils/decomposedfs/delete_revision_event_test.go:304

Ran 88 of 89 Specs in 8.981 seconds
FAIL! -- 87 Passed | 1 Failed | 1 Pending | 0 Skipped
--- FAIL: TestDecomposed (8.99s)
```

The redelivery spec sampled the node until its blob metadata was back, but
RevertUpload restores the metadata before UnmarkProcessing clears the
processing flag. Under load the Consistently then caught the first handler
still running and saw processing=true. Wait for the flag to be gone, like
the pkg/storage/pkg/decomposedfs copy of this spec already does.
@butonic butonic self-assigned this Oct 7, 2026
@micbar
micbar merged commit f84767c into opencloud-eu:main Oct 8, 2026
19 of 20 checks passed
@openclouders openclouders mentioned this pull request Oct 8, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants