-
Notifications
You must be signed in to change notification settings - Fork 363
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
upcoming: [M3-8848] - Update Kubernetes version Autocomplete to filter on LKE-E versions #11359
base: develop
Are you sure you want to change the base?
upcoming: [M3-8848] - Update Kubernetes version Autocomplete to filter on LKE-E versions #11359
Conversation
… support tiers for LKE-E
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Mariah, the test is looking good! I really like how you're building it out piece-by-piece alongside the rest of the feature work.
I am seeing some rare failures when running it repeatedly, but couldn't figure out if it's a test issue or an app issue. I posted a comment with everything I know. Hoping to take a closer look in the next day or so, but happy to help out if you have any questions, trouble reproducing, etc.!
// Selects an enterprise version | ||
ui.autocomplete | ||
.findByLabel('Kubernetes Version') | ||
.should('be.visible') | ||
.click(); | ||
|
||
ui.autocompletePopper | ||
.findByTitle(latestEnterpriseTierKubernetesVersion.id) | ||
.should('be.visible') | ||
.should('be.enabled') | ||
.click(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting intermittent* failures here where the v1.31.1+lke1
entry isn't present in the autocomplete dropdown.
In each case I've observed, Cloud is making the expected GET request to lke/versions/enterprise
and Cypress is mocking the response with the right data, so I'm not certain whether this is a test issue or possibly a bug.
Hoping to spend more time looking at this, but wanted to give you a heads up in the meantime!
*
To elaborate on "intermittent": I'm running the test using repeat 10 cy:run ...
and seeing the failure 1-2 times per every 10 attempts.
lke-create.spec.ts.mp4
mockGetTieredKubernetesVersions('enterprise', [ | ||
latestEnterpriseTierKubernetesVersion, | ||
]).as('getTieredKubernetesVersions'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mockGetTieredKubernetesVersions('enterprise', [ | |
latestEnterpriseTierKubernetesVersion, | |
]).as('getTieredKubernetesVersions'); | |
mockGetTieredKubernetesVersions('enterprise', [ | |
latestEnterpriseTierKubernetesVersion, | |
]).as('getTieredKubernetesVersions'); | |
mockGetTieredKubernetesVersions('standard', []); |
I wonder if there'd be any benefit to mocking the standard
versions response so Cloud doesn't try to send repeated requests to that endpoint during the test?
It doesn't seem to make a difference when it comes to the test failure I mentioned, though 😕
Forgot to fix this after I was messing around with things Co-authored-by: jdamore-linode <[email protected]>
Cloud Manager UI test results🎉 465 passing tests on test run #3 ↗︎
|
Description 📝
When a user selects LKE-Enterprise as their cluster type, we will need to ensure the Kubernetes versions for the enterprise tier are displayed and the versions for the standard tier are not.
Note: Also pending approval from UX, who has noted that there is a potential drop off at the version field in LKE during cluster creation. Potential helper text/tooltip may be added.
Changes 🔄
return
in the useKubernetesTieredVersionsQuery hooktier
if the LKE-E feature is enabled so that the enterprise cluster can be createdlke-create.spec.ts
Preview 📷
Screen.Recording.2024-12-03.at.8.37.00.AM.mov
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
(How to verify changes)
LKE Enterprise
as their cluster type, the version select shows only LKE-E versionsLKE
as the cluster type/versions
) is usedAuthor 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
As an Author, before moving this PR from Draft to Open, I confirmed ✅