[web] do not run most 'pkg' suite on web compilers Many tests under `pkg`, like `pkg/js_ast` and `pkg/analyzer_cli` are meant to run as unit tests in the Dart VM. These were also being run in dart2js and causing flakiness because they took a long time to build on our CQ. Locally some of these tests compile in under 5s, but we see the compile-time vary among the bots a lot. I've observed cases close to 30s and some that reach the 1-minute timeout cutoff. Flakiness data show that this is happening between 5-7% of the runs, especially on linux bots. This CL stops running these tests on the dart2js configuration by changing which subset of the `pkg` suite is provided to dart2js. It also adjusts the .status file to skip a few suites for convenience on local testing only. This allows developers locally to run `test.py -n... pkg` without worrying about filtering out skipped suites. Addendum: after discussions on the CL we decided not to cmpletely drop coverage of js_ast tests on JS to ensure it can be used in browser environments in the future. To support this we made made the tests cheaper by removing the dependency on package:test. They will now only be run in a single configuration, which is all we need for this purpose. We can reevaluate and remove this if we continue to see timeouts. Change-Id: Idf0dbdd37e412ef71ba117ec979cb1e52585c431 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330704 Reviewed-by: Stephen Adams <sra@google.com> Commit-Queue: Sigmund Cherem <sigmund@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.