Skip to content

test(api): increase retry count for share migrating failure - #3705

Closed
saw-jan wants to merge 1 commit into
mainfrom
test/max-retries-count
Closed

saw-jan wants to merge 1 commit into
mainfrom
test/max-retries-count

Conversation

@saw-jan

@saw-jan saw-jan commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

Sharing test suite still can fail due to retry maxing out. Migration takes more than 10 seconds (10 retries) to complete.
Increase polling and retry count if we encounter share manager migrating (500) error.

See in:

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment: 🖐️

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation added

@saw-jan saw-jan self-assigned this Oct 13, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@saw-jan
saw-jan requested a review from v-scharf October 13, 2026 05:20
@micbar

micbar commented Oct 13, 2026

Copy link
Copy Markdown
Member

The issue is deeper:

this comes from the restarting process due to the ocwrapper. The previous migration is running and we have an orphaned migration.lock file.

This condition cannot be solved by longer wait times.
I tried to implement a lock release during a SIGTERM, but that is also racy.

If that didn’t fix the problem, we should add a config to skip the migration in CI

@v-scharf

@v-scharf

v-scharf commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

@micbar 500 error stills present after merging #3700
see nightly running https://ci.opencloud.rocks/repos/3/pipeline/4094/465

@saw-jan I don't think that increasing retry count helps. we need next level - disabling share migration for tests

@saw-jan

saw-jan commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

okay, understood. we need something that can make this flaky failures stable without much test retries.

@saw-jan
saw-jan marked this pull request as draft October 13, 2026 09:06
@micbar micbar closed this in #3715 Oct 14, 2026
@saw-jan
saw-jan deleted the test/max-retries-count branch October 15, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants