Sitelet https://github.com/flutter/flutter/pull/193030
Skip to content

Fix unawaited async calls in fragment_shader_test and skip Vulkan in canvas_test - #193030

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
andywolff:fix-vulkan-host-tests
Sep 23, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
andywolff:fix-vulkan-host-tests

Conversation

@andywolff

@andywolff andywolff commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Part of #193029

When I ran snapshot host tests against PR #192937, I noticed that helper methods like _expectShaderRendersColor and _expectShaderRendersBarcode in fragment_shader_test.dart were missing awaits. That PR changes the buffer allocation behavior in such a way that these tests fail without these awaits, where previously they passed. So I'm sending this PR to add the awaits separately beforehand for better isolation of purpose and rollback safety.

During the same test run on that PR, I also found a comment pointing to a closed issue. In canvas_test.dart, the test toImage and toImageSync have identical contents was previously skipped only when Platform.isLinux due to closed issue #108835. On macOS hosts running with --impeller-backend=vulkan (MoltenVK), the same backend discrepancy occurs, so I filed #193029 and I'm updating the comment and condition to reflect this.

Pre-launch Checklist

@github-actions github-actions Bot added the engine flutter/engine related. See also e: labels. label Sep 18, 2026
@andywolff andywolff added the CICD Run CI/CD label Sep 18, 2026
@andywolff
andywolff force-pushed the fix-vulkan-host-tests branch from 8df35e4 to 7694178 Compare September 21, 2026 22:50
@andywolff
andywolff marked this pull request as ready for review September 22, 2026 16:54

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies canvas_test.dart to skip a test when the platform is Linux or the Impeller backend is Vulkan. It also updates fragment_shader_test.dart by adding the await keyword to several calls of _expectShaderRendersColor and _expectShaderRendersBarcode, and marks one test block as asynchronous. There are no review comments, and no further feedback is provided.

@andywolff
andywolff requested a review from walley892 September 22, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants