Skip to content

Conversation

@jesswrd
Copy link
Contributor

@jesswrd jesswrd commented Oct 23, 2025

When a namespace is declared without a "=" assignment, there should be an error. I think the test did not check that the ouput contains an error. Noticed this because I saw an extra stack trace when running a test.

Pre-Review Checklist

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

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.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Copy link

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

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 correctly fixes a test for validating Gradle namespace declarations. The original test was not properly asserting the expected error condition. Your changes introduce the correct error handling and assertions, making the test suite more robust. I've included one minor suggestion to improve the readability of a test description string.

});

test('fails when namespace is declared without "=" declaration', () async {
test('fails when namespace is declared without \"=\" declaration', () async {

Choose a reason for hiding this comment

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

medium

The test description string contains \"=\", which in a single-quoted string results in a literal backslash being included in the test name (e.g., ... \=" ...). This is likely unintentional. For clarity, it's better to either use correct quoting (like the original version) or rephrase the description to avoid quoting characters altogether.

Suggested change
test('fails when namespace is declared without \"=\" declaration', () async {
test('fails when namespace is declared without an assignment operator', () async {

@jesswrd jesswrd requested a review from a team October 24, 2025 17:45
@jesswrd jesswrd added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 27, 2025
@auto-submit auto-submit bot merged commit c8ba0cc into flutter:main Oct 27, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 28, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 28, 2025
flutter/packages@bbf96a0...c8ba0cc

2025-10-27 jessiewong401@gmail.com Fix Namespace Assignment Test
(flutter/packages#10289)
2025-10-27 nateshmbhat1@gmail.com [video_player] Add audio track
management support to platform interface (flutter/packages#10171)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
walley892 pushed a commit to walley892/flutter that referenced this pull request Oct 30, 2025
…r#177672)

flutter/packages@bbf96a0...c8ba0cc

2025-10-27 jessiewong401@gmail.com Fix Namespace Assignment Test
(flutter/packages#10289)
2025-10-27 nateshmbhat1@gmail.com [video_player] Add audio track
management support to platform interface (flutter/packages#10171)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@jesswrd jesswrd deleted the fix-namespace-fail-test branch November 11, 2025 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants