Skip to content

test: [M3-9716] - Disallow some regions from being used for Image upload tests - #11961

Merged
jdamore-linode merged 3 commits into
linode:developfrom
jdamore-linode:M3-9716-machine-image-upload-test-flake-fix
Apr 4, 2025
Merged

jdamore-linode merged 3 commits into
linode:developfrom
jdamore-linode:M3-9716-machine-image-upload-test-flake-fix

Conversation

@jdamore-linode

@jdamore-linode jdamore-linode commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

Description 📝

This PR aims to eliminate the flakiness we're seeing with all of the tests in machine-image-upload.spec.ts.

The failures occur when the test attempts to upload an Image to a region which supports OBJ Gen 2. These regions do not support Machine Image upload and always result in the API responding with a 500. See the Jira ticket comments for more information.

This PR addresses the test flake by manually excluding the affected regions from being used by the tests. With these changes in place, I was able to run the spec 10 times and have it pass every time.

Changes 🔄

  • Allow regions to be excluded using chooseRegion
  • Exclude gb-lon, au-mel, and sg-sin-2 when choosing a region during Machine Image upload tests

Target release date 🗓️

N/A.

How to test 🧪

pnpm cy:run -s "cypress/e2e/core/images/machine-image-upload.spec.ts"

We'll also double check the CI test results to confirm that the spec passed without any failed attempts.

Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@jdamore-linode
jdamore-linode requested a review from a team as a code owner April 2, 2025 22:52
@jdamore-linode
jdamore-linode requested review from dwiley-akamai and pmakode-akamai and removed request for a team April 2, 2025 22:52
@linode-gh-bot

Copy link
Copy Markdown

Cloud Manager UI test results

🎉 539 passing tests on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing539 Passing4 Skipped93m 16s

@mjac0bs mjac0bs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for doing this, Joe. Confirmed the test passes consistently 10+ times locally as well. 🧪

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Apr 3, 2025

@dwiley-akamai dwiley-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ran & passed twice locally + passes in CI ✅

@github-project-automation github-project-automation Bot moved this from Review to Approved in Cloud Manager Apr 3, 2025
@jdamore-linode
jdamore-linode merged commit c6fd08d into linode:develop Apr 4, 2025
@github-project-automation github-project-automation Bot moved this from Approved to Merged in Cloud Manager Apr 4, 2025
@mjac0bs mjac0bs added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! Ready for Review labels Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Multiple approvals and ready to merge!

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants