diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index d0db67731..0d05c7557 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -126,16 +126,16 @@ jobs: if: "always() && steps.pkgs_test_core_pub_upgrade.conclusion == 'success'" working-directory: pkgs/test_core job_004: - name: "analyze_and_format; linux; Dart dev; PKGS: integration_tests/regression, integration_tests/spawn_hybrid, integration_tests/wasm, pkgs/checks, pkgs/test, pkgs/test_api, pkgs/test_core; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`" + name: "analyze_and_format; linux; Dart dev; PKGS: integration_tests/regression, integration_tests/spawn_hybrid, pkgs/checks, 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@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 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/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-pkgs/checks-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/test-pkgs/test_api-pkgs/test_core + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_tests/regression-integration_tests/spawn_hybrid-pkgs/checks-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 @@ -172,19 +172,6 @@ jobs: run: dart analyze --fatal-infos if: "always() && steps.integration_tests_spawn_hybrid_pub_upgrade.conclusion == 'success'" working-directory: integration_tests/spawn_hybrid - - id: integration_tests_wasm_pub_upgrade - name: integration_tests/wasm; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart analyze --fatal-infos" - run: dart analyze --fatal-infos - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - id: pkgs_checks_pub_upgrade name: pkgs/checks; dart pub upgrade run: dart pub upgrade @@ -238,54 +225,6 @@ jobs: if: "always() && steps.pkgs_test_core_pub_upgrade.conclusion == 'success'" working-directory: pkgs/test_core job_005: - name: "analyze_and_format; windows; Dart 3.5.0-311.0.dev; PKG: integration_tests/wasm; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`" - runs-on: windows-latest - steps: - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.5.0-311.0.dev" - - id: checkout - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - id: integration_tests_wasm_pub_upgrade - name: integration_tests/wasm; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart analyze --fatal-infos" - run: dart analyze --fatal-infos - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - 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: - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - id: integration_tests_wasm_pub_upgrade - name: integration_tests/wasm; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart analyze --fatal-infos" - run: dart analyze --fatal-infos - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - job_007: name: "unit_test; linux; Dart 3.5.0-311.0.dev; PKG: integration_tests/regression; `dart test`" runs-on: ubuntu-latest steps: @@ -320,9 +259,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_008: + job_006: name: "unit_test; linux; Dart 3.5.0-311.0.dev; PKG: pkgs/checks; `dart test`" runs-on: ubuntu-latest steps: @@ -357,9 +294,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_009: + job_007: name: "unit_test; linux; Dart 3.5.0-311.0.dev; PKG: pkgs/test_core; `dart test`" runs-on: ubuntu-latest steps: @@ -394,9 +329,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_010: + job_008: name: "unit_test; linux; Dart 3.5.0-311.0.dev; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: ubuntu-latest steps: @@ -431,9 +364,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_011: + job_009: name: "unit_test; linux; Dart 3.5.0-311.0.dev; PKG: integration_tests/wasm; `dart test --timeout=60s`" runs-on: ubuntu-latest steps: @@ -468,9 +399,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_012: + job_010: name: "unit_test; linux; Dart 3.5.0-311.0.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: @@ -505,9 +434,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_013: + job_011: name: "unit_test; linux; Dart 3.5.0-311.0.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: @@ -542,9 +469,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_014: + job_012: name: "unit_test; linux; Dart 3.5.0-311.0.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: @@ -579,9 +504,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_015: + job_013: name: "unit_test; linux; Dart 3.5.0-311.0.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: @@ -616,9 +539,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_016: + job_014: name: "unit_test; linux; Dart 3.5.0-311.0.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: @@ -653,9 +574,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_017: + job_015: name: "unit_test; linux; Dart 3.5.0-311.0.dev; PKG: pkgs/test_api; `dart test --preset travis -x browser`" runs-on: ubuntu-latest steps: @@ -690,9 +609,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_018: + job_016: name: "unit_test; linux; Dart dev; PKG: integration_tests/regression; `dart test`" runs-on: ubuntu-latest steps: @@ -727,9 +644,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_019: + job_017: name: "unit_test; linux; Dart dev; PKG: pkgs/checks; `dart test`" runs-on: ubuntu-latest steps: @@ -764,9 +679,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_020: + job_018: name: "unit_test; linux; Dart dev; PKG: pkgs/test_core; `dart test`" runs-on: ubuntu-latest steps: @@ -801,9 +714,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_021: + job_019: name: "unit_test; linux; Dart dev; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: ubuntu-latest steps: @@ -838,46 +749,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_022: - name: "unit_test; linux; Dart dev; PKG: integration_tests/wasm; `dart test --timeout=60s`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_tests/wasm;commands:test_2" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_tests/wasm - 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@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - id: integration_tests_wasm_pub_upgrade - name: integration_tests/wasm; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart test --timeout=60s" - run: "dart test --timeout=60s" - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - job_023: + job_020: 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: @@ -912,9 +784,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_024: + job_021: 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: @@ -949,9 +819,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_025: + job_022: 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: @@ -986,9 +854,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_026: + job_023: 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: @@ -1023,9 +889,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_027: + job_024: 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: @@ -1060,9 +924,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_028: + job_025: name: "unit_test; linux; Dart dev; PKG: pkgs/test_api; `dart test --preset travis -x browser`" runs-on: ubuntu-latest steps: @@ -1097,9 +959,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_029: + job_026: name: "unit_test; osx; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 0`" runs-on: macos-latest steps: @@ -1134,9 +994,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_030: + job_027: name: "unit_test; osx; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 1`" runs-on: macos-latest steps: @@ -1171,9 +1029,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_031: + job_028: name: "unit_test; osx; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 2`" runs-on: macos-latest steps: @@ -1208,9 +1064,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_032: + job_029: name: "unit_test; osx; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 3`" runs-on: macos-latest steps: @@ -1245,9 +1099,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_033: + job_030: name: "unit_test; osx; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 4`" runs-on: macos-latest steps: @@ -1282,9 +1134,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_034: + job_031: name: "unit_test; windows; Dart 3.5.0-311.0.dev; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: windows-latest steps: @@ -1309,36 +1159,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_035: - name: "unit_test; windows; Dart 3.5.0-311.0.dev; PKG: integration_tests/wasm; `dart test --timeout=60s`" - runs-on: windows-latest - steps: - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.5.0-311.0.dev" - - id: checkout - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - id: integration_tests_wasm_pub_upgrade - name: integration_tests/wasm; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart test --timeout=60s" - run: "dart test --timeout=60s" - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - job_036: + job_032: name: "unit_test; windows; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 0`" runs-on: windows-latest steps: @@ -1363,9 +1184,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_037: + job_033: name: "unit_test; windows; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 1`" runs-on: windows-latest steps: @@ -1390,9 +1209,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_038: + job_034: name: "unit_test; windows; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 2`" runs-on: windows-latest steps: @@ -1417,9 +1234,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_039: + job_035: name: "unit_test; windows; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 3`" runs-on: windows-latest steps: @@ -1444,9 +1259,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_040: + job_036: name: "unit_test; windows; Dart 3.5.0-311.0.dev; PKG: pkgs/test; `dart test --preset travis --total-shards 5 --shard-index 4`" runs-on: windows-latest steps: @@ -1471,9 +1284,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_041: + job_037: name: "unit_test; windows; Dart dev; PKG: integration_tests/spawn_hybrid; `dart test -p chrome,vm,node`" runs-on: windows-latest steps: @@ -1498,36 +1309,7 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - job_042: - name: "unit_test; windows; Dart dev; PKG: integration_tests/wasm; `dart test --timeout=60s`" - runs-on: windows-latest - steps: - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - id: integration_tests_wasm_pub_upgrade - name: integration_tests/wasm; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: integration_tests/wasm - - name: "integration_tests/wasm; dart test --timeout=60s" - run: "dart test --timeout=60s" - if: "always() && steps.integration_tests_wasm_pub_upgrade.conclusion == 'success'" - working-directory: integration_tests/wasm - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - job_043: + job_038: name: Notify failure runs-on: ubuntu-latest if: "(github.event_name == 'push' || github.event_name == 'schedule') && failure()" @@ -1576,8 +1358,3 @@ jobs: - job_035 - job_036 - job_037 - - job_038 - - job_039 - - job_040 - - job_041 - - job_042 diff --git a/integration_tests/regression/lib/issue_2142/test.dart b/integration_tests/regression/lib/issue_2142/test.dart index 06afc5adc..12280b111 100644 --- a/integration_tests/regression/lib/issue_2142/test.dart +++ b/integration_tests/regression/lib/issue_2142/test.dart @@ -2,6 +2,10 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// TODO(https://github.com/dart-lang/test/issues/1790) - unskip +@TestOn('!wasm') +library; + import 'package:test/test.dart'; import 'import.dart'; diff --git a/integration_tests/wasm/dart_test.yaml b/integration_tests/wasm/dart_test.yaml index 14308c465..0ab5b0811 100644 --- a/integration_tests/wasm/dart_test.yaml +++ b/integration_tests/wasm/dart_test.yaml @@ -1,5 +1,9 @@ -platforms: [chrome, firefox] -# Node doesn't work because the version available in the current Ubuntu GitHub runners is too -# old to support WASM+GC, which would be required to run Dart tests. -#platforms: [chrome, firefox, node] -compilers: [dart2wasm] +platforms: +# TODO(https://github.com/dart-lang/test/issues/1790) - unskip +# - chrome +- firefox +# Node doesn't work because the version available in the current Ubuntu GitHub +# runners is too old to support WASM+GC, which would be required to run Dart +# tests. +# - node +compilers: [dart2wasm, dart2js] diff --git a/integration_tests/wasm/mono_pkg.yaml b/integration_tests/wasm/mono_pkg.yaml index a8f341085..496a903d2 100644 --- a/integration_tests/wasm/mono_pkg.yaml +++ b/integration_tests/wasm/mono_pkg.yaml @@ -2,11 +2,13 @@ sdk: - pubspec -- dev +# TODO(https://github.com/dart-lang/test/issues/1790) - unskip +# - dev os: - linux -- windows +# TODO(https://github.com/dart-lang/test/issues/1790) - unskip +# - windows stages: - analyze_and_format: diff --git a/integration_tests/wasm/test/hello_world_test.dart b/integration_tests/wasm/test/hello_world_test.dart index 9ddd5116b..6c3c5e6ef 100644 --- a/integration_tests/wasm/test/hello_world_test.dart +++ b/integration_tests/wasm/test/hello_world_test.dart @@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -@TestOn('wasm') // This retry is a regression test for https://github.com/dart-lang/test/issues/2006 @Retry(2) library;