dart-sdk/pkg
Danny Tuppeny 1b302b8df0 Move tests for switch enum cases for >= 2.19 from AddMissingEnumCaseClausesTest to AddMissingSwitchCasesTest_SwitchStatement
The tests in this class were duplicated when pattern support was added, one set
of tests for <= 2.19 and one for > 2.19. The> 2.19 tests were marked as Failing
because this functionality didn't work.

This functionality has now been implemented, but because the error code and fix
are different, these tests continued to fail. This change moves the tests to
the equivalent pattern-enabled fixes tests and removes `@FailingTest` for
those that can now pass.

There are still a few marked `@FailingTest` because of differences in the new
implementation.

See https://github.com/dart-lang/sdk/issues/52180#issuecomment-2166814402

Change-Id: Ie1dfa5bc5c608d38a191507f5f0403d20ba2ef31
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371684
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Sam Rawlins <srawlins@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2024-06-14 15:48:51 +00:00
..
_fe_analyzer_shared Prepare to publish analyzer 6.6.0 and _fe_analyzer_shared 71.0.0 2024-06-13 19:56:30 +00:00
_js_interop_checks Reland "[dart2wasm] Check import/export pragmas in user code" 2024-06-11 13:12:27 +00:00
_macros skip failing macro test 2024-06-12 20:59:34 +00:00
analysis_server Move tests for switch enum cases for >= 2.19 from AddMissingEnumCaseClausesTest to AddMissingSwitchCasesTest_SwitchStatement 2024-06-14 15:48:51 +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: Support Parse-only correction producers 2024-06-03 23:13:18 +00:00
analyzer analyzer: fix various issues for static extension member resolution 2024-06-14 00:59:57 +00:00
analyzer_cli CQ. Make FileSource API, move to lib/source. 2024-06-03 00:36:59 +00:00
analyzer_plugin DevX. Issue 54567. Support for joined cases in 'Convert to switch expression'. 2024-06-12 22:10:47 +00:00
analyzer_utilities meta: add TargetKind to @factory 2024-06-06 15:39:56 +00:00
async_helper
bisect_dart [deps] Roll package:native_assets_builder 2024-03-14 18:06:13 +00:00
build_integration
compiler [dart2js] Convert VariableUse to a sealed class hierarchy. 2024-06-13 23:01:34 +00:00
dart2js_info
dart2js_runtime_metrics
dart2js_tools
dart2native [dartdev] Add --depfile option to dart compile 2024-05-23 12:58:29 +00:00
dart2wasm [dart2wasm] Specialize string interpolation expressions for 1/2/3/4 arguments 2024-06-14 12:33:51 +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 [dart2wasm] Remove deprecated --name-section flag from dart compile wasm 2024-06-14 06:50:18 +00:00
dds [ DDS ] Refactor DDS entrypoint to allow for overriding behavior in google3 2024-06-13 20:27:22 +00:00
dds_service_extensions [ DDS ] Rework client resume permissions API 2024-03-21 21:09:42 +00:00
dev_compiler [ddc] Rename variable used to store late value 2024-06-05 20:50:49 +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 [cfe] Use SourceCompilationUnit in SourceLoader.tokenize 2024-06-14 10:49:48 +00:00
frontend_server [pkg/vm] Consolidate kernel compilation options to an object 2024-06-10 22:56:50 +00:00
heap_snapshot
js Add topics to pubspec.yaml 2024-06-13 13:02:54 +00:00
js_ast Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
js_runtime
js_shared
json package:json - drop vendored packages, prep to release 2024-05-24 15:41:05 +00:00
kernel [kernel] Add isWildcard flag to VariableDeclaration. 2024-06-10 19:33:39 +00:00
language_versioning_2_12_test
linter linter: move avoid_js_rounded_ints tests 2024-06-12 08:38:35 +00:00
macros Macro. Re-export package:_macros/src/executor/response_impls.dart from 'package:macros'. 2024-06-13 19:12:41 +00:00
meta [pkg:meta] Add topics to pubspec.yaml 2024-06-10 10:27:36 +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 Bump collection to c90b19f07b48391f3b1b4c39dd06ef0177f8e07c 2024-06-11 17:27:21 +00:00
status_file [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00
telemetry [pkg/analysis_server] remove use of package:usage 2024-05-07 22:11:29 +00:00
test_runner [dart2wasm] Add dart2wasm-asserts-* configurations 2024-06-10 14:24:12 +00:00
testing [pkg/testing] restore analysis options settings 2024-04-19 14:45:41 +00:00
vm [pkg/kernel-service] Fix invalid index used in expression 2024-06-12 22:13:29 +00:00
vm_service [ package:vm_service ] Prepare for 14.2.4 release 2024-06-14 14:01:58 +00:00
vm_service_interface [ package:vm_service* ] Prepare for release of package:vm_service 14.2.0 and package:vm_service_interface 1.1.0 2024-03-20 13:34:07 +00:00
vm_service_protos
vm_snapshot_analysis
wasm_builder [wasm_builder] Update incorrect docs, some minor refactoring 2024-05-15 09:49:02 +00:00
.gitignore
analysis_options.yaml
BUILD.gn
OWNERS
pkg.dart
pkg.status [status_files] Cleanup status files 2024-06-12 10:21:23 +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