[tool] Bisection tool A basic bisection script. Currently only supports substring matching for detecting the error. This was enough for three use cases today: * https://github.com/dart-lang/sdk/issues/52910 * https://github.com/dart-lang/sdk/issues/52911 * https://github.com/dart-lang/sdk/issues/52912 Produces a concise output on standard out, and a very detailed log with all process invocation results in `.dart_tool/bisect_dart`. Usage: tools/bisect.dart -Dstart=23f41452 -Dend=2c97bd78 -Dtest_command="tools/test.py --build -n dartk-linux-debug-x64 lib_2/isolate/package_resolve_test" -Dfailure_string="Error: The argument type 'String' can't be assigned to the parameter type 'Uri'." -Dsdk_path=/usr/local/google/home/dacoharkes/dart-sdk/sdk/ -Dname=20230712_package_resolve_test This script starts a bisection in the provided SDK path. It will write logs to .dart_tool/bisect_dart/. start : The commit has at the start of the commit range. end : The commit has at the end of the commit range. test_command : The invocation of test.py. This should include `--build`. This should be within quotes when passed in terminal because of spaces. failure_string : A string from the failing output. Regexes are not yet supported. This should be within quotes when passed in terminal when containing spaces. sdk_path : The SDK path is optional. The SDK path defaults to the current working directory. name : The name is optional. The name defaults to the current date and the recognized test name. The name is used for distinguishing logs. Change-Id: Ib071a5305d4992cf189e35eb3dcc50c83101503e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313384 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.