Back to build
Raw log | Switch to full mode | Login

python -u /b/s/w/ir/cache/builder/sdk/tools/test.py '--progress=status' --report --time --write-debug-log --write-results --write-logs --clean-exit -nunittest-asserts-release-linux pkg --copy-coredumps --output_directory /b/s/w/ir/tmp/t/tmpdQ6NCu in dir /b/s/w/ir/cache/builder/sdk: allow_subannotations: False base_name: 'package unit tests' cmd: ['python', '-u', '/b/s/w/ir/cache/builder/sdk/tools/test.py', '--progress=status', '--report', '--time', '--write-debug-log', '--write-results', '--write-logs', '--clean-exit', '-nunittest-asserts-release-linux', 'pkg', '--copy-coredumps', '--output_directory', '/b/s/w/ir/tmp/t/tmpdQ6NCu'] cwd: '/b/s/w/ir/cache/builder/sdk' env: {'BUILDBOT_BUILDERNAME': 'pkg-linux-release-be'} env_prefixes: {} env_suffixes: {'PATH': '/b/s/w/ir/kitchen-checkout/depot_tools'} infra_step: False name: 'package unit tests' nest_level: 0 ok_ret: frozenset([0]) trigger_specs: () full environment: BOTO_CONFIG: /b/s/w/ir/tmp/gsutil_task/.boto BUILDBOT_BUILDERNAME: pkg-linux-release-be BUILDBUCKET_EXPERIMENTAL: FALSE CIPD_CACHE_DIR: /b/s/cipd_cache/cache CIPD_PROTOCOL: v2 DEVSHELL_CLIENT_PORT: 45527 DOCKER_CONFIG: /b/s/w/ir/tmp/docker_cfg_task DOCKER_TMPDIR: /b/s/w/ir/tmp/docker_tmp_task GIT_CONFIG_NOSYSTEM: 1 GIT_TERMINAL_PROMPT: 0 HOME: /home/chrome-bot INFRA_GIT_WRAPPER_HOME: /b/s/w/ir/tmp/git_home_task LOGDOG_COORDINATOR_HOST: logs.chromium.org LOGDOG_STREAM_PREFIX: buildbucket/cr-buildbucket.appspot.com/8919254850719472848 LOGDOG_STREAM_PROJECT: dart LOGDOG_STREAM_SERVER_PATH: unix:/b/s/w/ir/tmp/ld.sock LOGNAME: chrome-bot LUCI_CONTEXT: /b/s/w/itq7IoCs/luci_context.288802555 MAC_CHROMIUM_TMPDIR: /b/s/w/ir/tmp/t MAIL: /var/mail/chrome-bot NO_GCE_CHECK: False PATH: /b/s/w/ir/cipd_bin_packages:/b/s/w/ir/cipd_bin_packages/bin:/b/s/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/b/s/w/ir/kitchen-checkout/depot_tools PWD: /b/s/w/ir/k PYTHONIOENCODING: UTF-8 PYTHONUNBUFFERED: 1 SHELL: /bin/bash SHLVL: 1 SUDO_COMMAND: /usr/bin/python /b/s/swarming_bot.zip start_bot SUDO_GID: 0 SUDO_UID: 0 SUDO_USER: root SWARMING_BOT_ID: trusty-dart-68765ebb-us-central1-b-4n30 SWARMING_EXTERNAL_BOT_SETUP: 1 SWARMING_HEADLESS: 1 SWARMING_SERVER: https://chromium-swarm.appspot.com SWARMING_TASK_ID: 43870f84fbf5f711 TEMP: /b/s/w/ir/tmp/t TEMPDIR: /b/s/w/ir/tmp/t TERM: linux TMP: /b/s/w/ir/tmp/t TMPDIR: /b/s/w/ir/tmp/t USER: chrome-bot USERNAME: chrome-bot VPYTHON_VIRTUALENV_ROOT: /b/s/w/ir/cache/vpython _: /b/s/w/ir/cipd_bin_packages/vpython INFO: Core dump archiving is activated tools/testing/dart/main.dart:1: Warning: Interpreting this as package URI, 'package:test_dart/main.dart'. Test configuration: unittest-asserts-release-linux(architecture: x64, compiler: dartk, mode: release, runtime: vm, system: linux, vm-options: [], timeout: 240, enable-asserts, preview-dart-2, use-sdk) Suites tested: pkg Total: 808 tests * 30 tests will be skipped (13 skipped by design) * 3 tests are expected to be flaky but not crash * 0 tests are expected to flaky crash * 774 tests are expected to pass * 0 tests are expected to fail that we won't fix * 1 tests are expected to fail that we should fix * 0 tests are expected to crash that we should fix * 0 tests are allowed to timeout * 0 could not be categorized or are in multiple categories 130 out of 782 completed Tests running for 5 minutes FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_include_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 32.000860s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_include_test.dart exit code: 255 stdout: 00:00 +0: include fix 00:15 +0 -1: include fix [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_include_test.dart 27:18 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper pkg/dartfix/test/src/driver_include_test.dart main.<fn> package:test/src/backend/declarer.dart 168:27 Declarer.test.<fn>.<fn>.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_include_test FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_exclude_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 32.000154s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_exclude_test.dart exit code: 255 stdout: 00:00 +0: exclude fix [ 0.002s] Targets: [ 0.007s] /b/s/w/ir/cache/builder/sdk/pkg/dartfix/example Failed to connect to server Dart SDK version 2.2.1-edge.11b9481403f72797790f7b37fe4f916ef4c8f67f (Mon Mar 11 19:20:44 2019 +0000) on "linux_x64" /b/s/w/ir/cache/builder/sdk/out/ReleaseX64/dart-sdk/bin/dart dartfix /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_exclude_test.dart Starting analysis server: out/ReleaseX64/dart-sdk/bin/dart --packages=file:///b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/analysis_server/bin/server.dart --client-id dartfix --client-version unspecified --suppress-analytics --sdk=/b/s/w/ir/cache/builder/sdk/out/ReleaseX64/dart-sdk ==> {"id":"0","method":"server.shutdown"} --- original example // This file contains code that is modified by running dartfix. // After running dartfix, the content of this file matches example-fixed.dart. // Dart will automatically convert int literals to doubles. // Running dartfix converts this double literal to an int. const double myDouble = 4.0; // This class is used as a mixin but does not use the new mixin syntax. // Running dartfix converts this class to use the new syntax. class MyMixin { final someValue = myDouble; } class MyClass with MyMixin {} main() { print('myDouble = ${MyClass().someValue}'); } 00:15 +0 -1: exclude fix [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_exclude_test.dart 32:20 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper pkg/dartfix/test/src/driver_exclude_test.dart main.<fn> package:test/src/backend/declarer.dart 168:27 Declarer.test.<fn>.<fn>.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_exclude_test FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_required_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 33.000312s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_required_test.dart exit code: 255 stdout: 00:00 +0: required fixes 00:15 +0 -1: required fixes [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_required_test.dart 27:18 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper pkg/dartfix/test/src/driver_required_test.dart main.<fn> package:test/src/backend/declarer.dart 168:27 Declarer.test.<fn>.<fn>.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_required_test FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_list_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 34.000618s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_list_test.dart exit code: 255 stdout: 00:00 +0: list fixes 00:15 +0 -1: list fixes [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_list_test.dart 15:18 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Usage: dartfix [options...] <directory paths> Choosing fixes to be applied: -i, --include=<name-of-fix> Include a specific fix. -x, --exclude=<name-of-fix> Exclude a specific fix. -r, --required Apply required fixes. -l, --list Display a list of fixes that can be applied. Modifying files: -w, --overwrite Overwrite files with the changes. -f, --force Overwrite files even if there are errors. Miscelaneous: --[no-]color Use ansi colors when printing messages. -h, --help Display this help message. -v, --verbose Verbose output. If neither --include nor --required is specified, then all fixes will be applied. Any fixes specified using --exclude will not be applied regardless of whether they are required or specifed using --include. Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_list_test 219 out of 782 completed Tests running for 10 minutes 356 out of 782 completed Tests running for 15 minutes 481 out of 782 completed Tests running for 20 minutes 616 out of 782 completed Tests running for 25 minutes 744 out of 782 completed Tests running for 30 minutes === Failure summary: FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_include_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 32.000860s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_include_test.dart exit code: 255 stdout: 00:00 +0: include fix 00:15 +0 -1: include fix [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_include_test.dart 27:18 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper pkg/dartfix/test/src/driver_include_test.dart main.<fn> package:test/src/backend/declarer.dart 168:27 Declarer.test.<fn>.<fn>.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_include_test FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_exclude_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 32.000154s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_exclude_test.dart exit code: 255 stdout: 00:00 +0: exclude fix [ 0.002s] Targets: [ 0.007s] /b/s/w/ir/cache/builder/sdk/pkg/dartfix/example Failed to connect to server Dart SDK version 2.2.1-edge.11b9481403f72797790f7b37fe4f916ef4c8f67f (Mon Mar 11 19:20:44 2019 +0000) on "linux_x64" /b/s/w/ir/cache/builder/sdk/out/ReleaseX64/dart-sdk/bin/dart dartfix /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_exclude_test.dart Starting analysis server: out/ReleaseX64/dart-sdk/bin/dart --packages=file:///b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/analysis_server/bin/server.dart --client-id dartfix --client-version unspecified --suppress-analytics --sdk=/b/s/w/ir/cache/builder/sdk/out/ReleaseX64/dart-sdk ==> {"id":"0","method":"server.shutdown"} --- original example // This file contains code that is modified by running dartfix. // After running dartfix, the content of this file matches example-fixed.dart. // Dart will automatically convert int literals to doubles. // Running dartfix converts this double literal to an int. const double myDouble = 4.0; // This class is used as a mixin but does not use the new mixin syntax. // Running dartfix converts this class to use the new syntax. class MyMixin { final someValue = myDouble; } class MyClass with MyMixin {} main() { print('myDouble = ${MyClass().someValue}'); } 00:15 +0 -1: exclude fix [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_exclude_test.dart 32:20 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper pkg/dartfix/test/src/driver_exclude_test.dart main.<fn> package:test/src/backend/declarer.dart 168:27 Declarer.test.<fn>.<fn>.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_exclude_test FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_required_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 33.000312s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_required_test.dart exit code: 255 stdout: 00:00 +0: required fixes 00:15 +0 -1: required fixes [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_required_test.dart 27:18 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper pkg/dartfix/test/src/driver_required_test.dart main.<fn> package:test/src/backend/declarer.dart 168:27 Declarer.test.<fn>.<fn>.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_required_test FAILED: dartk-vm release_x64 pkg/dartfix/test/src/driver_list_test Expected: Pass Actual: RuntimeError --- Command "vm" (took 34.000618s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart --enable_asserts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/dartfix/test/src/driver_list_test.dart exit code: 255 stdout: 00:00 +0: list fixes 00:15 +0 -1: list fixes [E] TestExit(15) pkg/dartfix/test/src/test_context.dart 22:5 TestContext.exit package:dartfix/src/driver.dart 47:15 Driver.start ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/lib/async_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:dartfix/src/driver.dart Driver.start ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:dartfix/src/driver.dart Driver.start pkg/dartfix/test/src/driver_list_test.dart 15:18 main.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/lib/async_patch.dart 77:23 _asyncThenWrapperHelper package:test/src/backend/declarer.dart Declarer.test.<fn>.<fn>.<fn> package:test/src/backend/invoker.dart 250:15 Invoker.waitForOutstandingCallbacks.<fn> ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test/src/backend/invoker.dart 402:11 Invoker._onRun.<fn>.<fn>.<fn> 00:15 +0 -1: Some tests failed. stderr: Usage: dartfix [options...] <directory paths> Choosing fixes to be applied: -i, --include=<name-of-fix> Include a specific fix. -x, --exclude=<name-of-fix> Exclude a specific fix. -r, --required Apply required fixes. -l, --list Display a list of fixes that can be applied. Modifying files: -w, --overwrite Overwrite files with the changes. -f, --force Overwrite files even if there are errors. Miscelaneous: --[no-]color Use ansi colors when printing messages. -h, --help Display this help message. -v, --verbose Verbose output. If neither --include nor --required is specified, then all fixes will be applied. Any fixes specified using --exclude will not be applied regardless of whether they are required or specifed using --include. Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/lib/timer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/lib/timer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/lib/isolate_patch.dart:171:12) --- Re-run this test: python tools/test.py -n unittest-asserts-release-linux pkg/dartfix/test/src/driver_list_test === === 4 tests failed === --- Total time: 31:20 --- 0:08:00.953337 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/strong_test 0:07:11.565925 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/legacy_test 0:02:53.087392 - vm - dartk-vm release_x64/pkg/analysis_server/test/src/plugin/plugin_manager_test 0:02:19.609752 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/types/large_app_benchmark_test 0:02:11.830757 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/analyze_test 0:02:01.153061 - vm - dartk-vm release_x64/pkg/analysis_server/test/integration/lsp_server/server_test 0:01:44.250799 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/text_serialization_test 0:01:41.444158 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/fast_strong_test 0:01:36.899993 - vm - dartk-vm release_x64/pkg/vm/test/transformations/type_flow/transformer_test 0:01:22.112872 - vm - dartk-vm release_x64/pkg/vm/test/kernel_front_end_test 0:01:15.375402 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/messages_test 0:01:13.512566 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/fast_legacy_test 0:01:08.121809 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/bootstrap_test 0:01:07.324418 - vm - dartk-vm release_x64/pkg/analysis_server/test/benchmarks_test 0:01:01.676849 - vm - dartk-vm release_x64/pkg/front_end/test/fasta/outline_test 0:01:00.633532 - vm - dartk-vm release_x64/pkg/vm/test/frontend_server_test 0:00:58.598251 - vm - dartk-vm release_x64/pkg/analyzer/test/generated/non_error_resolver_driver_test 0:00:57.011800 - vm - dartk-vm release_x64/pkg/front_end/tool/incremental_perf_test 0:00:53.824414 - vm - dartk-vm release_x64/pkg/analysis_server/test/completion_test 0:00:53.808843 - vm - dartk-vm release_x64/pkg/front_end/test/incremental_dart2js_load_from_dill_test INFO: No unexpected crashes recorded