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

Add more detail to error messages #94820

Merged
merged 1 commit into from Dec 9, 2021
Merged

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented Dec 7, 2021

I had a flake where the uname logic failed:
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8828555640002344561/+/u/run_test.dart_for_framework_tests_shard_and_subshard_widgets/test_stdout
...so this is adding more logging to try to understand this flake better next time.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Dec 7, 2021
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Hixie Hixie force-pushed the uname branch 2 times, most recently from 52c6389 to fa50932 Compare December 8, 2021 01:56
@skia-gold
Copy link

Gold has detected about 1 new digest(s) on patchset 1.
View them at https://flutter-gold.skia.org/cl/github/94820

@Hixie
Copy link
Contributor Author

Hixie commented Dec 8, 2021

cc @christopherfujino for review

let me know if you think this is worth testing. my bias would be to not test this since it's just diagnostics changes and the precise text we output doesn't matter much except for testing purposes.

'Error trying to run chmod on ${entity.absolute.path}'
'\nstdout: ${result.stdout}'
'\nstderr: ${result.stderr}',
'Error trying to run "chmod $mode ${entity.path}":\n'
Copy link
Member

Choose a reason for hiding this comment

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

why not absolute path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just figured it would be less confusing if the error message exactly matched the actual call we were making. I don't feel strongly about it though if you would rather we keep it absolute.

Copy link
Member

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM. No tests SGTM, I just had a nit question about why we're not logging the absolute path.

@Hixie
Copy link
Contributor Author

Hixie commented Dec 9, 2021

test-exempt: improves logging for existing tests

@fluttergithubbot fluttergithubbot merged commit 9c73e91 into flutter:master Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants