Remove WEB_SHARD_COUNT
, which no longer exists post-Cirrus. (#161527)
Towards https://github.com/flutter/flutter/issues/161387.
This commit is contained in:
parent
432843a0f3
commit
607c79cdfd
@ -82,19 +82,14 @@ class WebTestsSuite {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The number of Cirrus jobs that run Web tests in parallel.
|
/// The number of jobs that run Web tests in parallel.
|
||||||
///
|
///
|
||||||
/// The default is 8 shards. Typically .cirrus.yml would define the
|
/// This used to use the `WEB_SHARD_COUNT` environment variable, but that
|
||||||
/// WEB_SHARD_COUNT environment variable rather than relying on the default.
|
/// was never re-added in the migration to LUCI, so instead the count is
|
||||||
///
|
/// hardcoded below.
|
||||||
/// WARNING: if you change this number, also change .cirrus.yml
|
|
||||||
/// and make sure it runs _all_ shards.
|
|
||||||
///
|
///
|
||||||
/// The last shard also runs the Web plugin tests.
|
/// The last shard also runs the Web plugin tests.
|
||||||
int get webShardCount =>
|
int get webShardCount => 8;
|
||||||
Platform.environment.containsKey('WEB_SHARD_COUNT')
|
|
||||||
? int.parse(Platform.environment['WEB_SHARD_COUNT']!)
|
|
||||||
: 8;
|
|
||||||
|
|
||||||
static const List<String> _kAllBuildModes = <String>['debug', 'profile', 'release'];
|
static const List<String> _kAllBuildModes = <String>['debug', 'profile', 'release'];
|
||||||
|
|
||||||
@ -696,7 +691,7 @@ class WebTestsSuite {
|
|||||||
// The last shard also runs the flutter_web_plugins tests.
|
// The last shard also runs the flutter_web_plugins tests.
|
||||||
//
|
//
|
||||||
// We make sure the last shard ends in _last so it's easier to catch mismatches
|
// We make sure the last shard ends in _last so it's easier to catch mismatches
|
||||||
// between `.cirrus.yml` and `test.dart`.
|
// between `.ci.yaml` and `test.dart`.
|
||||||
subshards['${webShardCount - 1}_last'] = () async {
|
subshards['${webShardCount - 1}_last'] = () async {
|
||||||
await _runFlutterWebTest(
|
await _runFlutterWebTest(
|
||||||
webRenderer,
|
webRenderer,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user