Skip to content

Upload logs before failing module_test_ios #76341

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

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Feb 18, 2021

When the native host app xcodebuild tests fail, the test fails before the results file can be uploaded. #76332 has failed tests, but are missing the useful logs.

Set canFail true on the xcodebuild test process and upload the logs and then fail the overall test.

Tested this locally by forcing the unit tests to fail, and see logs zip up before failure.

@jmagman jmagman added c: contributor-productivity Team-specific productivity, code health, technical debt. team-infra Owned by Infrastructure team labels Feb 18, 2021
@jmagman jmagman self-assigned this Feb 18, 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.

@google-cla google-cla bot added the cla: yes label Feb 18, 2021
@jmagman jmagman removed cla: yes team-infra Owned by Infrastructure team labels Feb 18, 2021
@google-cla google-cla bot added the cla: yes label Feb 18, 2021
Copy link
Contributor

@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

@jmagman jmagman merged commit 050d49a into flutter:master Feb 18, 2021
@jmagman jmagman deleted the xctest-upload branch February 18, 2021 23:38
@jmagman jmagman added the a: tests "flutter test", flutter_test, or one of our tests label Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: tests "flutter test", flutter_test, or one of our tests c: contributor-productivity Team-specific productivity, code health, technical debt.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants