Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: [M3-8890] - Fix flaky DBaaS resize test related to recent factory changes #11238

Conversation

jdamore-linode
Copy link
Contributor

@jdamore-linode jdamore-linode commented Nov 9, 2024

Description 📝

This fixes a few flaky tests in resize-database.spec.ts that fail on their first attempt and succeed on their second.

I believe this was caused by recent changes to our databaseFactory's platform field. Because the Cypress tests pre-date that field, it inherits the default value from the factory, which is always set to 'rdbms_default' on the first test attempt and 'rdbms_legacy' on the second attempt.

Because the new DBaaS v2 changes introduce a couple changes to the resize flow, the tests fail when the value is set to 'rdbms_default', so this PR resolves the test by ensuring the mock database's platform is 'rdbms_legacy'.

Changes 🔄

  • Set mock database platform field to 'rdbms_legacy'

Target release date 🗓️

N/A

How to test 🧪

yarn cy:run -s "cypress/e2e/core/databases/resize-database.spec.ts"

As an Author I have considered 🤔

Check all that apply

  • 👀 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

@jdamore-linode jdamore-linode self-assigned this Nov 9, 2024
@jdamore-linode jdamore-linode requested a review from a team as a code owner November 9, 2024 01:17
@jdamore-linode jdamore-linode requested review from AzureLatte and removed request for a team November 9, 2024 01:17
@jdamore-linode jdamore-linode requested a review from a team as a code owner November 9, 2024 01:20
@jdamore-linode jdamore-linode requested review from mjac0bs and hkhalil-akamai and removed request for a team November 9, 2024 01:20
Copy link

github-actions bot commented Nov 9, 2024

Coverage Report:
Base Coverage: 87.37%
Current Coverage: 87.37%

@mjac0bs mjac0bs added the DBaaS Relates to Database as a Service label Nov 12, 2024
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 445 passing tests on test run #6 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing445 Passing2 Skipped81m 57s

@jdamore-linode jdamore-linode added the Add'tl Approval Needed Waiting on another approval! label Nov 12, 2024
Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Thanks Joe! 🚢

@mjac0bs mjac0bs added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! Ready for Review labels Nov 12, 2024
Copy link
Contributor

@hkhalil-akamai hkhalil-akamai left a comment

Choose a reason for hiding this comment

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

No flake at all when running 10x locally!
Screenshot 2024-11-12 at 4 37 23 PM

@jdamore-linode jdamore-linode merged commit 0f5ae7e into linode:develop Nov 13, 2024
23 checks passed
Copy link

cypress bot commented Nov 13, 2024

Cloud Manager E2E    Run #6816

Run Properties:  status check passed Passed #6816  •  git commit 0f5ae7e485: test: [M3-8890] - Fix flaky DBaaS resize test related to recent factory changes ...
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6816
Run duration 27m 24s
Commit git commit 0f5ae7e485: test: [M3-8890] - Fix flaky DBaaS resize test related to recent factory changes ...
Committer jdamore-linode
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 5
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 445
View all changes introduced in this branch ↗︎

santoshp210-akamai pushed a commit to santoshp210-akamai/manager that referenced this pull request Nov 14, 2024
…ry changes (linode#11238)

* Set DBaaS resize test mock database instance platform to `'rdbms-legacy'`

* Added changeset: Fix DBaaS resize tests that fail on first attempt and succeed on second
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! DBaaS Relates to Database as a Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants