dart-sdk/pkg
Paul Berry 6153e0536b Test runner: if analyzer crashes, ensure stack trace is printed
Change-Id: I61e2b7348ac121db07dfc8500ce6808b57bbecbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222404
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-12-08 18:05:50 +00:00
..
_fe_analyzer_shared Revert "[parser] Add support for typed super-initializer parameters" 2021-12-07 18:52:49 +00:00
_js_interop_checks Use type parameter in extension member lowering 2021-11-04 23:58:46 +00:00
analysis_server Add support to rename compilation unit members. 2021-12-08 17:21:30 +00:00
analysis_server_client Remove some implicit casts in analysis_server 2021-12-02 22:21:47 +00:00
analyzer Make 'Enum' the supertype of enums, not an interface. 2021-12-07 22:02:00 +00:00
analyzer_cli analyzer_cli: switch to use strict-casts 2021-12-08 04:22:39 +00:00
analyzer_plugin analyzer_plugin: switch to use strict-casts 2021-12-08 06:06:59 +00:00
analyzer_utilities Remove deprecated packageRoot API, which doesn't work in Dart 2 2021-12-07 14:44:49 +00:00
async_helper
build_integration Migrate pkg/build_integration to null safety 2021-07-17 15:45:04 +00:00
compiler [cfe,dart2js] Reuse field reference for static late lowering 2021-12-07 21:12:17 +00:00
dart2js_info Remove extra the, be and of 2021-10-20 09:29:01 +00:00
dart2js_runtime_metrics [dart2js_runtime_metrics] Allow exporting internal library 2021-08-12 22:47:22 +00:00
dart2js_tools [dart2js] Migrate dart2js_tools to null safety 2021-10-08 23:54:54 +00:00
dart2native [vm] Bump max ELF page size to 64K 2021-11-16 16:23:36 +00:00
dart_internal pkg:dart_internal update changelog 2021-11-12 19:50:10 +00:00
dartdev Initial 'dart doc' developer command 2021-12-06 10:26:09 +00:00
dds [dds] Add support for additional VM args in DAP 2021-12-02 17:16:07 +00:00
dev_compiler [ddc] Fix named args in redirecting constructors 2021-12-03 00:02:57 +00:00
diagnostic master branch to main 2021-09-15 06:22:23 +00:00
expect Allow pub get/upgrade to run on a number of packages in pkg/ 2021-10-27 23:15:56 +00:00
front_end [cfe,dart2js] Reuse field reference for static late lowering 2021-12-07 21:12:17 +00:00
frontend_server [cfe] Pass tracked dill libraries through incremental compiler result 2021-11-30 11:07:34 +00:00
js Use strict-casts in js and dev_complier 2021-11-29 23:22:44 +00:00
js_ast [dart2js] Add generated JavaScript to --dump-ssa output. 2021-11-03 19:48:03 +00:00
js_runtime [dart2js] Add dart:_dart2js_runtime_metrics library and package 2021-08-03 18:25:00 +00:00
kernel [cfe,dart2js] Reuse field reference for static late lowering 2021-12-07 21:12:17 +00:00
language_versioning_2.7_test
meta Fix a typo 2021-12-02 11:37:31 +00:00
modular_test Remove extra the, be and of 2021-10-20 09:29:01 +00:00
native_stack_traces pkg:native_stack_trace - enable and fix a few more lints 2021-10-14 07:35:43 +00:00
nnbd_migration nnbd_migration: Add missing return statement to nullably-typed function 2021-12-08 16:03:00 +00:00
scrape Script to scrape corpus to evaluate "super." parameter proposals. 2021-10-01 18:54:48 +00:00
smith [testing] Remove self-check runtime 2021-10-15 09:43:22 +00:00
sourcemap_testing Updating pkg:sourcemap_testing function resolution for method definition syntax. 2021-07-08 22:59:17 +00:00
status_file Allow pub get/upgrade to run on a number of packages in pkg/ 2021-10-27 23:15:56 +00:00
telemetry telemetry: allow the latest pkg:usage 2021-09-23 21:49:28 +00:00
test_runner Test runner: if analyzer crashes, ensure stack trace is printed 2021-12-08 18:05:50 +00:00
testing Replace a bunch of references to .packages 2021-10-12 20:16:15 +00:00
vm [gardening] Increase timeout for slow protobuf_aware_treeshaker/treeshaker_test 2021-12-08 00:28:59 +00:00
vm_service [ VM / Service ] Stream light-weight version of CpuSamples for CPU 2021-11-18 19:45:26 +00:00
vm_snapshot_analysis Fix windows extension 2021-08-24 18:01:23 +00:00
.gitignore Ignore .dart_tool and .packages in pkg dir 2021-09-24 15:22:08 +00:00
BUILD.gn
pkg.status [dart2js] Skip dump_info unit test that times out 2021-10-07 15:40:42 +00:00
README.md

Package validation

The packages in pkg/ are automatically validated on the LUCI CI bots. The validation is largely done by the tools/package_deps package; it can be tested locally via:

dart tools/package_deps/bin/package_deps.dart

Packages which are published

There are several packages developed in pkg/ which are published to pub. Validation of these packages is particularly important because the pub tools are not used for these packages during development; we get our dependency versions from the DEPS file. Its very easy for the dependencies specified in a package's pubspec file to get out of date wrt the packages and versions actually used.

In order to better ensure we're publishing correct packages, we validate some properties of the pubspec files on our CI system. These validations include:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that we don't use relative path deps to pkg/ or third_party/ packages

Packages which are not published

For packages in pkg/ which we do not intend to be published, we put the following comment in the pubspec.yaml file:

# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none

These pubspecs are still validated by the package validation tool. The contents are more informational as the pubspecs for these packages are not consumed by the pub tool or ecosystem.

We validate:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that a reference to a pkg/ package is done via a relative path dependency