-
Notifications
You must be signed in to change notification settings - Fork 4k
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-steps-snapshots #35295
base: main
Are you sure you want to change the base?
fix-steps-snapshots #35295
Conversation
@microsoft-github-policy-service agree |
Test results for "tests 1"15 failed 1 flaky38772 passed, 808 skipped Merge workflow run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need a test for it.
afterSnapshot = after?.beforeSnapshot ? { action: after, snapshotName: after.beforeSnapshot } : undefined; | ||
} | ||
|
||
// finding last action (with snapshot) ended before original action end. Relevant if original action is last step in timeline. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is risky, we don't know whether the action change the state before or after the step end. I'd not do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. It is. But if I'll remove it, if test step is last, we won't find "after" snapshot.
This (and all other inaccuracy) could be solved if additional snapshots will be made on step start and end.
I'll write a test if solution is accepted. I'd still prefer to make additional screenshots, because debugging e2e is very painful, and precision in screenshots timing is very important. |
I see that you have screenshot content based deduplication Which makes additional screenshots for steps not wasting more disk space (if screenshot is the same). |
Additional deduplication check could be added to take into account nested steps and immediate calls. |
Attempt to fix #35285