dart-sdk/pkg
Sam Rawlins 49e495d48c linter: fix some test file suffixes
Change-Id: I2b4a7c49a4af7a9c9c8362e278cb370e59c3b179
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365665
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
2024-05-08 17:02:49 +00:00
..
_fe_analyzer_shared [cfe] Add least supported version check of 2.12 2024-05-08 09:28:45 +00:00
_js_interop_checks [dart:js_interop] Fix lowerings of ExternalDartReferences 2024-04-26 19:08:13 +00:00
_macros improve formatting of initializer lists and the toJson body 2024-05-08 14:55:01 +00:00
analysis_server [pkg/analysis_server] remove use of package:usage 2024-05-07 22:11:29 +00:00
analysis_server_client [pkg/analysis_server] remove use of package:usage 2024-05-07 22:11:29 +00:00
analysis_server_plugin DAS plugins: Move CorrectionUtils to analysis_server_plugin 2024-04-24 14:12:24 +00:00
analyzer improve formatting of initializer lists and the toJson body 2024-05-08 14:55:01 +00:00
analyzer_cli
analyzer_plugin analyzer: Touch up docs and impl of CorrectionUtils and EditBuilders 2024-04-22 21:44:49 +00:00
analyzer_utilities analyzer: bump mock meta package 2024-04-16 01:07:39 +00:00
async_helper
bisect_dart
build_integration
compiler Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
dart2js_info
dart2js_runtime_metrics
dart2js_tools
dart2native Add link.dart hook 2024-05-08 16:04:12 +00:00
dart2wasm [dart2wasm] Make use of TFA-inferred types in more cases 2024-05-08 11:23:14 +00:00
dart_internal Bump dart_internal again to work with the latest dev builds. 2024-05-02 23:06:47 +00:00
dart_service_protocol_shared
dartdev Add link.dart hook 2024-05-08 16:04:12 +00:00
dds [DAP] Set requirePermissionToResume and requireUserPermissionToResume for onPauseStart and onPauseExit so that DDS waits for DAP's permission before resuming the isolate. 2024-05-06 17:36:23 +00:00
dds_service_extensions
dev_compiler [ddc] Make escapeIdentifier API non-nullable 2024-05-08 16:28:12 +00:00
dtd Bump version in dtd 2024-04-23 16:38:48 +00:00
dtd_impl Ensure that dtd handles relative paths correctly. 2024-04-15 14:29:03 +00:00
expect Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
front_end [dart2wasm] Make use of TFA-inferred types in more cases 2024-05-08 11:23:14 +00:00
frontend_server Cleanup unsound mode from pkg/vm, frontend_server and dart2native 2024-04-29 14:18:01 +00:00
heap_snapshot
js Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
js_ast Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
js_runtime
js_shared
json improve formatting of initializer lists and the toJson body 2024-05-08 14:55:01 +00:00
kernel Share more analyzer/CFE code related to types. 2024-05-03 12:22:13 +00:00
language_versioning_2_12_test
linter linter: fix some test file suffixes 2024-05-08 17:02:49 +00:00
macros improve formatting of initializer lists and the toJson body 2024-05-08 14:55:01 +00:00
meta Bump package meta to 1.15.0 2024-05-06 18:01:32 +00:00
mmap
modular_test drop chmod operations, should not be necessary 2024-04-18 16:34:16 +00:00
native_stack_traces [vm] Add non-symbolic stack trace support for deferred loading units. 2024-04-19 08:10:18 +00:00
reload_test [reload_test] Adding support for negative tests in reload suite. 2024-04-24 12:45:44 +00:00
scrape
server_plugin DAS plugins: Move CorrectionUtils to analysis_server_plugin 2024-04-24 14:12:24 +00:00
smith Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
sourcemap_testing Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
status_file
telemetry [pkg/analysis_server] remove use of package:usage 2024-05-07 22:11:29 +00:00
test_runner [dart2wasm] Make test runner use pkg/dart2wasm/tool/run_benchmark (just as golem does) 2024-05-08 11:00:33 +00:00
testing [pkg/testing] restore analysis options settings 2024-04-19 14:45:41 +00:00
vm [dart2wasm] Make use of TFA-inferred types in more cases 2024-05-08 11:23:14 +00:00
vm_service [ package:vm_service ] Automatically invoke VmService.dispose() when the service connection closes 2024-05-02 16:01:49 +00:00
vm_service_interface
vm_service_protos
vm_snapshot_analysis
wasm_builder
.gitignore
analysis_options.yaml
BUILD.gn
OWNERS
pkg.dart
pkg.status [ package:vm_service] Skip regress_55559_test on AOT configurations 2024-05-02 17:20:37 +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. It's 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