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

file system watcher fails to run on Android, claims file watching is unsupported #46261

Closed
aam opened this issue Jun 4, 2021 · 0 comments
Closed
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@aam
Copy link
Contributor

aam commented Jun 4, 2021

/======================================================================================================\
| standalone_2/io/file_system_watcher_large_set_test/0 is new and failed (RuntimeError, expected Pass) |
\======================================================================================================/

--- Command "vm_compile_to_kernel" (took 01.000312s):
DART_CONFIGURATION=ReleaseAndroidARM_X64 /b/swarming/w/ir/pkg/vm/tool/gen_kernel --aot --platform=out/ReleaseAndroidARM_X64/vm_platform_strong.dill -o /b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/out.dill /b/swarming/w/ir/tests/standalone_2/io/file_system_watcher_large_set_test.dart --packages=/b/swarming/w/ir/.packages -Ddart.vm.product=false

exit code:
0

--- Command "precompiler" (took 01.000993s):
DART_CONFIGURATION=ReleaseAndroidARM_X64 out/ReleaseAndroidARM_X64/clang_x64/gen_snapshot --snapshot-kind=app-aot-elf --elf=/b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/out.aotsnapshot --loading-unit-manifest=/b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/ignored.json --delayed-filewatch-callback --enable-isolate-groups --experimental-enable-isolate-groups-jit --ignore-unrecognized-flags --packages=/b/swarming/w/ir/.packages /b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/out.dill

exit code:
0

--- Command "remove_kernel_file" (took 2ms):
DART_CONFIGURATION=ReleaseAndroidARM_X64 rm /b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/out.dill

exit code:
0

--- Command "strip" (took 20ms):
DART_CONFIGURATION=ReleaseAndroidARM_X64 third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded /b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/out.aotsnapshot

exit code:
0

--- Command "adb_precompilation" (took 01.000380s):
Steps to push precompiled runner and precompiled code to an attached device. Uses (and requires) adb.

exit code:
255

stdout:
Executing adb -s 06ada00c003b6f92 shell rm -Rf /data/local/tmp/precompilation-testing/test ; echo AdbShellExitCode:  $?
Stdout:
AdbShellExitCode: 0
ExitCode: 0
Time: 0:00:00.014691

Executing adb -s 06ada00c003b6f92 shell mkdir -p /data/local/tmp/precompilation-testing/test ; echo AdbShellExitCode:  $?
Stdout:
AdbShellExitCode: 0
ExitCode: 0
Time: 0:00:00.013411

Executing Skipped cached push
ExitCode: 0
Time: 0:00:00.000017

Executing Skipped cached push
ExitCode: 0
Time: 0:00:00.000002

Executing Skipped cached push
ExitCode: 0
Time: 0:00:00.000002

Executing adb -s 06ada00c003b6f92 shell chmod 777 /data/local/tmp/precompilation-testing/dart_precompiled_runtime /data/local/tmp/precompilation-testing/process_test /data/local/tmp/precompilation-testing/abstract_socket_test ; echo AdbShellExitCode:  $?
Stdout:
AdbShellExitCode: 0
ExitCode: 0
Time: 0:00:00.013336

Executing adb -s 06ada00c003b6f92 push /b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/out.aotsnapshot /data/local/tmp/precompilation-testing/test/out.aotsnapshot
Stdout:
/b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/out.aotsnapshot: 1 file pushed. 8.2 MB/s (1999456 bytes in 0.232s)
ExitCode: 0
Time: 0:00:00.237181

Executing adb -s 06ada00c003b6f92 push /b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/ignored.json /data/local/tmp/precompilation-testing/test/ignored.json
Stdout:
/b/swarming/w/ir/out/ReleaseAndroidARM_X64/generated_compilations/dartkp-android-release-arm_x64/tests_standalone_2_io_file_system_watcher_large_set_test/ignored.json: 1 file pushed. 0.9 MB/s (961 bytes in 0.001s)
ExitCode: 0
Time: 0:00:00.005454

Executing adb -s 06ada00c003b6f92 shell export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/precompilation-testing/test;/data/local/tmp/precompilation-testing/dart_precompiled_runtime --android-log-to-stderr --delayed-filewatch-callback --enable-isolate-groups --experimental-enable-isolate-groups-jit --ignore-unrecognized-flags --packages=/b/swarming/w/ir/.packages /data/local/tmp/precompilation-testing/test/out.aotsnapshot ; echo AdbShellExitCode:  $?
Stdout:
WARNING: linker: /data/local/tmp/precompilation-testing/dart_precompiled_runtime: unused DT entry: type 0x6ffffef5 arg 0x1405a8
WARNING: linker: /data/local/tmp/precompilation-testing/dart_precompiled_runtime: unused DT entry: type 0x6ffffffe arg 0x194fe4
WARNING: linker: /data/local/tmp/precompilation-testing/dart_precompiled_runtime: unused DT entry: type 0x6fffffff arg 0x3
Unhandled exception:
FileSystemException: File system watching is not supported on this platform, path = ''
#0      _FileSystemWatcher._watch (dart:io-patch/file_patch.dart:125)
#1      FileSystemEntity.watch (dart:io/file_system_entity.dart:447)
#2      main (file:///b/swarming/w/ir/tests/standalone_2/io/file_system_watcher_large_set_test.dart:29)
#3      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:283)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184)
AdbShellExitCode: 255
ExitCode: 255
Time: 0:00:01.064588

--- Re-run this test:
python3 tools/test.py -n dartkp-android-release-arm_x64 standalone_2/io/file_system_watcher_large_set_test/0
@aam aam added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

1 participant