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

upcoming: [M3-8452, M3-8603] - Add Resource Links & Fix Test Flake #11047

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

jaalah-akamai
Copy link
Contributor

@jaalah-akamai jaalah-akamai commented Oct 4, 2024

Description 📝

Update OBJ Gen2 resource links and fix issue causing test flake.

Changes 🔄

  • .includes was causing test flake because the substring could match several options. IE: If looking for us-10, it may return us-1 or even us-100. See M3-8603
  • Added documentation resource links

Target release date 🗓️

N/A

Screenshots

Screenshot 2024-10-04 at 11 53 27 AM

How to test 🧪

Verification steps

Ensure tests pass and links work!

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

@jaalah-akamai jaalah-akamai self-assigned this Oct 4, 2024
@jaalah-akamai jaalah-akamai requested a review from a team as a code owner October 4, 2024 15:51
@jaalah-akamai jaalah-akamai requested review from mjac0bs, bnussman-akamai and AzureLatte and removed request for a team October 4, 2024 15:51
Copy link

github-actions bot commented Oct 4, 2024

Coverage Report:
Base Coverage: 87.23%
Current Coverage: 87.23%

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.

Can we add two changesets? One to note the fixed tests, and another in upcoming features for the docs links.

Confirmed the intended tests pass consistently locally and the fix makes sense. But, seeing a consistent failure with enable-object-storage.spec.ts, which is looking for the pricing helper text in the create drawer but it does not display. This also seems to be the case in the UI locally if the OMC feature flag is toggled off. (The test mocks the feature flag as false.) Not sure what's happening there, as the OveragePricing component is present in both OMC and non-OMC create drawers. Has this been failing recently and is captured in another ticket? Seems unrelated to this PR.

Also confirmed the docs links redirect to real pages.

@@ -179,7 +179,7 @@ export const OMC_CreateBucketDrawer = (props: Props) => {
};

const selectedRegion = watchRegion
? regions?.find((region) => watchRegion.includes(region.id))
? regions?.find((region) => watchRegion === region.id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Confirming that this fixes the test flake with bucket-create-gen2.spec.ts when selecting the mock us-10 region.

@jdamore-linode jdamore-linode changed the title upcoming: [M3-8452] - Add Resource Links & Fix Test Flake upcoming: [M3-8452, M3-8603] - Add Resource Links & Fix Test Flake Oct 4, 2024
@jaalah-akamai jaalah-akamai added Add'tl Approval Needed Waiting on another approval! and removed Missing Changeset labels Oct 7, 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.

👍🏼 Local e2e run looks good for the OBJ tests. Other CI failures seem to be due to the known auth problem.

Screenshot 2024-10-07 at 7 38 37 AM

@mjac0bs mjac0bs added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Oct 7, 2024
@jaalah-akamai jaalah-akamai merged commit 048d4df into linode:develop Oct 7, 2024
18 of 20 checks passed
Copy link

cypress bot commented Oct 7, 2024

Cloud Manager E2E    Run #6630

Run Properties:  status check passed Passed #6630  •  git commit 048d4dfc3d: upcoming: [M3-8452, M3-8603] - Add Resource Links & Fix Test Flake (#11047)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6630
Run duration 25m 11s
Commit git commit 048d4dfc3d: upcoming: [M3-8452, M3-8603] - Add Resource Links & Fix Test Flake (#11047)
Committer Jaalah Ramos
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
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 414
View all changes introduced in this branch ↗︎

hasyed-akamai pushed a commit to hasyed-akamai/manager that referenced this pull request Oct 9, 2024
…inode#11047)

* upcoming: [M3-8452] - Add Resource Links & Fix Test Flake

* Review updates @mjac0bs

* Update pr-11047-upcoming-features-1728307120334.md

---------

Co-authored-by: Jaalah Ramos <[email protected]>
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! Object Storage Gen2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants