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

Speed up QgsRenderChecker #57433

Merged
merged 4 commits into from
May 15, 2024
Merged

Conversation

nyalldawson
Copy link
Collaborator

Avoid unnecessary work when tests pass, and optimise the comparison of reference images

Cuts down the runtime for labeling tests to about 60% of previous times.

If we are comparing images we've generated as part of the render
check, avoid force round tripping these through PNG files.
Instead, just keep the rendered QImage around and reuse it instead
of creating a new image.

Also avoid writing the rendered image to disk when the test passes
successfully. (Will keep temp folders cleaner!)
@github-actions github-actions bot added this to the 3.38.0 milestone May 15, 2024
Copy link

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 9818fec)

@troopa81 troopa81 merged commit 40110a0 into qgis:master May 15, 2024
32 checks passed
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