Skip to content

Remove cypress suppression of uncaught exceptions - #3063

Merged
openshift-merge-bot[bot] merged 6 commits into
opendatahub-io:mainfrom
manaswinidas:remove-uncaught-exception
Aug 28, 2024
Merged

Remove cypress suppression of uncaught exceptions#3063
openshift-merge-bot[bot] merged 6 commits into
opendatahub-io:mainfrom
manaswinidas:remove-uncaught-exception

Conversation

@manaswinidas

@manaswinidas manaswinidas commented Aug 5, 2024

Copy link
Copy Markdown
Member

Closes: https://issues.redhat.com/browse/RHOAIENG-10715
Closes: https://issues.redhat.com/browse/RHOAIENG-7565
Closes: https://issues.redhat.com/browse/RHOAIENG-11444
Closes: https://issues.redhat.com/browse/RHOAIENG-11847

Description

These snippets had been introduced to work around a Patternfly bug with ExpandableSection patternfly/patternfly-react#10410 This has been fixed - removing these suppressions because they can hide other uncaught exceptions.

How Has This Been Tested?

  • Run Cypress test files modelVersionArchive.cy.ts and registeredModelArchive.cy.ts and check whether they run fine.

Test Impact

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main

@mturley

mturley commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

@manaswinidas it looks like we're still getting the exception - I think we need to upgrade PatternFly to pull in the fix.

According to this PR comment it was released in @patternfly/react-core@5.4.0 but we're still on 5.3.3.

@manaswinidas

Copy link
Copy Markdown
Member Author

Oops should have checked that. The tests are passing locally for me. Also, why is registeredModelsArchive.cy.ts not failing?

@mturley

mturley commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

good question... looking into it. also I'm not sure why tests are passing for you locally... do you have the newer PF installed somehow?

@mturley

mturley commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

I'm confused by the test failing on "after each" hook for "Restore from archive version details", I don't see an afterEach in there anywhere

@mturley

mturley commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

The tests are passing for me locally too... I think maybe there's a rendering race condition and the exception isn't necessarily always thrown. Maybe we can just upgrade PF and make sure it passes and that's sufficient.

@manaswinidas

Copy link
Copy Markdown
Member Author

@mturley @patternfly/react-core@5.4.0 is still in pre-release according to npm versions history

@mturley

mturley commented Aug 13, 2024

Copy link
Copy Markdown
Contributor

/hold
holding this until PatternFly releases 5.4.0 and we can upgrade to that version in this PR. The Jira is blocked until that happens - The PatternFly team says the release is expected today. If there are further delays we'll need to roll over the issue to the next sprint.

@openshift-ci openshift-ci Bot added the do-not-merge/hold This PR is hold for some reason label Aug 13, 2024
@mturley

mturley commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

Once PF releases and we unblock this, let's make sure to also remove the newly introduced instance of this in https://github.com/opendatahub-io/odh-dashboard/pull/3116/files#diff-cfd373dd2cc4bd02bbf6aa15837b2b82aed88e0ef783079334d738c8b22d6ceaR206-R208

@manaswinidas
manaswinidas force-pushed the remove-uncaught-exception branch from f254913 to 064c673 Compare August 27, 2024 16:17
@manaswinidas
manaswinidas force-pushed the remove-uncaught-exception branch from beefd7f to eb2d80d Compare August 28, 2024 11:11

@mturley mturley 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 @manaswinidas ! This was a fun one huh

@openshift-ci

openshift-ci Bot commented Aug 28, 2024

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mturley

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mturley

mturley commented Aug 28, 2024

Copy link
Copy Markdown
Contributor

/unhold

@openshift-ci openshift-ci Bot removed the do-not-merge/hold This PR is hold for some reason label Aug 28, 2024
@codecov

codecov Bot commented Aug 28, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.22%. Comparing base (4a0626e) to head (2e0fc1d).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...t/tables/pipelineRun/CustomMetricsColumnsModal.tsx 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3063      +/-   ##
==========================================
+ Coverage   80.84%   85.22%   +4.38%     
==========================================
  Files        1243     1244       +1     
  Lines       27099    27117      +18     
  Branches     7144     7152       +8     
==========================================
+ Hits        21907    23111    +1204     
+ Misses       5192     4006    -1186     
Files with missing lines Coverage Δ
frontend/src/components/SimpleSelect.tsx 93.47% <ø> (+8.69%) ⬆️
.../screens/RegisterModel/RegisteredModelSelector.tsx 100.00% <ø> (+6.25%) ⬆️
...t/tables/pipelineRun/CustomMetricsColumnsModal.tsx 7.14% <0.00%> (+4.76%) ⬆️

... and 595 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a0626e...2e0fc1d. Read the comment docs.

@openshift-merge-bot
openshift-merge-bot Bot merged commit 3174a74 into opendatahub-io:main Aug 28, 2024
openshift-merge-bot Bot pushed a commit that referenced this pull request Aug 11, 2026
* Update @odh-dashboard/model-registry: refactor(ui): extract shared catalog settings foundation (#3063) (resolved conflicts)

Upstream commit: 85aa6a9042f8aaca8cd3dc39b5d39b09013e51d8

* Update @odh-dashboard/model-registry: feat(catalog): add logo image endpoint for MCP servers (#3056) (resolved conflicts)

Upstream commit: 3940df0d981f6d1ba4feead11a65e54f9e21b739

* Update @odh-dashboard/model-registry tracking to dc2aadf5cadb9c54c238c33b12ca64bf17200525 (no file changes)

* Update @odh-dashboard/model-registry: Update model catalog validated arguments microcopy (#3076)

Upstream commit: fca5d6986d9109cc1cf822250af1f9b064b91509

* Update @odh-dashboard/model-registry: Refactor catalog settings context and routes (#3074)

Upstream commit: 9de5a360da4b14a07231960ceb76ef28d458b91b

* Update @odh-dashboard/model-registry: chore(deps): bump dompurify from 3.4.12 to 3.4.13 in /clients/ui/frontend (#3067) (resolved conflicts)

Upstream commit: eb5ba42c3e8c336648bdf648347d6ac8e1a7b48c

* fix: update model-serving cypress mock imports after #9144

Point modelServingModelCapabilities and preconfigureValidatedArguments
specs at k8s-core, model-serving, and plugin-core mock exports instead
of removed @odh-dashboard/internal/__mocks__ paths.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Manaswini Das <dasmanaswini10@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
jkyaw pushed a commit to jkyaw/odh-dashboard that referenced this pull request Aug 19, 2026
* Update @odh-dashboard/model-registry: refactor(ui): extract shared catalog settings foundation (opendatahub-io#3063) (resolved conflicts)

Upstream commit: 85aa6a9042f8aaca8cd3dc39b5d39b09013e51d8

* Update @odh-dashboard/model-registry: feat(catalog): add logo image endpoint for MCP servers (opendatahub-io#3056) (resolved conflicts)

Upstream commit: 3940df0d981f6d1ba4feead11a65e54f9e21b739

* Update @odh-dashboard/model-registry tracking to dc2aadf5cadb9c54c238c33b12ca64bf17200525 (no file changes)

* Update @odh-dashboard/model-registry: Update model catalog validated arguments microcopy (opendatahub-io#3076)

Upstream commit: fca5d6986d9109cc1cf822250af1f9b064b91509

* Update @odh-dashboard/model-registry: Refactor catalog settings context and routes (opendatahub-io#3074)

Upstream commit: 9de5a360da4b14a07231960ceb76ef28d458b91b

* Update @odh-dashboard/model-registry: chore(deps): bump dompurify from 3.4.12 to 3.4.13 in /clients/ui/frontend (opendatahub-io#3067) (resolved conflicts)

Upstream commit: eb5ba42c3e8c336648bdf648347d6ac8e1a7b48c

* fix: update model-serving cypress mock imports after opendatahub-io#9144

Point modelServingModelCapabilities and preconfigureValidatedArguments
specs at k8s-core, model-serving, and plugin-core mock exports instead
of removed @odh-dashboard/internal/__mocks__ paths.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Manaswini Das <dasmanaswini10@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants