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

Fix remote clock subscription #6919

Merged
merged 14 commits into from
Aug 14, 2023
Merged

Fix remote clock subscription #6919

merged 14 commits into from
Aug 14, 2023

Conversation

shefalijoshi
Copy link
Contributor

@shefalijoshi shefalijoshi commented Aug 11, 2023

Closes VIPEROMCT-394

Describe your changes:

Sometimes the domain object details arrive AFTER the clock for Open MCT has been changed. In this case, we check if there are no listeners for this clock then don't bother subscribing for the remote telemetry data.

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)

ozyx and others added 8 commits August 1, 2023 14:16
…e + update `Vue.extend()` usage to Vue 3 (#6873)

* fix: update to `defineComponent` from `Vue.extend()`
* fix: unwrap Proxy arg before WeakMap.get()
* refactor: `defineComponent` not needed here
…args (#6881)

fix: suppress deprecation warnings to once per unique args (#6875)

Co-authored-by: Jesse Mazzella <[email protected]>
…raw series limits (#6883)

* Set the raw series limits so that we can get the raw series limits

* fix: `toRaw()` the other gets/sets/deletes

---------

Co-authored-by: Shefali Joshi <[email protected]>
* created a throttle util and using it in timer plugin to throttle refreshing the timer domain object

* Simplify timer logic

* Clarify code a little

* refactor: lint:fix

* Fix linting issue

---------

Co-authored-by: Andrew Henry <[email protected]>
Co-authored-by: Jamie V <[email protected]>
#6902)

Only load annotations in fixed time mode or frozen (#6866)

* fix annotations load to not happen on start

* remove range checking per annotated point

* back to local variable

* reduce tagging size to improve reliability of test

* remove .only

* remove .only

* reduce hz rate for functional test and keep high frequency test in performance

* remove console.debugs

* this test runs pretty fast now

* fix network request tests to match new behavior
check for null before checking before hasOwnProperty

Co-authored-by: Scott Bell <[email protected]>
@shefalijoshi shefalijoshi changed the base branch from master to release/3.0.1 August 11, 2023 17:56
@deploysentinel
Copy link

deploysentinel bot commented Aug 11, 2023

Current Playwright Test Results Summary

✅ 14 Passing

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

(Last updated on 08/14/2023 09:51:34pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 5de9da4

Started: 08/14/2023 09:49:18pm UTC

View Detailed Build Results


Current Playwright Test Results Summary

✅ 133 Passing - ⚠️ 3 Flaky

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

(Last updated on 08/14/2023 09:51:34pm UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 5de9da4

Started: 08/14/2023 08:35:55pm UTC

⚠️ Flakes

📄   functional/plugins/telemetryTable/telemetryTable.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Telemetry Table unpauses and filters data when paused by button and user changes bounds
Retry 1Initial Attempt
1.63% (2) 2 / 123 runs
failed over last 7 days
15.45% (19) 19 / 123 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.79% (1) 1 / 127 run
failed over last 7 days
42.52% (54) 54 / 127 runs
flaked over last 7 days

📄   functional/plugins/imagery/exampleImagery.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Example Imagery in Display Layout View Large action pauses imagery when in realtime and returns to realtime
Retry 1Initial Attempt
0% (0) 0 / 126 runs
failed over last 7 days
4.76% (6) 6 / 126 runs
flaked over last 7 days

View Detailed Build Results


@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #6919 (5de9da4) into master (57743e5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #6919   +/-   ##
=======================================
  Coverage   48.35%   48.36%           
=======================================
  Files         643      643           
  Lines       25627    25629    +2     
  Branches     2496     2496           
=======================================
+ Hits        12393    12396    +3     
+ Misses      12760    12756    -4     
- Partials      474      477    +3     
Flag Coverage Δ *Carryforward flag
e2e-full 42.08% <ø> (ø) Carriedforward from 4c99364
e2e-stable 57.15% <0.00%> (+0.03%) ⬆️
unit 38.75% <100.00%> (-0.02%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files Changed Coverage Δ
src/plugins/remoteClock/RemoteClock.js 82.97% <100.00%> (+0.75%) ⬆️

... and 8 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 57743e5...5de9da4. Read the comment docs.

@shefalijoshi shefalijoshi changed the base branch from release/3.0.1 to master August 11, 2023 20:00
@ozyx ozyx added this to the Target:3.0.1 milestone Aug 11, 2023
@shefalijoshi shefalijoshi requested a review from ozyx August 11, 2023 20:47
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.

Smoke-tested and this seems to work well! Just one small suggestion, but otherwise LGTM

src/plugins/remoteClock/RemoteClock.js Show resolved Hide resolved
@shefalijoshi shefalijoshi requested a review from ozyx August 14, 2023 16:18
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.

Awesome!

@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 14, 2023
@ozyx ozyx enabled auto-merge (squash) August 14, 2023 21:45
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 14, 2023
@ozyx ozyx merged commit c53073b into master Aug 14, 2023
9 checks passed
@ozyx ozyx deleted the fix-remote-clock-subscription branch August 14, 2023 21:51
ozyx pushed a commit that referenced this pull request Aug 14, 2023
* If there are no listeners for this clock then don't bother subscribing after getting the domain object details

* Comment explaining the fix
unlikelyzero pushed a commit that referenced this pull request Aug 16, 2023
* If there are no listeners for this clock then don't bother subscribing after getting the domain object details

* Comment explaining the fix

Co-authored-by: Shefali Joshi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants