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

Execute Screenshot tests on the main thread #3752

Merged
merged 4 commits into from
Dec 16, 2021
Merged

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Dec 13, 2021

Description of Change

There appears to be a timing issue with the screen shot tests where they are running before the scene/view is ready. This changes them to marshal to the main thread so that they will "hopefully" execute in a consistently passing way

@PureWeen
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@PureWeen
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@PureWeen PureWeen force-pushed the screenshot_test_fix branch from 7ba6fba to 09633ea Compare December 15, 2021 21:57
@PureWeen PureWeen marked this pull request as ready for review December 15, 2021 21:58
@PureWeen PureWeen changed the title Try with a delay Execute Screenshot tests on the main thread Dec 15, 2021
@PureWeen PureWeen enabled auto-merge (squash) December 15, 2021 22:12
@PureWeen PureWeen requested a review from jsuarezruiz December 15, 2021 22:13
@PureWeen PureWeen disabled auto-merge December 15, 2021 22:20
@PureWeen PureWeen enabled auto-merge (squash) December 16, 2021 01:49
Copy link
Contributor

@drasticactions drasticactions left a comment

Choose a reason for hiding this comment

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

LGTM, the only thing that might be worth putting a pin in is that the API itself should probably always run on the UI thread. If that's required, a user could try to run it on a background thread and it will break. But we can circle back to that later.

@PureWeen PureWeen merged commit f118c44 into main Dec 16, 2021
@PureWeen PureWeen deleted the screenshot_test_fix branch December 16, 2021 16:03
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
@samhouts samhouts added the fixed-in-6.0.200-preview.12 Look for this fix in 6.0.200-preview.12! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-6.0.200-preview.12 Look for this fix in 6.0.200-preview.12! t/housekeeping ♻︎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants