diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index a53d62fd4..000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -/pkgs/ @dart-lang/core-package-admins diff --git a/.github/ISSUE_TEMPLATE/01_test_runner_bug.md b/.github/ISSUE_TEMPLATE/01_test_runner_bug.md index e49d27768..746faadd7 100644 --- a/.github/ISSUE_TEMPLATE/01_test_runner_bug.md +++ b/.github/ISSUE_TEMPLATE/01_test_runner_bug.md @@ -4,7 +4,7 @@ about: >- Report a bug in running tests, integration with a specific platform, or any behavior of 'package:test'. title: '' -labels: bug +labels: bug, package:test --- Describe the bug in detail. Include the specific command you ran and any relevant details about the diff --git a/.github/ISSUE_TEMPLATE/02_test_runner_feature.md b/.github/ISSUE_TEMPLATE/02_test_runner_feature.md index 56170ba2e..8fb02cb72 100644 --- a/.github/ISSUE_TEMPLATE/02_test_runner_feature.md +++ b/.github/ISSUE_TEMPLATE/02_test_runner_feature.md @@ -4,7 +4,7 @@ about: >- Propose a feature for 'package:test' that would make testing easier or more powerful. title: '' -labels: enhancement +labels: enhancement, package:test --- Describe the feature and include specific description of the use case, or use cases, you have in mind. diff --git a/.github/ISSUE_TEMPLATE/03_checks_feedback.md b/.github/ISSUE_TEMPLATE/03_checks_feedback.md deleted file mode 100644 index 5eb003972..000000000 --- a/.github/ISSUE_TEMPLATE/03_checks_feedback.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: I have feedback for the package:checks preview -about: Suggest a change, new feature, or bug, for 'package:checks'. -title: '' -labels: package:checks ---- -Add any feedback about `package:checks`. -Include a description of a specific use case for any feature requests. diff --git a/.github/ISSUE_TEMPLATE/checks.md b/.github/ISSUE_TEMPLATE/checks.md new file mode 100644 index 000000000..728799c61 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/checks.md @@ -0,0 +1,5 @@ +--- +name: "package:checks" +about: "Create a bug or file a feature request against package:checks." +labels: "package:checks" +--- diff --git a/.github/ISSUE_TEMPLATE/fake_async.md b/.github/ISSUE_TEMPLATE/fake_async.md index c26edd2ec..8b994a167 100644 --- a/.github/ISSUE_TEMPLATE/fake_async.md +++ b/.github/ISSUE_TEMPLATE/fake_async.md @@ -2,4 +2,4 @@ name: "package:fake_async" about: "Create a bug or file a feature request against package:fake_async." labels: "package:fake_async" ---- \ No newline at end of file +--- diff --git a/.github/ISSUE_TEMPLATE/matcher.md b/.github/ISSUE_TEMPLATE/matcher.md index f41464d59..b0c6127ca 100644 --- a/.github/ISSUE_TEMPLATE/matcher.md +++ b/.github/ISSUE_TEMPLATE/matcher.md @@ -2,4 +2,4 @@ name: "package:matcher" about: "Create a bug or file a feature request against package:matcher." labels: "package:matcher" ---- \ No newline at end of file +--- diff --git a/.github/ISSUE_TEMPLATE/test_descriptor.md b/.github/ISSUE_TEMPLATE/test_descriptor.md index 32de9a035..6029c8aa3 100644 --- a/.github/ISSUE_TEMPLATE/test_descriptor.md +++ b/.github/ISSUE_TEMPLATE/test_descriptor.md @@ -2,4 +2,4 @@ name: "package:test_descriptor" about: "Create a bug or file a feature request against package:test_descriptor." labels: "package:test_descriptor" ---- \ No newline at end of file +--- diff --git a/.github/ISSUE_TEMPLATE/test_process.md b/.github/ISSUE_TEMPLATE/test_process.md index 9f492b8cb..b34584542 100644 --- a/.github/ISSUE_TEMPLATE/test_process.md +++ b/.github/ISSUE_TEMPLATE/test_process.md @@ -2,4 +2,4 @@ name: "package:test_process" about: "Create a bug or file a feature request against package:test_process." labels: "package:test_process" ---- \ No newline at end of file +--- diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..e8c562b59 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,31 @@ +# Configuration for .github/workflows/pull_request_label.yml. + +'type-infra': + - changed-files: + - any-glob-to-any-file: '.github/**' + +'package:checks': + - changed-files: + - any-glob-to-any-file: 'pkgs/checks/**' + +'package:fake_async': + - changed-files: + - any-glob-to-any-file: 'pkgs/fake_async/**' + +'package:matcher': + - changed-files: + - any-glob-to-any-file: 'pkgs/matcher/**' + +'package:test': + - changed-files: + - any-glob-to-any-file: 'pkgs/test/**' + - any-glob-to-any-file: 'pkgs/test_api/**' + - any-glob-to-any-file: 'pkgs/test_core/**' + +'package:test_descriptor': + - changed-files: + - any-glob-to-any-file: 'pkgs/test_descriptor/**' + +'package:test_process': + - changed-files: + - any-glob-to-any-file: 'pkgs/test_process/**' diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index e36e555bd..b543f0a13 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -40,36 +40,6 @@ jobs: - name: mono_repo self validate run: dart pub global run mono_repo generate --validate job_002: - name: "analyze_and_format; linux; Dart 3.3.0; PKG: pkgs/fake_async; `dart analyze`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0;packages:pkgs/fake_async;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0;packages:pkgs/fake_async - os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 - with: - sdk: "3.3.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - id: pkgs_fake_async_pub_upgrade - name: pkgs/fake_async; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/fake_async - - name: pkgs/fake_async; dart analyze - run: dart analyze - if: "always() && steps.pkgs_fake_async_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/fake_async - job_003: name: "analyze_and_format; linux; Dart 3.5.0; PKGS: integration_tests/regression, integration_tests/wasm; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`" runs-on: ubuntu-latest steps: @@ -116,7 +86,7 @@ jobs: run: dart analyze --fatal-infos if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" working-directory: integration_tests/wasm - job_004: + job_003: name: "analyze_and_format; linux; Dart 3.5.0; PKGS: pkgs/checks, pkgs/matcher, pkgs/test_core; `dart analyze`" runs-on: ubuntu-latest steps: @@ -164,17 +134,17 @@ jobs: run: dart analyze if: "always() && steps.pkgs_test_core_pub_upgrade.conclusion == 'success'" working-directory: pkgs/test_core - job_005: - name: "analyze_and_format; linux; Dart dev; PKGS: integration_tests/regression, integration_tests/spawn_hybrid, integration_tests/wasm, pkgs/checks, pkgs/fake_async, pkgs/matcher, pkgs/test, pkgs/test_api, pkgs/test_core; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`" + job_004: + name: "analyze_and_format; linux; Dart dev; PKGS: integration_tests/regression, integration_tests/spawn_hybrid, integration_tests/wasm, pkgs/checks, pkgs/matcher, pkgs/test, pkgs/test_api, pkgs/test_core; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_tests/regression-integration_tests/spawn_hybrid-integration_tests/wasm-pkgs/checks-pkgs/fake_async-pkgs/matcher-pkgs/test-pkgs/test_api-pkgs/test_core;commands:format-analyze_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_tests/regression-integration_tests/spawn_hybrid-integration_tests/wasm-pkgs/checks-pkgs/matcher-pkgs/test-pkgs/test_api-pkgs/test_core;commands:format-analyze_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_tests/regression-integration_tests/spawn_hybrid-integration_tests/wasm-pkgs/checks-pkgs/fake_async-pkgs/matcher-pkgs/test-pkgs/test_api-pkgs/test_core + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_tests/regression-integration_tests/spawn_hybrid-integration_tests/wasm-pkgs/checks-pkgs/matcher-pkgs/test-pkgs/test_api-pkgs/test_core os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest @@ -237,19 +207,6 @@ jobs: run: dart analyze --fatal-infos if: "always() && steps.pkgs_checks_pub_upgrade.conclusion == 'success'" working-directory: pkgs/checks - - id: pkgs_fake_async_pub_upgrade - name: pkgs/fake_async; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/fake_async - - name: "pkgs/fake_async; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.pkgs_fake_async_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/fake_async - - name: "pkgs/fake_async; dart analyze --fatal-infos" - run: dart analyze --fatal-infos - if: "always() && steps.pkgs_fake_async_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/fake_async - id: pkgs_matcher_pub_upgrade name: pkgs/matcher; dart pub upgrade run: dart pub upgrade @@ -302,7 +259,7 @@ jobs: run: dart analyze --fatal-infos if: "always() && steps.pkgs_test_core_pub_upgrade.conclusion == 'success'" working-directory: pkgs/test_core - job_006: + job_005: name: "analyze_and_format; windows; Dart 3.5.0; PKG: integration_tests/wasm; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`" runs-on: windows-latest steps: @@ -326,7 +283,7 @@ jobs: run: dart analyze --fatal-infos if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" working-directory: integration_tests/wasm - job_007: + job_006: name: "analyze_and_format; windows; Dart dev; PKG: integration_tests/wasm; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`" runs-on: windows-latest steps: @@ -350,45 +307,7 @@ jobs: run: dart analyze --fatal-infos if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" working-directory: integration_tests/wasm - job_008: - name: "unit_test; linux; Dart 3.3.0; PKG: pkgs/fake_async; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0;packages:pkgs/fake_async;commands:command_00" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0;packages:pkgs/fake_async - os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 - with: - sdk: "3.3.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - id: pkgs_fake_async_pub_upgrade - name: pkgs/fake_async; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/fake_async - - name: pkgs/fake_async; dart test - run: dart test - if: "always() && steps.pkgs_fake_async_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/fake_async - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_009: + job_007: name: "unit_test; linux; Dart 3.5.0; PKG: integration_tests/regression; `dart test`" runs-on: ubuntu-latest steps: @@ -425,8 +344,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_010: + job_008: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/checks; `dart test`" runs-on: ubuntu-latest steps: @@ -463,8 +381,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_011: + job_009: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/matcher; `dart test`" runs-on: ubuntu-latest steps: @@ -501,8 +418,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_012: + job_010: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/test_core; `dart test`" runs-on: ubuntu-latest steps: @@ -539,8 +455,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_013: + job_011: name: "unit_test; linux; Dart 3.5.0; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: ubuntu-latest steps: @@ -577,8 +492,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_014: + job_012: name: "unit_test; linux; Dart 3.5.0; PKG: integration_tests/wasm; `dart test --timeout=60s`" runs-on: ubuntu-latest steps: @@ -615,8 +529,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_015: + job_013: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 0`" runs-on: ubuntu-latest steps: @@ -653,8 +566,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_016: + job_014: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 1`" runs-on: ubuntu-latest steps: @@ -691,8 +603,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_017: + job_015: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 2`" runs-on: ubuntu-latest steps: @@ -729,8 +640,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_018: + job_016: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 3`" runs-on: ubuntu-latest steps: @@ -767,8 +677,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_019: + job_017: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 4`" runs-on: ubuntu-latest steps: @@ -805,8 +714,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_020: + job_018: name: "unit_test; linux; Dart 3.5.0; PKG: pkgs/test_api; `dart test --preset travis -x browser`" runs-on: ubuntu-latest steps: @@ -843,8 +751,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_021: + job_019: name: "unit_test; linux; Dart dev; PKG: integration_tests/regression; `dart test`" runs-on: ubuntu-latest steps: @@ -881,8 +788,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_022: + job_020: name: "unit_test; linux; Dart dev; PKG: pkgs/checks; `dart test`" runs-on: ubuntu-latest steps: @@ -919,46 +825,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_023: - name: "unit_test; linux; Dart dev; PKG: pkgs/fake_async; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/fake_async;commands:command_00" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/fake_async - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - id: pkgs_fake_async_pub_upgrade - name: pkgs/fake_async; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/fake_async - - name: pkgs/fake_async; dart test - run: dart test - if: "always() && steps.pkgs_fake_async_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/fake_async - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_024: + job_021: name: "unit_test; linux; Dart dev; PKG: pkgs/matcher; `dart test`" runs-on: ubuntu-latest steps: @@ -995,8 +862,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_025: + job_022: name: "unit_test; linux; Dart dev; PKG: pkgs/test_core; `dart test`" runs-on: ubuntu-latest steps: @@ -1033,8 +899,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_026: + job_023: name: "unit_test; linux; Dart dev; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: ubuntu-latest steps: @@ -1071,8 +936,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_027: + job_024: name: "unit_test; linux; Dart dev; PKG: integration_tests/wasm; `dart test --timeout=60s`" runs-on: ubuntu-latest steps: @@ -1109,8 +973,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_028: + job_025: name: "unit_test; linux; Dart dev; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 0`" runs-on: ubuntu-latest steps: @@ -1147,8 +1010,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_029: + job_026: name: "unit_test; linux; Dart dev; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 1`" runs-on: ubuntu-latest steps: @@ -1185,8 +1047,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_030: + job_027: name: "unit_test; linux; Dart dev; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 2`" runs-on: ubuntu-latest steps: @@ -1223,8 +1084,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_031: + job_028: name: "unit_test; linux; Dart dev; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 3`" runs-on: ubuntu-latest steps: @@ -1261,8 +1121,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_032: + job_029: name: "unit_test; linux; Dart dev; PKG: pkgs/test; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --preset travis --total-shards 5 --shard-index 4`" runs-on: ubuntu-latest steps: @@ -1299,8 +1158,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_033: + job_030: name: "unit_test; linux; Dart dev; PKG: pkgs/test_api; `dart test --preset travis -x browser`" runs-on: ubuntu-latest steps: @@ -1337,8 +1195,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_034: + job_031: name: "unit_test; osx; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 0`" runs-on: macos-latest steps: @@ -1375,8 +1232,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_035: + job_032: name: "unit_test; osx; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 1`" runs-on: macos-latest steps: @@ -1413,8 +1269,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_036: + job_033: name: "unit_test; osx; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 2`" runs-on: macos-latest steps: @@ -1451,8 +1306,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_037: + job_034: name: "unit_test; osx; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 3`" runs-on: macos-latest steps: @@ -1489,8 +1343,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_038: + job_035: name: "unit_test; osx; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 4`" runs-on: macos-latest steps: @@ -1527,8 +1380,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_039: + job_036: name: "unit_test; windows; Dart 3.5.0; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: windows-latest steps: @@ -1555,8 +1407,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_040: + job_037: name: "unit_test; windows; Dart 3.5.0; PKG: integration_tests/wasm; `dart test --timeout=60s`" runs-on: windows-latest steps: @@ -1583,8 +1434,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_041: + job_038: name: "unit_test; windows; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 0`" runs-on: windows-latest steps: @@ -1611,8 +1461,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_042: + job_039: name: "unit_test; windows; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 1`" runs-on: windows-latest steps: @@ -1639,8 +1488,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_043: + job_040: name: "unit_test; windows; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 2`" runs-on: windows-latest steps: @@ -1667,8 +1515,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_044: + job_041: name: "unit_test; windows; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 3`" runs-on: windows-latest steps: @@ -1695,8 +1542,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_045: + job_042: name: "unit_test; windows; Dart 3.5.0; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 4`" runs-on: windows-latest steps: @@ -1723,8 +1569,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_046: + job_043: name: "unit_test; windows; Dart dev; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: windows-latest steps: @@ -1751,8 +1596,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_047: + job_044: name: "unit_test; windows; Dart dev; PKG: integration_tests/wasm; `dart test --timeout=60s`" runs-on: windows-latest steps: @@ -1779,8 +1623,7 @@ jobs: - job_004 - job_005 - job_006 - - job_007 - job_048: + job_045: name: Notify failure runs-on: ubuntu-latest if: "(github.event_name == 'push' || github.event_name == 'schedule') && failure()" @@ -1836,6 +1679,3 @@ jobs: - job_042 - job_043 - job_044 - - job_045 - - job_046 - - job_047 diff --git a/.github/workflows/fake_async.yaml b/.github/workflows/fake_async.yaml new file mode 100644 index 000000000..04f4db7d1 --- /dev/null +++ b/.github/workflows/fake_async.yaml @@ -0,0 +1,44 @@ +name: package:fake_async + +permissions: read-all + +on: + # Run CI on pushes to the main branch, and on PRs against main. + push: + branches: [ master ] + paths: + - '.github/workflows/fake_async.yaml' + - 'pkgs/fake_async/**' + pull_request: + branches: [ master ] + paths: + - '.github/workflows/fake_async.yaml' + - 'pkgs/fake_async/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/fake_async + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} + + - run: dart test diff --git a/.github/workflows/pull_request_label.yaml b/.github/workflows/pull_request_label.yaml new file mode 100644 index 000000000..54e3df537 --- /dev/null +++ b/.github/workflows/pull_request_label.yaml @@ -0,0 +1,22 @@ +# This workflow applies labels to pull requests based on the paths that are +# modified in the pull request. +# +# Edit `.github/labeler.yml` to configure labels. For more information, see +# https://github.com/actions/labeler. + +name: Pull Request Labeler +permissions: read-all + +on: + pull_request_target + +jobs: + label: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 000000000..36c3d6d10 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,13 @@ +# Below are suggested reviewers for PRs to packages in this repository. +# +# These are suggestions; it is fine to have your changes reviewed by someone +# else. + +/pkgs/checks/ @dart-lang/core-package-admins +/pkgs/fake_async/ +/pkgs/matcher/ @dart-lang/core-package-admins +/pkgs/test/ @dart-lang/core-package-admins +/pkgs/test_api/ @dart-lang/core-package-admins +/pkgs/test_core/ @dart-lang/core-package-admins +/pkgs/test_descriptor/ +/pkgs/test_process/ diff --git a/README.md b/README.md index f178ccbdf..358e6e8df 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,20 @@ literate API. ## Packages -| Package | Description | Version | -|---|---|---| -| [checks](pkgs/checks/) | A framework for checking values against expectations and building custom expectations. | [![pub package](https://img.shields.io/pub/v/checks.svg)](https://pub.dev/packages/checks) | -| [fake_async](pkgs/fake_async/) | Fake asynchronous events such as timers and microtasks for deterministic testing. | [![pub package](https://img.shields.io/pub/v/fake_async.svg)](https://pub.dev/packages/fake_async) | -| [matcher](pkgs/matcher/) | Support for specifying test expectations via an extensible Matcher class. | [![pub package](https://img.shields.io/pub/v/matcher.svg)](https://pub.dev/packages/matcher) | -| [test](pkgs/test/) | A full featured library for writing and running Dart tests across platforms. | [![pub package](https://img.shields.io/pub/v/test.svg)](https://pub.dev/packages/test) | -| [test_api](pkgs/test_api/) | | [![pub package](https://img.shields.io/pub/v/test_api.svg)](https://pub.dev/packages/test_api) | -| [test_core](pkgs/test_core/) | | [![pub package](https://img.shields.io/pub/v/test_core.svg)](https://pub.dev/packages/test_core) | -| [test_descriptor](pkgs/test_descriptor/) | An API for defining and verifying files and directory structures. | [![pub package](https://img.shields.io/pub/v/test_descriptor.svg)](https://pub.dev/packages/test_descriptor) | -| [test_process](pkgs/test_process/) | Test processes: starting; validating stdout and stderr; checking exit code | [![pub package](https://img.shields.io/pub/v/test_process.svg)](https://pub.dev/packages/test_process) | +| Package | Description | Issues | Version | +| --- | --- | --- | --- | +| [checks](pkgs/checks/) | A framework for checking values against expectations and building custom expectations. | [![issues](https://img.shields.io/badge/issues-4774bc)][checks_issues] | [![pub package](https://img.shields.io/pub/v/checks.svg)](https://pub.dev/packages/checks) | +| [fake_async](pkgs/fake_async/) | Fake asynchronous events such as timers and microtasks for deterministic testing. | [![issues](https://img.shields.io/badge/issues-4774bc)][fake_async_issues] | [![pub package](https://img.shields.io/pub/v/fake_async.svg)](https://pub.dev/packages/fake_async) | +| [matcher](pkgs/matcher/) | Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. | [![issues](https://img.shields.io/badge/issues-4774bc)][matcher_issues] | [![pub package](https://img.shields.io/pub/v/matcher.svg)](https://pub.dev/packages/matcher) | +| [test](pkgs/test/) | A full featured library for writing and running Dart tests across platforms. | [![issues](https://img.shields.io/badge/issues-4774bc)][test_issues] | [![pub package](https://img.shields.io/pub/v/test.svg)](https://pub.dev/packages/test) | +| [test_api](pkgs/test_api/) | The user facing API for structuring Dart tests and checking expectations. | | [![pub package](https://img.shields.io/pub/v/test_api.svg)](https://pub.dev/packages/test_api) | +| [test_core](pkgs/test_core/) | A basic library for writing tests and running them on the VM. | | [![pub package](https://img.shields.io/pub/v/test_core.svg)](https://pub.dev/packages/test_core) | +| [test_descriptor](pkgs/test_descriptor/) | An API for defining and verifying files and directory structures. | [![issues](https://img.shields.io/badge/issues-4774bc)][test_descriptor_issues] | [![pub package](https://img.shields.io/pub/v/test_descriptor.svg)](https://pub.dev/packages/test_descriptor) | +| [test_process](pkgs/test_process/) | Test processes: starting; validating stdout and stderr; checking exit code. | [![issues](https://img.shields.io/badge/issues-4774bc)][test_process_issues] | [![pub package](https://img.shields.io/pub/v/test_process.svg)](https://pub.dev/packages/test_process) | + +[checks_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Achecks +[fake_async_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Afake_async +[matcher_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Amatcher +[test_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest +[test_descriptor_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_descriptor +[test_process_issues]: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_process diff --git a/analysis_options.yaml b/analysis_options.yaml index f6b2dc190..5a21475f4 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,6 +1,5 @@ include: package:dart_flutter_team_lints/analysis_options.yaml - analyzer: language: strict-casts: true diff --git a/pkgs/checks/pubspec.yaml b/pkgs/checks/pubspec.yaml index 8c59ba4e7..8c7700536 100644 --- a/pkgs/checks/pubspec.yaml +++ b/pkgs/checks/pubspec.yaml @@ -4,6 +4,7 @@ description: >- A framework for checking values against expectations and building custom expectations. repository: https://github.com/dart-lang/test/tree/master/pkgs/checks +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Achecks resolution: workspace environment: diff --git a/pkgs/fake_async/mono_pkg.yaml b/pkgs/fake_async/mono_pkg.yaml deleted file mode 100644 index b447edbf8..000000000 --- a/pkgs/fake_async/mono_pkg.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# See https://pub.dev/packages/mono_repo - -stages: -- analyze_and_format: - - group: - - format - - analyze: --fatal-infos - sdk: dev - - group: - - analyze - sdk: pubspec -- unit_test: - - group: - - command: dart test - sdk: [dev, pubspec] diff --git a/pkgs/fake_async/pubspec.yaml b/pkgs/fake_async/pubspec.yaml index 28870a9ea..bdccf4ea8 100644 --- a/pkgs/fake_async/pubspec.yaml +++ b/pkgs/fake_async/pubspec.yaml @@ -4,6 +4,8 @@ description: >- Fake asynchronous events such as timers and microtasks for deterministic testing. repository: https://github.com/dart-lang/test/tree/master/pkgs/fake_async +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Afake_async + environment: sdk: ^3.3.0 diff --git a/pkgs/matcher/pubspec.yaml b/pkgs/matcher/pubspec.yaml index d29e1abf1..5351a0c02 100644 --- a/pkgs/matcher/pubspec.yaml +++ b/pkgs/matcher/pubspec.yaml @@ -4,6 +4,7 @@ description: >- Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. repository: https://github.com/dart-lang/test/tree/master/pkgs/matcher +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Amatcher environment: sdk: ^3.5.0 diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml index c9d2641ec..abe660056 100644 --- a/pkgs/test/pubspec.yaml +++ b/pkgs/test/pubspec.yaml @@ -3,6 +3,7 @@ version: 1.25.15-wip description: >- A full featured library for writing and running Dart tests across platforms. repository: https://github.com/dart-lang/test/tree/master/pkgs/test +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest resolution: workspace environment: diff --git a/pkgs/test_api/pubspec.yaml b/pkgs/test_api/pubspec.yaml index af5cb931d..09cdd39a8 100644 --- a/pkgs/test_api/pubspec.yaml +++ b/pkgs/test_api/pubspec.yaml @@ -3,6 +3,7 @@ version: 0.7.4 description: >- The user facing API for structuring Dart tests and checking expectations. repository: https://github.com/dart-lang/test/tree/master/pkgs/test_api +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest resolution: workspace environment: diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml index d08e24ca9..ab3f11c41 100644 --- a/pkgs/test_core/pubspec.yaml +++ b/pkgs/test_core/pubspec.yaml @@ -2,6 +2,7 @@ name: test_core version: 0.6.8 description: A basic library for writing tests and running them on the VM. repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest resolution: workspace environment: diff --git a/pkgs/test_descriptor/pubspec.yaml b/pkgs/test_descriptor/pubspec.yaml index d9a97ac91..13172d69f 100644 --- a/pkgs/test_descriptor/pubspec.yaml +++ b/pkgs/test_descriptor/pubspec.yaml @@ -2,6 +2,7 @@ name: test_descriptor version: 2.0.2 description: An API for defining and verifying files and directory structures. repository: https://github.com/dart-lang/test/tree/master/pkgs/test_descriptor +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_descriptor environment: sdk: ^3.1.0 diff --git a/pkgs/test_process/pubspec.yaml b/pkgs/test_process/pubspec.yaml index 60158d461..5643a9ced 100644 --- a/pkgs/test_process/pubspec.yaml +++ b/pkgs/test_process/pubspec.yaml @@ -1,8 +1,9 @@ name: test_process version: 2.1.1 -description: | - Test processes: starting; validating stdout and stderr; checking exit code +description: >- + Test processes: starting; validating stdout and stderr; checking exit code. repository: https://github.com/dart-lang/test/tree/master/pkgs/test_process +issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_process environment: sdk: ^3.1.0