Skip to content

Fixed test_disk_resize_clone_and_create failure#866

Open
ezilber-akamai wants to merge 1 commit intolinode:devfrom
ezilber-akamai:fix/test_disk_resize_clone_and_create
Open

Fixed test_disk_resize_clone_and_create failure#866
ezilber-akamai wants to merge 1 commit intolinode:devfrom
ezilber-akamai:fix/test_disk_resize_clone_and_create

Conversation

@ezilber-akamai
Copy link
Contributor

📝 Description

Fixed test_disk_resize_clone_and_create failure

✔️ How to Test

make test-int TEST_CASE=test_disk_resize_clone_and_create

Copy link
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 updates Linode disk integration tests to make test_disk_resize_clone_and_create reliable by selecting an appropriate disk to resize and by adding readiness polling/retries to reduce flakiness.

Changes:

  • Add helper logic to pick the smallest disk (typically swap) instead of attempting to shrink the OS disk.
  • Add explicit waits for disk availability/“ready” state and verify the resized size is reflected before continuing.
  • Increase retry counts/delays for disk resize/clone operations and for Linode shutdown in the disk-test fixture.

Reviewed changes

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

File Description
tests/integration/linodes/test_disk.py Selects the smallest disk for resize/clone and adds readiness/size polling plus more retries to prevent the test from racing disk state transitions.
tests/integration/linodes/fixtures.py Makes Linode shutdown in the disk-test fixture more resilient by adding retries/delay before waiting for offline status.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ezilber-akamai ezilber-akamai marked this pull request as ready for review March 17, 2026 20:40
@ezilber-akamai ezilber-akamai requested a review from a team as a code owner March 17, 2026 20:41
@ezilber-akamai ezilber-akamai requested review from jriddle-linode and mgwoj and removed request for a team March 17, 2026 20:41
@ezilber-akamai ezilber-akamai added the testing for updates to the testing suite in the changelog. label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing for updates to the testing suite in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants