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

Switch staleness provider for SWG to use modeChanged instead of clock #6845

Merged
merged 58 commits into from
Jul 28, 2023

Conversation

khalidadil
Copy link
Contributor

@khalidadil khalidadil commented Jul 27, 2023

Closes #6339

Describe your changes:

Switch staleness provider for SWG to use modeChanged instead of clock

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)

shefalijoshi and others added 30 commits July 19, 2023 16:25
Eliminate ambiguity when looking for time conductor locator
Fix tests for flexible layout and timestrip
…o be deleted from a locked page

- Using `this.$delete(arr, index)` does not update the `length` property on the underlying target object, so it can lead to bizarre issues where your array is of length 4 but it has 3 objects in it.
ozyx and others added 18 commits July 24, 2023 16:48
* Turn off the clock ticket for independent time conductor when it is disabled

* Fix linting issues

---------

Co-authored-by: Khalid Adil <[email protected]>
- Using `indexOf()` with an object was failing due to some items in the tree being Proxy-wrapped and others not. So instead, use `findIndex()` with a predicate that compares the navigationPaths of both objects
* removing an unneccessary refresh that waas causing many get requests
* lets just pretend this never happened
#6840)

Hide change role button in the indicator in cases where there is only a single role available for the current user
- CSS fixes for Firefox for popup width and input widths.
- Changed markup and CSS for Safari
  - Cannot apply CSS grid to form.
  - Changed ul/li approach to calendar picker, other CSS mods (align-items: center) to fix height issues.
- Modded _constants value to account for reduced height of new TC design.
- Resolved conflicts while applying stashed changes.
@deploysentinel
Copy link

deploysentinel bot commented Jul 27, 2023

Current Playwright Test Results Summary

✅ 14 Passing - ⚠️ 1 Flaky

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

(Last updated on 07/28/2023 05:04:25am UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 9e582bd

Started: 07/28/2023 05:01:54am UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Display Layout When multiple plots are contained in a layout, we only ask for annotations once @couchdb
Retry 2Retry 1Initial Attempt
6.25% (2) 2 / 32 runs
failed over last 7 days
12.50% (4) 4 / 32 runs
flaked over last 7 days

View Detailed Build Results


Current Playwright Test Results Summary

✅ 131 Passing - ⚠️ 2 Flaky

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

(Last updated on 07/28/2023 05:04:25am UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 9e582bd

Started: 07/28/2023 04:19:11am UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Basic Condition Set Use ConditionSet should output blank instead of the default value
Retry 1Initial Attempt
11.36% (5) 5 / 44 runs
failed over last 7 days
31.82% (14) 14 / 44 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 Disallows embeds to be deleted if page locked @addinit
Retry 1Initial Attempt
5.13% (2) 2 / 39 runs
failed over last 7 days
20.51% (8) 8 / 39 runs
flaked over last 7 days

View Detailed Build Results


@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #6845 (9e582bd) into master (16e1ac2) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6845      +/-   ##
==========================================
+ Coverage   48.18%   48.20%   +0.01%     
==========================================
  Files         643      643              
  Lines       25620    25620              
  Branches     2512     2512              
==========================================
+ Hits        12346    12350       +4     
+ Misses      12797    12793       -4     
  Partials      477      477              
Flag Coverage Δ *Carryforward flag
e2e-full 41.97% <ø> (-0.02%) ⬇️ Carriedforward from 16e1ac2
e2e-stable 56.91% <100.00%> (+0.64%) ⬆️
unit 38.72% <0.00%> (ø)

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

Files Changed Coverage Δ
example/generator/SinewaveStalenessProvider.js 86.27% <100.00%> (ø)

... and 5 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 16e1ac2...9e582bd. Read the comment docs.

@khalidadil khalidadil changed the base branch from e2e-test-fixes to master July 28, 2023 00:21
Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

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

LGTM

@shefalijoshi shefalijoshi enabled auto-merge (squash) July 28, 2023 04:18
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 28, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 28, 2023
@shefalijoshi shefalijoshi merged commit 7c58b19 into master Jul 28, 2023
15 checks passed
@shefalijoshi shefalijoshi deleted the bugfix/issue-6339 branch July 28, 2023 05:04
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.

[Staleness] Switching between clock modes incorrectly persists the current staleness state
7 participants