-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Reland "Build iOS unittest target in unopt builds" (#44356)"" (#45346)" #45519
Conversation
4e4a48e
to
9c7fcd8
Compare
@stuartmorgan Could you help me review the clang-tidy error fixes in Objective-C? |
.ci.yaml
Outdated
@@ -393,7 +393,7 @@ targets: | |||
|
|||
- name: Mac mac_clang_tidy | |||
recipe: engine_v2/engine_v2 | |||
presubmit: false | |||
presubmit: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert before committing.
…lutter#44356)"" (flutter#45346)" This reverts commit ca513c9. fix 1 fix fix temp ci change fix name space fix fix fix format revert fix draft fix unittest fix fromat eof line
9c7fcd8
to
b3cfd92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, but mostly it all looks good. It does seem to be flagging one more failure though.
@@ -18,9 +18,12 @@ | |||
|
|||
namespace { | |||
API_AVAILABLE(ios(13.4)) | |||
// NOLINTNEXTLINE(readability-identifier-naming) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do want to suppress this rather than fix the naming?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. There is actually a constant for it, I removed this declaration.
@@ -130,6 +130,7 @@ - (void)testReleasesProjectOnDealloc { | |||
__weak FlutterDartProject* weakProject; | |||
@autoreleasepool { | |||
FlutterDartProject* mockProject = OCMClassMock([FlutterDartProject class]); | |||
// NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just XCTAssertNotNil(group)
instead of doing this?
@@ -130,6 +130,7 @@ - (void)testReleasesProjectOnDealloc { | |||
__weak FlutterDartProject* weakProject; | |||
@autoreleasepool { | |||
FlutterDartProject* mockProject = OCMClassMock([FlutterDartProject class]); | |||
// NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just XCTAssertNotNil(group)
instead of doing this?
@@ -1575,6 +1575,7 @@ - (void)testWillDeallocNotification { | |||
[[XCTestExpectation alloc] initWithDescription:@"notification called"]; | |||
id engine = [[MockEngine alloc] init]; | |||
@autoreleasepool { | |||
// NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly we could assert that this isn't nil just before niling it out.
@@ -12,6 +12,12 @@ | |||
|
|||
const CGRect kScreenSize = CGRectMake(0, 0, 600, 800); | |||
|
|||
// copied from clang document: https://clang-analyzer.llvm.org/faq.html#unlocalized_string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we just use NSLocalizedString everywhere? It's a test, so it's not like that's going to affect a shipped binary.
@stuartmorgan Updated per review comment, PTAL! |
0170774
to
16e0803
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Don't forget to revert .ci.yaml :)
Thanks for the reminder! Juggling between several PRs and reviews and I've already forgotten about it. |
…ions) (#134589) Manual roll requested by bdero@google.com flutter/engine@496ef6a...c90fadf 2023-09-12 skia-flutter-autoroll@skia.org Manual roll Dart SDK from 43d4b1373788 to 1ee7ef8bbc65 (6 revisions) (flutter/engine#45726) 2023-09-12 ychris@google.com Reland "Build iOS unittest target in unopt builds" (#44356)"" (#45346)" (flutter/engine#45519) 2023-09-12 skia-flutter-autoroll@skia.org Roll Skia from a4f8f5177c8b to 211d63b1e1f5 (2 revisions) (flutter/engine#45724) 2023-09-12 jacksongardner@google.com Fix JS interop signatures to use only JS types. (flutter/engine#45668) 2023-09-12 ychris@google.com [ios] Fix testDeallocated failing locally. (flutter/engine#45663) 2023-09-12 ychris@google.com [iOS] move arm64 builds to arm machines (flutter/engine#45721) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC bdero@google.com,rmistry@google.com,zra@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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…ions) (flutter#134589) Manual roll requested by bdero@google.com flutter/engine@496ef6a...c90fadf 2023-09-12 skia-flutter-autoroll@skia.org Manual roll Dart SDK from 43d4b1373788 to 1ee7ef8bbc65 (6 revisions) (flutter/engine#45726) 2023-09-12 ychris@google.com Reland "Build iOS unittest target in unopt builds" (flutter#44356)"" (flutter#45346)" (flutter/engine#45519) 2023-09-12 skia-flutter-autoroll@skia.org Roll Skia from a4f8f5177c8b to 211d63b1e1f5 (2 revisions) (flutter/engine#45724) 2023-09-12 jacksongardner@google.com Fix JS interop signatures to use only JS types. (flutter/engine#45668) 2023-09-12 ychris@google.com [ios] Fix testDeallocated failing locally. (flutter/engine#45663) 2023-09-12 ychris@google.com [iOS] move arm64 builds to arm machines (flutter/engine#45721) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC bdero@google.com,rmistry@google.com,zra@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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Reland #44821
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.