Repository navigation
Mac plugin_lint_mac failing consistently on unrelated PR #98165
Copy link
Copy link
Closed
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-infraOwned by Infrastructure teamOwned by Infrastructure team
Description
On 0ce527e, which doesn't look like it should have affected a plugin test. /cc @cyanglaz
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20plugin_lint_mac/5483/overview
[plugin_lint_mac] [STDOUT] stdout: /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-macos10.11 -isysroot /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -L/Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Products/Release -L/opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Products/Release/test_plugin_swift -L/opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/lib/swift -F/Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Products/Release -F/opt/s/w/ir/x/t/CocoaPods-Lint-20220209-14900-7a9pgu-test_plugin_swift/Pods/FlutterMacOS -filelist /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Intermediates.noindex/App.build/Release/App.build/Objects-normal/arm64/App.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -object_path_lto -Xlinker /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Intermediates.noindex/App.build/Release/App.build/Objects-normal/arm64/App_lto.o -fobjc-link-runtime -L/opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Intermediates.noindex/App.build/Release/App.build/Objects-normal/arm64/App.swiftmodule -ObjC -ltest_plugin_swift -framework FlutterMacOS -framework Cocoa -lPods-App -Xlinker -dependency_info -Xlinker /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Intermediates.noindex/App.build/Release/App.build/Objects-normal/arm64/App_dependency_info.dat -o /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-fnuhlnrabrbryscrhrnessyodoze/Build/Intermediates.noindex/App.build/Release/App.build/Objects-normal/arm64/Binary/App
[plugin_lint_mac] [STDOUT] stdout: ld: warning: ignoring file /opt/s/w/ir/x/t/CocoaPods-Lint-20220209-14900-7a9pgu-test_plugin_swift/Pods/FlutterMacOS/FlutterMacOS.framework/FlutterMacOS, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
[plugin_lint_mac] [STDOUT] stdout: Undefined symbols for architecture arm64:
[plugin_lint_mac] [STDOUT] stdout: "_FlutterMethodNotImplemented", referenced from:
[plugin_lint_mac] [STDOUT] stdout: test_plugin_swift.TestPluginSwiftPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libtest_plugin_swift.a(TestPluginSwiftPlugin.o)
[plugin_lint_mac] [STDOUT] stdout: function signature specialization <Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of test_plugin_swift.TestPluginSwiftPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libtest_plugin_swift.a(TestPluginSwiftPlugin.o)
[plugin_lint_mac] [STDOUT] stdout: "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
[plugin_lint_mac] [STDOUT] stdout: objc-class-ref in libtest_plugin_swift.a(TestPluginSwiftPlugin.o)
[plugin_lint_mac] [STDOUT] stdout: ld: symbol(s) not found for architecture arm64
[plugin_lint_mac] [STDOUT] stdout: clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-infraOwned by Infrastructure teamOwned by Infrastructure team
Activity
zanderso commentedon Feb 10, 2022
P0 because the tree is closed, and I don't see what to revert to re-open it.
jmagman commentedon Feb 10, 2022
@stuartmorgan why does
url_launchernow look unfederated? I see #94374 but I don't get it.The test is expecting
.symlinks/plugins/url_launcher_ios/iosTo reopen the tree I think #94374 can be reverted, but it's just going to break again once it's "re-federated".
stuartmorgan-g commentedon Feb 10, 2022
I'm not at a computer to test, but I have a theory. Important context:
url_launcherandurl_launcher_macos, with no version constraintsurl_launcher_macos, to 3.0.0url_launcherhasn't been updated yet to pick up that bump; the latest version requires 2.xThat means that there are two ways the resolver could go:
url_launcher, lastest 2.x ofurl_launcher_macosurl_launcher_macos, and a version ofurl_launcherthat predates macOS support so that it doesn't conflict withurl_launcher_macos3.xI suspect that it did the second, giving you a pre-iOS-federation
url_launcher.If that's the case, your revert will indeed immediately break the tree again when we update
url_launcher(probably tomorrow). I would try instead setting a version constraint onurl_launcherthat requires a federated version. That could be a specific pin, or something like ">=6.0.16" with no upper bound if you want to get new versions automatically.jmagman commentedon Feb 10, 2022
Ah that makes sense, thanks for the possible explanation. Pinning here #98171
jmagman commentedon Feb 10, 2022
#98171 failed, I merged #98166 to reopen the tree while I figure out the right pin to make this work.
jmagman commentedon Feb 10, 2022
It passed on #98166: https://ci.chromium.org/p/flutter/builders/prod/Mac%20plugin_lint_mac/5488
stuartmorgan-g commentedon Feb 11, 2022
This update auto-published very shortly after the revert landed, unfortunately. I didn't realize a revert was landing instead of a pin until it was too late.
In the short term reverting the revert should work. #98171 is still the right longer term fix though or this could happen again any time we happen to make a breaking change to
url_launcher_macosjmagman commentedon Feb 11, 2022
Yup, on it, just wanted to green the tree even temporarily. I should have pinned this version last time this happened. Test in question passed on #98171, will merge shortly.
github-actions commentedon Feb 25, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.