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: use monotonic time for sorting #30735

Merged
merged 5 commits into from
May 9, 2024

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented May 9, 2024

  • Use only monotonicTime for sorting, do not use wallTime for that
  • Since test runner and the library can be running on different machines, those machines may have clocks which are not synchronized. To avoid problems in such cases we compute delta between test runner and and library contexts based on a start time of action that exists in both contexts.

This comment has been minimized.

This comment has been minimized.

packages/trace-viewer/src/ui/modelUtil.ts Outdated Show resolved Hide resolved

This comment has been minimized.

@yury-s yury-s merged commit a50cd30 into microsoft:main May 9, 2024
29 checks passed
@yury-s yury-s deleted the monotonic-time-delta branch May 9, 2024 22:31
Copy link
Contributor

github-actions bot commented May 9, 2024

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/trace-viewer.spec.ts:240:1 › should have network requests

27327 passed, 662 skipped
✔️✔️✔️

Merge workflow run.

thebigbrain pushed a commit to thebigbrain/playwright that referenced this pull request May 12, 2024
* Use only monotonicTime for sorting, do not use wallTime for that
* Since test runner and the library can be running on different
machines, those machines may have clocks which are not synchronized. To
avoid problems in such cases we compute delta between test runner and
and library contexts based on a start time of action that exists in both
contexts.
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.

None yet

2 participants