diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index f5dd9565e..493038cfa 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -1,4 +1,4 @@ -# Created with package:mono_repo v6.3.0 +# Created with package:mono_repo v6.4.2 name: Dart CI on: push: @@ -22,20 +22,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable" restore-keys: | os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - name: mono_repo self validate - run: dart pub global activate mono_repo 6.3.0 + run: dart pub global activate mono_repo 6.4.2 - name: mono_repo self validate run: dart pub global run mono_repo generate --validate job_002: @@ -43,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds;commands:format-analyze_0-test_0" @@ -52,34 +54,36 @@ jobs: os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds - run: dart pub upgrade - name: "dwds; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: "dart format --output=none --set-exit-if-changed ." - name: "dwds; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart analyze --fatal-infos . - name: dwds; dart test test/build/ensure_version_test.dart + run: dart test test/build/ensure_version_test.dart if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test test/build/ensure_version_test.dart job_003: name: "analyzer_and_format; linux; Dart dev; PKGS: example, fixtures/_webdevSmoke, frontend_server_client, frontend_server_common; `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@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:example-fixtures/_webdevSmoke-frontend_server_client-frontend_server_common;commands:format-analyze_0" @@ -88,105 +92,109 @@ jobs: os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: example_pub_upgrade name: example; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: example - run: dart pub upgrade - name: "example; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." if: "always() && steps.example_pub_upgrade.conclusion == 'success'" working-directory: example - run: "dart format --output=none --set-exit-if-changed ." - name: "example; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.example_pub_upgrade.conclusion == 'success'" working-directory: example - run: dart analyze --fatal-infos . - id: fixtures__webdevSmoke_pub_upgrade name: fixtures/_webdevSmoke; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: fixtures/_webdevSmoke - run: dart pub upgrade - name: "fixtures/_webdevSmoke; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." if: "always() && steps.fixtures__webdevSmoke_pub_upgrade.conclusion == 'success'" working-directory: fixtures/_webdevSmoke - run: "dart format --output=none --set-exit-if-changed ." - name: "fixtures/_webdevSmoke; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.fixtures__webdevSmoke_pub_upgrade.conclusion == 'success'" working-directory: fixtures/_webdevSmoke - run: dart analyze --fatal-infos . - id: frontend_server_client_pub_upgrade name: frontend_server_client; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: frontend_server_client - run: dart pub upgrade - name: "frontend_server_client; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." if: "always() && steps.frontend_server_client_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_client - run: "dart format --output=none --set-exit-if-changed ." - name: "frontend_server_client; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.frontend_server_client_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_client - run: dart analyze --fatal-infos . - id: frontend_server_common_pub_upgrade name: frontend_server_common; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: frontend_server_common - run: dart pub upgrade - name: "frontend_server_common; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." if: "always() && steps.frontend_server_common_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_common - run: "dart format --output=none --set-exit-if-changed ." - name: "frontend_server_common; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.frontend_server_common_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_common - run: dart analyze --fatal-infos . job_004: name: "analyzer_and_format; linux; Dart dev; PKG: webdev; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`, `dart test test/build/ensure_build_test.dart`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:webdev;commands:format-analyze_0-test_4" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:webdev;commands:format-analyze_0-test_7" restore-keys: | os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:webdev os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: "webdev; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: "dart format --output=none --set-exit-if-changed ." - name: "webdev; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart analyze --fatal-infos . - name: webdev; dart test test/build/ensure_build_test.dart + run: dart test test/build/ensure_build_test.dart if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test test/build/ensure_build_test.dart job_005: name: "analyzer_and_format; linux; Dart stable; PKGS: dwds, webdev; `dart analyze .`, `dart test test/build/min_sdk_test.dart --run-skipped`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds-webdev;commands:analyze_1-test_1" @@ -195,43 +203,45 @@ jobs: os:ubuntu-latest;pub-cache-hosted;sdk:stable os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds - run: dart pub upgrade - name: dwds; dart analyze . + run: dart analyze . if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart analyze . - name: "dwds; dart test test/build/min_sdk_test.dart --run-skipped" + run: dart test test/build/min_sdk_test.dart --run-skipped if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test test/build/min_sdk_test.dart --run-skipped - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: webdev; dart analyze . + run: dart analyze . if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart analyze . - name: "webdev; dart test test/build/min_sdk_test.dart --run-skipped" + run: dart test test/build/min_sdk_test.dart --run-skipped if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test test/build/min_sdk_test.dart --run-skipped job_006: - name: "unit_test; linux; Dart dev; PKG: dwds; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test`" + name: "unit_test; linux; Dart dev; PKG: dwds; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test --tags=extension`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds;commands:command-test_2" @@ -240,24 +250,26 @@ jobs: os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds - run: dart pub upgrade - name: "dwds; Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" + run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" - - name: dwds; dart test + - name: "dwds; dart test --tags=extension" + run: "dart test --tags=extension" if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test needs: - job_001 - job_002 @@ -265,83 +277,195 @@ jobs: - job_004 - job_005 job_007: + name: "unit_test; linux; Dart dev; PKG: dwds; `dart test --total-shards 3 --shard-index 0 --exclude-tags=extension`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds;commands:test_3" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds + 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@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: dev + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_008: + name: "unit_test; linux; Dart dev; PKG: dwds; `dart test --total-shards 3 --shard-index 1 --exclude-tags=extension`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds;commands:test_4" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds + 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@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: dev + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_009: + name: "unit_test; linux; Dart dev; PKG: dwds; `dart test --total-shards 3 --shard-index 2 --exclude-tags=extension`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds;commands:test_5" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dwds + 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@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: dev + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_010: name: "unit_test; linux; Dart dev; PKG: frontend_server_client; `dart test -j 1`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:frontend_server_client;commands:test_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:frontend_server_client;commands:test_6" restore-keys: | os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:frontend_server_client os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: frontend_server_client_pub_upgrade name: frontend_server_client; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: frontend_server_client - run: dart pub upgrade - name: "frontend_server_client; dart test -j 1" + run: dart test -j 1 if: "always() && steps.frontend_server_client_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_client - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_008: + job_011: name: "unit_test; linux; Dart dev; PKG: webdev; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test -j 1`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:webdev;commands:command-test_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:webdev;commands:command-test_6" restore-keys: | os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:webdev os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: "webdev; Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" + run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" - name: "webdev; dart test -j 1" + run: dart test -j 1 if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_009: - name: "unit_test; linux; Dart stable; PKG: dwds; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test`" + job_012: + name: "unit_test; linux; Dart stable; PKG: dwds; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test --tags=extension`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds;commands:command-test_2" @@ -350,279 +474,563 @@ jobs: os:ubuntu-latest;pub-cache-hosted;sdk:stable os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds - run: dart pub upgrade - name: "dwds; Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" + run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" - - name: dwds; dart test + - name: "dwds; dart test --tags=extension" + run: "dart test --tags=extension" if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_010: + job_013: + name: "unit_test; linux; Dart stable; PKG: dwds; `dart test --total-shards 3 --shard-index 0 --exclude-tags=extension`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds;commands:test_3" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds + os:ubuntu-latest;pub-cache-hosted;sdk:stable + os:ubuntu-latest;pub-cache-hosted + os:ubuntu-latest + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: stable + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_014: + name: "unit_test; linux; Dart stable; PKG: dwds; `dart test --total-shards 3 --shard-index 1 --exclude-tags=extension`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds;commands:test_4" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds + os:ubuntu-latest;pub-cache-hosted;sdk:stable + os:ubuntu-latest;pub-cache-hosted + os:ubuntu-latest + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: stable + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_015: + name: "unit_test; linux; Dart stable; PKG: dwds; `dart test --total-shards 3 --shard-index 2 --exclude-tags=extension`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds;commands:test_5" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:dwds + os:ubuntu-latest;pub-cache-hosted;sdk:stable + os:ubuntu-latest;pub-cache-hosted + os:ubuntu-latest + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: stable + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_016: name: "unit_test; linux; Dart stable; PKG: frontend_server_client; `dart test -j 1`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:frontend_server_client;commands:test_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:frontend_server_client;commands:test_6" restore-keys: | os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:frontend_server_client os:ubuntu-latest;pub-cache-hosted;sdk:stable os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: frontend_server_client_pub_upgrade name: frontend_server_client; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: frontend_server_client - run: dart pub upgrade - name: "frontend_server_client; dart test -j 1" + run: dart test -j 1 if: "always() && steps.frontend_server_client_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_client - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_011: + job_017: name: "unit_test; linux; Dart stable; PKG: webdev; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test -j 1`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:webdev;commands:command-test_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:webdev;commands:command-test_6" restore-keys: | os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:webdev os:ubuntu-latest;pub-cache-hosted;sdk:stable os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: "webdev; Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" + run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" - name: "webdev; dart test -j 1" + run: dart test -j 1 if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_012: - name: "unit_test; windows; Dart dev; PKG: dwds; `dart test`" + job_018: + name: "unit_test; windows; Dart dev; PKG: dwds; `dart test --tags=extension`" runs-on: windows-latest steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds + - name: "dwds; dart test --tags=extension" + run: "dart test --tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_019: + name: "unit_test; windows; Dart dev; PKG: dwds; `dart test --total-shards 3 --shard-index 0 --exclude-tags=extension`" + runs-on: windows-latest + steps: + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: dev + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade run: dart pub upgrade - - name: dwds; dart test + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_013: + job_020: + name: "unit_test; windows; Dart dev; PKG: dwds; `dart test --total-shards 3 --shard-index 1 --exclude-tags=extension`" + runs-on: windows-latest + steps: + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: dev + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_021: + name: "unit_test; windows; Dart dev; PKG: dwds; `dart test --total-shards 3 --shard-index 2 --exclude-tags=extension`" + runs-on: windows-latest + steps: + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: dev + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_022: name: "unit_test; windows; Dart dev; PKG: frontend_server_client; `dart test -j 1`" runs-on: windows-latest steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: frontend_server_client_pub_upgrade name: frontend_server_client; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: frontend_server_client - run: dart pub upgrade - name: "frontend_server_client; dart test -j 1" + run: dart test -j 1 if: "always() && steps.frontend_server_client_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_client - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_014: + job_023: name: "unit_test; windows; Dart dev; PKG: webdev; `dart test -j 1`" runs-on: windows-latest steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: dev - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: "webdev; dart test -j 1" + run: dart test -j 1 if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_015: - name: "unit_test; windows; Dart stable; PKG: dwds; `dart test`" + job_024: + name: "unit_test; windows; Dart stable; PKG: dwds; `dart test --tags=extension`" runs-on: windows-latest steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds + - name: "dwds; dart test --tags=extension" + run: "dart test --tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_025: + name: "unit_test; windows; Dart stable; PKG: dwds; `dart test --total-shards 3 --shard-index 0 --exclude-tags=extension`" + runs-on: windows-latest + steps: + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: stable + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade run: dart pub upgrade - - name: dwds; dart test + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 0 --exclude-tags=extension" if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_016: + job_026: + name: "unit_test; windows; Dart stable; PKG: dwds; `dart test --total-shards 3 --shard-index 1 --exclude-tags=extension`" + runs-on: windows-latest + steps: + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: stable + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 1 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_027: + name: "unit_test; windows; Dart stable; PKG: dwds; `dart test --total-shards 3 --shard-index 2 --exclude-tags=extension`" + runs-on: windows-latest + steps: + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + with: + sdk: stable + - id: checkout + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - id: dwds_pub_upgrade + name: dwds; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: dwds + - name: "dwds; dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + run: "dart test --total-shards 3 --shard-index 2 --exclude-tags=extension" + if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" + working-directory: dwds + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_028: name: "unit_test; windows; Dart stable; PKG: frontend_server_client; `dart test -j 1`" runs-on: windows-latest steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: frontend_server_client_pub_upgrade name: frontend_server_client; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: frontend_server_client - run: dart pub upgrade - name: "frontend_server_client; dart test -j 1" + run: dart test -j 1 if: "always() && steps.frontend_server_client_pub_upgrade.conclusion == 'success'" working-directory: frontend_server_client - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_017: + job_029: name: "unit_test; windows; Dart stable; PKG: webdev; `dart test -j 1`" runs-on: windows-latest steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: stable - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: "webdev; dart test -j 1" + run: dart test -j 1 if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test -j 1 needs: - job_001 - job_002 - job_003 - job_004 - job_005 - job_018: + job_030: name: "beta_cron; linux; Dart beta; PKG: dwds; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test -j 1`" runs-on: ubuntu-latest + if: "github.event_name == 'schedule'" steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:dwds;commands:command-test_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:dwds;commands:command-test_6" restore-keys: | os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:dwds os:ubuntu-latest;pub-cache-hosted;sdk:beta os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: beta - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds - run: dart pub upgrade - name: "dwds; Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" + run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" - name: "dwds; dart test -j 1" + run: dart test -j 1 if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test -j 1 - if: "github.event_name == 'schedule'" needs: - job_001 - job_002 @@ -641,39 +1049,53 @@ jobs: - job_015 - job_016 - job_017 - job_019: + - job_018 + - job_019 + - job_020 + - job_021 + - job_022 + - job_023 + - job_024 + - job_025 + - job_026 + - job_027 + - job_028 + - job_029 + job_031: name: "beta_cron; linux; Dart beta; PKG: webdev; `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &`, `dart test -j 1`" runs-on: ubuntu-latest + if: "github.event_name == 'schedule'" steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:webdev;commands:command-test_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:webdev;commands:command-test_6" restore-keys: | os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:webdev os:ubuntu-latest;pub-cache-hosted;sdk:beta os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: beta - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: "webdev; Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" + run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &" - name: "webdev; dart test -j 1" + run: dart test -j 1 if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test -j 1 - if: "github.event_name == 'schedule'" needs: - job_001 - job_002 @@ -692,12 +1114,25 @@ jobs: - job_015 - job_016 - job_017 - job_020: + - job_018 + - job_019 + - job_020 + - job_021 + - job_022 + - job_023 + - job_024 + - job_025 + - job_026 + - job_027 + - job_028 + - job_029 + job_032: name: "beta_cron; linux; Dart beta; PKG: dwds; `dart analyze .`" runs-on: ubuntu-latest + if: "github.event_name == 'schedule'" steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:dwds;commands:analyze_1" @@ -706,21 +1141,22 @@ jobs: os:ubuntu-latest;pub-cache-hosted;sdk:beta os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: beta - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds - run: dart pub upgrade - name: dwds; dart analyze . + run: dart analyze . if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart analyze . - if: "github.event_name == 'schedule'" needs: - job_001 - job_002 @@ -739,12 +1175,25 @@ jobs: - job_015 - job_016 - job_017 - job_021: + - job_018 + - job_019 + - job_020 + - job_021 + - job_022 + - job_023 + - job_024 + - job_025 + - job_026 + - job_027 + - job_028 + - job_029 + job_033: name: "beta_cron; linux; Dart beta; PKG: webdev; `dart analyze .`" runs-on: ubuntu-latest + if: "github.event_name == 'schedule'" steps: - name: Cache Pub hosted dependencies - uses: actions/cache@4504faf7e9bcf8f3ed0bc863c4e1d21499ab8ef8 + uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:beta;packages:webdev;commands:analyze_1" @@ -753,21 +1202,22 @@ jobs: os:ubuntu-latest;pub-cache-hosted;sdk:beta os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: beta - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: webdev; dart analyze . + run: dart analyze . if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart analyze . - if: "github.event_name == 'schedule'" needs: - job_001 - job_002 @@ -786,25 +1236,39 @@ jobs: - job_015 - job_016 - job_017 - job_022: + - job_018 + - job_019 + - job_020 + - job_021 + - job_022 + - job_023 + - job_024 + - job_025 + - job_026 + - job_027 + - job_028 + - job_029 + job_034: name: "beta_cron; windows; Dart beta; PKG: dwds; `dart test -j 1`" runs-on: windows-latest + if: "github.event_name == 'schedule'" steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: beta - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: dwds_pub_upgrade name: dwds; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: dwds - run: dart pub upgrade - name: "dwds; dart test -j 1" + run: dart test -j 1 if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'" working-directory: dwds - run: dart test -j 1 - if: "github.event_name == 'schedule'" needs: - job_001 - job_002 @@ -823,25 +1287,39 @@ jobs: - job_015 - job_016 - job_017 - job_023: + - job_018 + - job_019 + - job_020 + - job_021 + - job_022 + - job_023 + - job_024 + - job_025 + - job_026 + - job_027 + - job_028 + - job_029 + job_035: name: "beta_cron; windows; Dart beta; PKG: webdev; `dart test -j 1`" runs-on: windows-latest + if: "github.event_name == 'schedule'" steps: - - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d + - name: Setup Dart SDK + uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: beta - id: checkout - uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 + name: Checkout repository + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - id: webdev_pub_upgrade name: webdev; dart pub upgrade + run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: webdev - run: dart pub upgrade - name: "webdev; dart test -j 1" + run: dart test -j 1 if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" working-directory: webdev - run: dart test -j 1 - if: "github.event_name == 'schedule'" needs: - job_001 - job_002 @@ -860,7 +1338,19 @@ jobs: - job_015 - job_016 - job_017 - job_024: + - job_018 + - job_019 + - job_020 + - job_021 + - job_022 + - job_023 + - job_024 + - job_025 + - job_026 + - job_027 + - job_028 + - job_029 + job_036: name: Notify failure runs-on: ubuntu-latest if: "(github.event_name == 'push' || github.event_name == 'schedule') && failure()" @@ -895,3 +1385,15 @@ jobs: - job_021 - job_022 - job_023 + - job_024 + - job_025 + - job_026 + - job_027 + - job_028 + - job_029 + - job_030 + - job_031 + - job_032 + - job_033 + - job_034 + - job_035 diff --git a/dwds/mono_pkg.yaml b/dwds/mono_pkg.yaml index 5e2ccaf7f..b855e35f3 100644 --- a/dwds/mono_pkg.yaml +++ b/dwds/mono_pkg.yaml @@ -11,17 +11,52 @@ stages: - test: test/build/min_sdk_test.dart --run-skipped sdk: stable - unit_test: + # Linux extension tests: + # Note: `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &` must be + # run first for Linux. - group: - command: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - - test: + - test: --tags=extension sdk: - dev - stable - - test: - os: windows + os: + - linux + # Windows extension tests: + - group: + - test: --tags=extension + sdk: + - dev + - stable + os: + - windows + # First test shard: + - group: + - test: --total-shards 3 --shard-index 0 --exclude-tags=extension + sdk: + - dev + - stable + os: + - linux + - windows + # Second test shard: + - group: + - test: --total-shards 3 --shard-index 1 --exclude-tags=extension + sdk: + - dev + - stable + os: + - linux + - windows + # Third test shard: + - group: + - test: --total-shards 3 --shard-index 2 --exclude-tags=extension sdk: - dev - stable + os: + - linux + - windows - beta_cron: - analyze: . sdk: beta diff --git a/dwds/test/dart_uri_file_uri_test.dart b/dwds/test/dart_uri_file_uri_test.dart index 6b8e1cde4..7939de197 100644 --- a/dwds/test/dart_uri_file_uri_test.dart +++ b/dwds/test/dart_uri_file_uri_test.dart @@ -3,13 +3,13 @@ // BSD-style license that can be found in the LICENSE file. @TestOn('vm') -import 'dart:io'; import 'package:dwds/src/utilities/dart_uri.dart'; import 'package:path/path.dart' as p; import 'package:test/test.dart'; import 'fixtures/context.dart'; +import 'fixtures/utilities.dart'; import 'utils/version_compatibility.dart'; final context = TestContext( @@ -20,17 +20,13 @@ final context = TestContext( nullSafety: NullSafety.weak, ); -final dwdsDir = Directory.current.absolute.path; - /// The directory for the general _test package. -final testDir = p.normalize(p.absolute(p.relative( - p.join('..', 'fixtures', '_test'), - from: p.current, -))); +final testDir = absolutePath(pathFromDwds: p.join('..', 'fixtures', '_test')); /// The directory for the _testPackage package (contained within dwds), which /// imports _test. -final testPackageDir = context.workingDirectory; +final testPackageDir = + absolutePath(pathFromDwds: p.join('..', 'fixtures', '_testPackage')); // This tests converting file Uris into our internal paths. // diff --git a/dwds/test/fixtures/context.dart b/dwds/test/fixtures/context.dart index ac53f26ae..8a729dfce 100644 --- a/dwds/test/fixtures/context.dart +++ b/dwds/test/fixtures/context.dart @@ -114,8 +114,6 @@ class TestContext { NullSafety nullSafety; - late String dwdsDirectory; - TestContext({ String? directory, String? entry, @@ -124,18 +122,15 @@ class TestContext { this.pathToServe = 'example', }) { final pathParts = p.split(p.current); - assert(pathParts.contains('dwds')); - dwdsDirectory = p.joinAll( - pathParts.sublist(0, pathParts.indexOf('dwds') + 1), - ); + assert(pathParts.contains('webdev')); final defaultPackage = nullSafety == NullSafety.sound ? '_testSound' : '_test'; final defaultDirectory = p.join('..', 'fixtures', defaultPackage); final defaultEntry = p.join('..', 'fixtures', defaultPackage, 'example', 'append_body', 'main.dart'); - workingDirectory = p.normalize(p.absolute( - p.relative(directory ?? defaultDirectory, from: dwdsDirectory))); + workingDirectory = + absolutePath(pathFromDwds: directory ?? defaultDirectory); DartUri.currentDirectory = workingDirectory; @@ -144,8 +139,7 @@ class TestContext { _packageConfigFile = p.toUri(p.join(workingDirectory, '.dart_tool/package_config.json')); - final entryFilePath = p.normalize( - p.absolute(p.relative(entry ?? defaultEntry, from: dwdsDirectory))); + final entryFilePath = absolutePath(pathFromDwds: entry ?? defaultEntry); _logger.info('Serving: $pathToServe/$path'); _logger.info('Project: $_projectDirectory'); @@ -430,12 +424,6 @@ class TestContext { } } - String absoluteDwdsPath(String relativePath) => - p.normalize(p.absolute(p.relative( - relativePath, - from: dwdsDirectory, - ))); - Future startDebugging() async { debugConnection = await testServer.dwds.debugConnection(appConnection); _webkitDebugger = WebkitDebugger(WipDebugger(tabConnection)); @@ -482,16 +470,8 @@ class TestContext { } Future _buildDebugExtension() async { - final currentDir = Directory.current.path; - if (!currentDir.endsWith('dwds')) { - throw StateError( - 'Expected to be in /dwds directory, instead path was $currentDir.'); - } - final process = await Process.run( - 'tool/build_extension.sh', - ['prod'], - workingDirectory: '$currentDir/debug_extension', - ); + final process = await Process.run('tool/build_extension.sh', ['prod'], + workingDirectory: absolutePath(pathFromDwds: 'debug_extension')); print(process.stdout); } diff --git a/dwds/test/fixtures/utilities.dart b/dwds/test/fixtures/utilities.dart index 8d0857338..2f1366a23 100644 --- a/dwds/test/fixtures/utilities.dart +++ b/dwds/test/fixtures/utilities.dart @@ -9,6 +9,29 @@ import 'package:build_daemon/constants.dart'; import 'package:build_daemon/data/server_log.dart'; import 'package:path/path.dart' as p; +const webdevDirName = 'webdev'; +const dwdsDirName = 'dwds'; + +/// The path to the DWDS directory in the local machine, e.g. +/// "/workstation/webdev/dwds". +String get dwdsPath { + final pathParts = p.split(p.current); + // We expect all tests to be run from the webdev mono-repo: + assert(pathParts.contains(webdevDirName)); + return p.joinAll( + [ + ...pathParts.sublist(0, pathParts.lastIndexOf(webdevDirName) + 1), + dwdsDirName, + ], + ); +} + +/// Given a [pathFromDwds], e.g. '../fixtures/_test', returns its absolute +/// path, e.g. '/workstation/webdev/fixtures/_test'. +String absolutePath({required String pathFromDwds}) => p.normalize( + p.join(dwdsPath, pathFromDwds), + ); + /// Connects to the `build_runner` daemon. Future connectClient(String workingDirectory, List options, Function(ServerLog) logHandler) => diff --git a/dwds/test/package_uri_mapper_test.dart b/dwds/test/package_uri_mapper_test.dart index 42ce75a73..5622f8f32 100644 --- a/dwds/test/package_uri_mapper_test.dart +++ b/dwds/test/package_uri_mapper_test.dart @@ -11,9 +11,7 @@ import 'package:file/local.dart'; import 'package:path/path.dart' as p; import 'package:test/test.dart'; -import 'fixtures/context.dart'; - -final testContext = TestContext(); +import 'fixtures/utilities.dart'; void main() { for (final useDebuggerModuleNames in [true, false]) { @@ -32,7 +30,8 @@ void main() { final resolvedPath = '/webdev/fixtures/_testPackageSound/lib/test_library.dart'; - final testPackageSoundPath = testContext.absoluteDwdsPath(p.join( + final testPackageSoundPath = absolutePath( + pathFromDwds: p.join( '..', 'fixtures', '_testPackageSound', diff --git a/dwds/test/readers/frontend_server_asset_reader_test.dart b/dwds/test/readers/frontend_server_asset_reader_test.dart index e5799b2bd..c083808a0 100644 --- a/dwds/test/readers/frontend_server_asset_reader_test.dart +++ b/dwds/test/readers/frontend_server_asset_reader_test.dart @@ -13,7 +13,11 @@ import '../fixtures/context.dart'; import '../fixtures/utilities.dart'; import '../utils/version_compatibility.dart'; -final packagesDir = p.relative('../fixtures/_test', from: p.current); +final packagesDir = absolutePath( + pathFromDwds: p.join('..', 'fixtures', '_test'), +); + +final fixturesDir = absolutePath(pathFromDwds: p.join('test', 'fixtures')); void main() { late FrontendServerAssetReader assetReader; @@ -22,12 +26,11 @@ void main() { late File mapOriginal; Future createTempFixtures() async { - final fixtures = p.join('test', 'fixtures'); tempFixtures = await Directory.systemTemp.createTemp('dwds_test_fixtures'); await tempFixtures.create(); - jsonOriginal = await File(p.join(fixtures, 'main.dart.dill.json')) + jsonOriginal = await File(p.join(fixturesDir, 'main.dart.dill.json')) .copy(p.join(tempFixtures.path, 'main.dart.dill.json')); - mapOriginal = await File(p.join(fixtures, 'main.dart.dill.map')) + mapOriginal = await File(p.join(fixturesDir, 'main.dart.dill.map')) .copy(p.join(tempFixtures.path, 'main.dart.dill.map')); } diff --git a/tool/ci.sh b/tool/ci.sh index bb144cd12..a881ab9c0 100755 --- a/tool/ci.sh +++ b/tool/ci.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Created with package:mono_repo v6.3.0 +# Created with package:mono_repo v6.4.2 # Support built in commands on windows out of the box. # When it is a flutter repo (check the pubspec.yaml for "sdk: flutter") @@ -92,14 +92,26 @@ for PKG in ${PKGS}; do dart test test/build/min_sdk_test.dart --run-skipped || EXIT_CODE=$? ;; test_2) - echo 'dart test' - dart test || EXIT_CODE=$? + echo 'dart test --tags=extension' + dart test --tags=extension || EXIT_CODE=$? ;; test_3) + echo 'dart test --total-shards 3 --shard-index 0 --exclude-tags=extension' + dart test --total-shards 3 --shard-index 0 --exclude-tags=extension || EXIT_CODE=$? + ;; + test_4) + echo 'dart test --total-shards 3 --shard-index 1 --exclude-tags=extension' + dart test --total-shards 3 --shard-index 1 --exclude-tags=extension || EXIT_CODE=$? + ;; + test_5) + echo 'dart test --total-shards 3 --shard-index 2 --exclude-tags=extension' + dart test --total-shards 3 --shard-index 2 --exclude-tags=extension || EXIT_CODE=$? + ;; + test_6) echo 'dart test -j 1' dart test -j 1 || EXIT_CODE=$? ;; - test_4) + test_7) echo 'dart test test/build/ensure_build_test.dart' dart test test/build/ensure_build_test.dart || EXIT_CODE=$? ;;