Skip to content

Fix snippets test and add it to CI - #190327

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
dkwingsmt:fix-snippet-test
Aug 5, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:masterfrom
dkwingsmt:fix-snippet-test

Conversation

@dkwingsmt

@dkwingsmt dkwingsmt commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

The snippets test fails with one error on HEAD. Apparently it's not run on CI.

This PR fixes the failure by removing the test case that verifies --no-format-output. The CLI option was removed in https://github.com/flutter/flutter/pull/161347/changes .

A deadcode parameter is also removed.

This PR also adds this test to CI.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jul 30, 2026

@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 introduces a new 'Linux snippets' target to the CI configuration in .ci.yaml and updates ownership assignments in the TESTOWNERS file. It also refactors dev/snippets/test/snippets_test.dart by converting a variable to final, removing a test case for the --no-format-output flag, and removing unused fields from MockSnippetGenerator. There are no review comments, and I have no feedback to provide.

@dkwingsmt
dkwingsmt requested a review from jtmcdole July 31, 2026 17:35
@dkwingsmt dkwingsmt changed the title Fix snippet test and add it to CI Fix snippets test and add it to CI Jul 31, 2026
@dkwingsmt
dkwingsmt requested a review from gaaclarke August 4, 2026 23:40

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants