Skip to content

Conversation

@dmcintyr-akamai
Copy link
Contributor

@dmcintyr-akamai dmcintyr-akamai commented Nov 12, 2025

Description 📝

Fix the flakey vm-host test by hardcoding mock data instead of using randomly generated 'reason' which causes test to fail.

Changes 🔄

Cypress test
'maintenance notification banner on landing page for 1 linode' and 'maintenance notification banner on landing page for >1 linodes' in vm-host-maintenance-linode.spec.ts fail intermittently. Logs such as https://baker.linode.com/blue/organizations/jenkins/manager%2Fmanager-test/detail/PR-13048/10/tests/ indicate that the banner isn't showing up, and that's what the artifacts suggest as well.
The problem is that the isPlatformMaintenance hook in MaintenanceBannerV2 excludes notifications if they include the phrase "critical security update" in the reason attribute message, and this phrase is in one of the reasons randomly selected in the accountMaintenanceFactory that we use to create mock maintenance notifications. Solution is to hardcode the reason.

Scope 🚢

Upon production release, changes in this PR will be visible to:

  • All customers
  • Some customers (e.g. in Beta or Limited Availability)
  • No customers / Not applicable

How to test 🧪

pnpm run cy:run -s cypress/e2e/core/linodes/vm-host-maintenance-linode.spec.ts

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 tests and CI checks are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@dmcintyr-akamai dmcintyr-akamai requested a review from a team as a code owner November 12, 2025 17:48
@dmcintyr-akamai dmcintyr-akamai requested review from jdamore-linode and removed request for a team November 12, 2025 17:48
@dmcintyr-akamai dmcintyr-akamai requested a review from a team as a code owner November 12, 2025 17:51
Copy link
Contributor

@jdamore-linode jdamore-linode left a comment

Choose a reason for hiding this comment

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

Thanks for tracking this down David! Ran it 25 times locally and it passed every time 🚀

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🔺 1 failing test on test run #3 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing861 Passing11 Skipped49m 37s

Details

Failing Tests
SpecTest
open-support-ticket.spec.tsCloud Manager Cypress Tests→open support tickets » can create a support ticket with an entity

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/helpAndSupport/open-support-ticket.spec.ts"

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Nov 13, 2025
@dmcintyr-akamai dmcintyr-akamai merged commit b167091 into linode:develop Nov 14, 2025
34 of 35 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants