flutter Mac_arm64框架测试misc在Mac-14上超时,

ao218c7q  于 5个月前  发布在  Flutter
关注(0)|答案(3)|浏览(63)

测试挂在这里:

00:00 +0: loading /Volumes/Work/s/w/ir/x/w/flutter/examples/api/integration_test/smoke_integration_test.dart
 Running pod install...                                           1,506ms
 Building macOS application...                                   
 Detected macOS app running in CI, turning off sandboxing.
 --- xcodebuild: WARNING: Using the first of multiple matching destinations:
 { platform:macOS, arch:arm64, id:00008103-000C31943ABB001E }
 { platform:macOS, arch:x86_64, id:00008103-000C31943ABB001E }
 warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
 ✓ Built build/macos/Build/Products/Debug/Flutter API Sample.app
 00:00 +0: Smoke test animation/animation_controller/animated_digit.0.dart

https://luci-milo.appspot.com/ui/p/flutter/builders/prod/Mac_arm64%20framework_tests_misc/2224/overview
https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac_arm64%20framework_tests_misc/2/infra
有趣的是,x86版本似乎运行正常:
https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac_x64%20framework_tests_misc/2/infra
https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac_x64%20framework_tests_misc/3/infra

fcipmucu

fcipmucu1#

所以我无法在本地重现这个情况。我也无法在设备实验室的机器人上重现它。然而,我可以在Chromium机器人上一致地重现它。它也没有提供任何xcresult。

我猜想这是另一个阻止其运行的对话框弹出,但沙箱正在被禁用。你可以在日志中看到Detected macOS app running in CI, turning off sandboxing.消息。

我启用了详细日志运行测试,似乎它连接到了Dart VM,所以我认为应用程序正在启动,但测试从未进展过。我们还可以在详细日志中看到沙箱确实被禁用了。
https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac_arm64%20framework_tests_misc/10/infra

Entitlements:
 [        ]     {
 [        ]     "com.apple.security.app-sandbox" = 0;

 ...
 
VM Service URL on device: http://127.0.0.1:49390/tlJ47R8RC_4=/
 [   +2 ms] test 0: Connecting to vm service
 [   +2 ms] test 0: VM Service uri is available at http://127.0.0.1:49390/tlJ47R8RC_4=/
 [  +55 ms] test 0: Finding the correct isolate with the integration test service extension
 [  +70 ms] test 0: connected to test device, now awaiting test result
 [        ] test 0: Waiting for test harness or tests to finish
 00:00 +0: Smoke test animation/animation_controller/animated_digit.0.dart

在CI中进行测试

led get-builder "luci.flutter.staging:Mac_arm64 framework_tests_misc" | led edit -d os=Mac-14 | led edit -d id=mac-344-g140 | led edit -d pool=luci.flutter.staging | led launch

解除阻塞的可能解决方法

一个简单的解决方法是将其运行在设备实验室(从Mac_arm64 framework_tests_misc更改为Mac_arm64_ios framework_tests_misc)

idv4meu8

idv4meu82#

一旦修复,#150009 将需要被还原(或成为修复的PR的一部分)

相关问题