Skip to content

[ios][tools] do not print out bonjour key not found in non-verbose mode #174001

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hellohuanlin
Copy link
Contributor

@hellohuanlin hellohuanlin commented Aug 18, 2025

This tries #173569 again

That PR was reverted, because I didn't know that streamOutput was the one used during non-verbose mode

The logging logic is a bit convoluted, see: #173887

So this PR simply changes the condition from

if (!verbose && exitCode == 0)

To

if (!verbose && exitCode == 0 && !skipErrorLog)

So that if we skipErrorLog (will be true for bonjour features), it doesn't call streamOutput.

List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.

Fixes #172627

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch 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.

@hellohuanlin hellohuanlin force-pushed the bonjour_log_try_again branch from bbb4ce2 to ba88a2c Compare August 19, 2025 19:52
expect(pipe.readAsStringSync(), isNot(contains(plutilErrorMessage)));
expect(result.stderr, isNot(contains(plutilErrorMessage)));
if (verbose) {
expect(result.stdout, contains(plutilErrorMessage));
Copy link
Contributor Author

@hellohuanlin hellohuanlin Aug 19, 2025

Choose a reason for hiding this comment

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

Verified consistent behavior on macOS 26 and 15.6:

On macOS 26:

  • if verbose, plutil logs to its stderr, and we redirect to stdout
  • if non-verbose, plutil logs to its stderr, and we ignore it

On macOS 15.6

  • if verbose, plutil logs to its stdout, and we simply log it to current process's stdout
  • if non-verbose, plutil logs to its stdout and we ignore it.

@hellohuanlin hellohuanlin marked this pull request as ready for review August 19, 2025 20:01
@hellohuanlin hellohuanlin requested a review from a team as a code owner August 19, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ios Owned by iOS platform team tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Xcode 26 beta 4] Xcode reports Could not extract value, error: No value at that key path or invalid key path for some keys when running on iOS
2 participants