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

Automatically check additional views for memory leaks on navigation #7300

Conversation

scottbell
Copy link
Contributor

@scottbell scottbell commented Dec 14, 2023

Closes #6734

Describe your changes:

  • Add navigation memory leak checks for more components.
  • Cleanup plotly when Vue component is dismounted.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?
  • Has associated issue been labelled unverified? (only applicable if this PR closes the issue)
  • Has associated issue been labelled bug? (only applicable if this PR is for a bug fix)

@scottbell scottbell linked an issue Dec 14, 2023 that may be closed by this pull request
10 tasks
@scottbell scottbell changed the title 6734 automatically check additional views for memory leaks on navigation Automatically check additional views for memory leaks on navigation Dec 14, 2023
Copy link

deploysentinel bot commented Dec 14, 2023

Current Playwright Test Results Summary

✅ 15 Passing

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 12/15/2023 09:00:01am UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: aeac908

Started: 12/15/2023 08:58:19am UTC

View Detailed Build Results


Current Playwright Test Results Summary

✅ 165 Passing - ⚠️ 3 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 12/15/2023 09:00:01am UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: aeac908

Started: 12/15/2023 08:45:35am UTC

⚠️ Flakes

📄   functional/plugins/plot/logPlot.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Log plot tests Log Plot ticks are functionally correct in regular and log mode and after refresh
Retry 1Initial Attempt
0% (0) 0 / 57 runs
failed over last 7 days
28.07% (16) 16 / 57 runs
flaked over last 7 days

📄   functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Restricted Notebook with a page locked and with an embed @addinit Allows embeds to be deleted if page unlocked @addinit
Retry 1Initial Attempt
0% (0) 0 / 58 runs
failed over last 7 days
44.83% (26) 26 / 58 runs
flaked over last 7 days

📄   functional/plugins/notebook/notebookSnapshots.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Snapshot image tests Can drop an image onto a notebook and create a new entry
Retry 1Initial Attempt
1.79% (1) 1 / 56 run
failed over last 7 days
50% (28) 28 / 56 runs
flaked over last 7 days

View Detailed Build Results


Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Merging #7300 (aeac908) into master (2675220) will decrease coverage by 0.38%.
The diff coverage is 50.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7300      +/-   ##
==========================================
- Coverage   55.87%   55.49%   -0.38%     
==========================================
  Files         655      655              
  Lines       26324    26327       +3     
  Branches     2544     2544              
==========================================
- Hits        14708    14611      -97     
- Misses      10898    11019     +121     
+ Partials      718      697      -21     
Flag Coverage Δ
e2e-full 41.79% <ø> (ø)
e2e-stable 58.35% <ø> (-0.14%) ⬇️
unit 48.64% <50.00%> (-0.42%) ⬇️
Files Coverage Δ
src/plugins/charts/bar/BarGraphPlot.vue 39.39% <100.00%> (-3.91%) ⬇️
...c/plugins/charts/bar/inspector/BarGraphOptions.vue 49.10% <ø> (ø)
...plugins/charts/scatter/ScatterPlotWithUnderlay.vue 2.15% <0.00%> (-0.02%) ⬇️

... and 14 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 2675220...aeac908. Read the comment docs.

@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Dec 14, 2023
@scottbell scottbell added pr:e2e:couchdb npm run test:e2e:couchdb and removed pr:e2e:couchdb npm run test:e2e:couchdb labels Dec 14, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Dec 14, 2023
@scottbell scottbell marked this pull request as ready for review December 14, 2023 17:04
@ozyx ozyx added the type:maintenance tests, chores, or project maintenance label Dec 14, 2023
@ozyx ozyx added this to the Target:3.3.0 milestone Dec 14, 2023
Copy link
Contributor

@ozyx ozyx left a comment

Choose a reason for hiding this comment

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

LGTM! Refactored the suite with some better locators and got rid of some redundant e2e code

@@ -26,7 +26,7 @@
<li>
<series-options
v-for="series in plotSeries"
:key="series.key"
:key="series.keyString"
Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was your catch!

@unlikelyzero
Copy link
Contributor

@scottbell you have a failure on restricted notebook

@ozyx
Copy link
Contributor

ozyx commented Dec 14, 2023

@scottbell you have a failure on restricted notebook

Lemme make sure it's not due to my changes.

@ozyx
Copy link
Contributor

ozyx commented Dec 14, 2023

@scottbell you have a failure on restricted notebook

Lemme make sure it's not due to my changes.

It's a known flake. on the perf test, I just re-ran the plot view test 5x and no flakes on my end (in ci env), so it might be a very rare flake?

@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Dec 15, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Dec 15, 2023
@scottbell scottbell merged commit 3fccac0 into master Dec 15, 2023
17 checks passed
@scottbell scottbell deleted the 6734-automatically-check-additional-views-for-memory-leaks-on-navigation branch December 15, 2023 09:13
@unlikelyzero unlikelyzero modified the milestones: Target:3.3.0, Target:4.0.0 Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:maintenance tests, chores, or project maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically Check Additional Views for Memory Leaks on navigation
3 participants