Skip to content

rptest: some shadow indexing & linking CI fixes#30586

Merged
WillemKauf merged 3 commits into
redpanda-data:devfrom
WillemKauf:ci_fixes
May 22, 2026
Merged

rptest: some shadow indexing & linking CI fixes#30586
WillemKauf merged 3 commits into
redpanda-data:devfrom
WillemKauf:ci_fixes

Conversation

@WillemKauf
Copy link
Copy Markdown
Contributor

See commits.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v26.1.x
  • v25.3.x
  • v25.2.x

Release Notes

  • none

This test would fail because segments from other irrelevant topics
would be probed for a drop in size due to compaction.

Limit the files we sample to only the segment files relevant to
the test topic.
…edTopic`

This test calls `_transfer_topic_leadership` and expects that a partition
move is respected. However, the autobalancer can race with this command and
result in a time out (as the partition is moved to a different node entirely).

Disable it for this test.
Specifically, for cloud topics backed storage modes, which seem
to need a bit more slack.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves CI stability for rptest shadow indexing and cluster linking end-to-end tests by reducing sensitivity to unrelated on-disk data and by tuning cluster/test configuration and timeouts for slower (cloud-backed) cases.

Changes:

  • Restrict compacted-topic size accounting to the specific test topic’s .log segments (avoids interference from other topics/internal logs).
  • Disable leader balancing / partition autobalancing for the compacted-topic shadow indexing e2e test variant.
  • Make cluster linking verifier progress timeout configurable and increase it for cloud-backed storage modes in the failure-injection scenario.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/rptest/tests/shadow_indexing_compacted_topic_test.py Filters data_stat() sizes to only the test topic’s Kafka .log segments when checking compaction impact.
tests/rptest/tests/e2e_shadow_indexing_test.py Adds an __init__ to the compacted-topic test to disable balancing features that can add noise/flakiness.
tests/rptest/tests/cluster_linking_test_base.py Extends verify() to accept and forward a progress_timeout to the progress verifier.
tests/rptest/tests/cluster_linking_e2e_test.py Uses a longer verification progress timeout when running in cloud-backed storage modes.

Copy link
Copy Markdown
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

TopicSpec.STORAGE_MODE_CLOUD,
TopicSpec.STORAGE_MODE_TIERED_CLOUD,
)
progress_timeout = 120 if cloud_backed else 60
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would definitely run this a few hundred times in CDT. last time I was messing with similar timeouts i saw pretty huge variance. fairly minor s3 hiccups eat into these timeouts pretty quickly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would definitely run this a few hundred times in CDT. last time I was messing with similar timeouts i saw pretty huge variance. fairly minor s3 hiccups eat into these timeouts pretty quickly.

Not sure its worth hitting CDT a million times on this PR to check that these timeouts are permissive, I'm in favour of letting it just sit in CI and re-adjust in the future if necessary.

@WillemKauf WillemKauf merged commit 62ef694 into redpanda-data:dev May 22, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants