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

chore: react-virtuoso LogViewer companion #8862

Merged
merged 19 commits into from
Mar 7, 2024
Merged

Conversation

EmilyBonar
Copy link
Contributor

Description

This is a companion PR to determined-ai/hew#110.

Test Plan

Check Trial Logs, Task Logs, and Cluster Logs to ensure they all work as expected.

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

Copy link

netlify bot commented Feb 20, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 94c5d5e
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/65ea06064a66f5000879282b
😎 Deploy Preview https://deploy-preview-8862--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@keita-determined
Copy link
Contributor

iirc, we wanna resolve the double scrollbar issue, right (or is it out of scope)?
if so, i still see the issue
image


i see this bug in latest main, so not from this PR, but do you intend to fix this bug in this PR? The test plan scope isnt clear.

image

also, i saw some test failures.

@EmilyBonar
Copy link
Contributor Author

Noticed that TaskLogs.test.tsx was really just testing LogViewer behavior, so I moved it over to hew. Due to the differences in library implementation some of the test cases had to be removed as well.

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

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

Project coverage is 42.55%. Comparing base (6ecd81e) to head (94c5d5e).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8862      +/-   ##
==========================================
- Coverage   47.35%   42.55%   -4.80%     
==========================================
  Files        1162      842     -320     
  Lines      176133   136781   -39352     
  Branches     2237     2233       -4     
==========================================
- Hits        83402    58211   -25191     
+ Misses      92573    78412   -14161     
  Partials      158      158              
Flag Coverage Δ
harness ?
web 42.51% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
webui/react/src/pages/ClusterLogs.tsx 0.00% <0.00%> (ø)
.../react/src/pages/TrialDetails/TrialDetailsLogs.tsx 15.13% <0.00%> (+0.13%) ⬆️

... and 321 files with indirect coverage changes

Copy link
Contributor

@keita-determined keita-determined left a comment

Choose a reason for hiding this comment

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

Mostly good, but found the following bugs. Tested on Chrome

After pushing Scroll the oldest, i cant scroll down to the newest.

Screen.Recording.2024-02-26.at.1.34.07.PM.mov

There are double scrollbars with small viewport,.

Screen.Recording.2024-02-26.at.1.29.21.PM.mov

nit: In the full view, there is bottom margin. (see it in the latest-main website so can be ignored)

image

@EmilyBonar
Copy link
Contributor Author

@keita-determined First bug should be fixed. The double scrollbar seems to be an issue with how the site as a whole handles resizing. In the last screenshot, I'm not sure what the issue is. The 16px margin is intentional and comes from Page.

Copy link
Contributor

@keita-determined keita-determined left a comment

Choose a reason for hiding this comment

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

confirmed the first bug is fixed, and lets skip other 2 bugs as you said its not directly related to the pr.

idk why this happens, but it only happens on this branch. prob hew change caused this?

image

iirc, it was working for the commit, but now cannot search by text and/or dropdown filters

Screen.Recording.2024-03-04.at.4.07.45.PM.mov

Copy link
Contributor

@keita-determined keita-determined left a comment

Choose a reason for hiding this comment

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

one more bug: search is not working by substring
in this example, search by test works, but not by tes

Screen.Recording.2024-03-05.at.11.05.46.AM.mov

other than that, LGTM

@@ -46,7 +46,7 @@
"fp-ts": "^2.16.1",
"fuse.js": "^7.0.0",
"hermes-parallel-coordinates": "^0.6.17",
"hew": "npm:@hpe.com/hew@^0.6.31",
"hew": "github:determined-ai/hew.git#5eb7c907e0b69e9480c8dbc2d1a023a3483f74b0",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: please make sure to use npm instead of commit hash before merging this PR

@EmilyBonar EmilyBonar requested a review from ashtonG March 5, 2024 20:19
@EmilyBonar
Copy link
Contributor Author

@keita-determined That search bug seems like a blocker, but I'm not able to repro it. Did you do anything special/unusual?

@keita-determined
Copy link
Contributor

keita-determined commented Mar 5, 2024

@keita-determined That search bug seems like a blocker, but I'm not able to repro it. Did you do anything special/unusual?

i first typed test, and delete a letter one by one slowly, then i saw the issue. I tested on Chrome.
Let me test it again cuz its rebased -> i can still reproduce it on Chrome and Firefox. i run it against latest-main.

@EmilyBonar
Copy link
Contributor Author

@keita-determined Good catch, seem like there was a bug regarding resetting our list of IDs for dupe detection. Try it now and it should work.

@keita-determined
Copy link
Contributor

yep, it works now

wes-turner added a commit that referenced this pull request Mar 6, 2024
And the quarantine workflow along with. We've decided as a company that future flaky tests will be skipped rather than quarantined until they're fixed.

Last test run as part of the quarantine suite is being removed as part of #8862, and is not needed even before that PR lands.
@EmilyBonar EmilyBonar enabled auto-merge (squash) March 7, 2024 18:23
@EmilyBonar EmilyBonar merged commit f8f860d into main Mar 7, 2024
67 of 80 checks passed
@EmilyBonar EmilyBonar deleted the emilybonar/new-logviewer branch March 7, 2024 18:29
maxrussell pushed a commit that referenced this pull request Mar 21, 2024
And the quarantine workflow along with. We've decided as a company that future flaky tests will be skipped rather than quarantined until they're fixed.

Last test run as part of the quarantine suite is being removed as part of #8862, and is not needed even before that PR lands.
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