tauto/tast: Apply sharding for crosbolt-perbuild.
Replaced control.crosbolt-perbuild with three control files in order to
use sharding.
BUG=b:186625817
TEST=test_that --board=nami DUT tast.crosbolt-perbuild-shard-0 && \
test_that --board=nami DUT tast.crosbolt-perbuild-shard-1 && \
test_that --board=nami DUT tast.crosbolt-perbuild-shard-2
Change-Id: I726c786fd2b3861c586a18ac6100adff7280d6ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2891475
Tested-by: Michael Pishchagin <mblsha@google.com>
Auto-Submit: Michael Pishchagin <mblsha@google.com>
Reviewed-by: Seewai Fu <seewaifu@google.com>
Commit-Queue: Seewai Fu <seewaifu@google.com>
diff --git a/server/site_tests/tast/control.crosbolt-perbuild b/server/site_tests/tast/control.crosbolt-perbuild-shard-0
similarity index 92%
copy from server/site_tests/tast/control.crosbolt-perbuild
copy to server/site_tests/tast/control.crosbolt-perbuild-shard-0
index 04600b6..0e8e86e 100644
--- a/server/site_tests/tast/control.crosbolt-perbuild
+++ b/server/site_tests/tast/control.crosbolt-perbuild-shard-0
@@ -3,7 +3,7 @@
# found in the LICENSE file.
AUTHOR = 'Chromium OS team'
-NAME = 'tast.crosbolt-perbuild'
+NAME = 'tast.crosbolt-perbuild-shard-0'
TIME = 'MEDIUM'
TEST_TYPE = 'Server'
ATTRIBUTES = 'suite:crosbolt_perf_perbuild'
@@ -34,6 +34,8 @@
')'],
ignore_test_failures=True,
max_run_sec=21600, # 6 hours.
+ totalshards=3,
+ shardindex=0,
command_args=args)
parallel_simple(run, machines)
diff --git a/server/site_tests/tast/control.crosbolt-perbuild b/server/site_tests/tast/control.crosbolt-perbuild-shard-1
similarity index 92%
copy from server/site_tests/tast/control.crosbolt-perbuild
copy to server/site_tests/tast/control.crosbolt-perbuild-shard-1
index 04600b6..25d1691 100644
--- a/server/site_tests/tast/control.crosbolt-perbuild
+++ b/server/site_tests/tast/control.crosbolt-perbuild-shard-1
@@ -3,7 +3,7 @@
# found in the LICENSE file.
AUTHOR = 'Chromium OS team'
-NAME = 'tast.crosbolt-perbuild'
+NAME = 'tast.crosbolt-perbuild-shard-1'
TIME = 'MEDIUM'
TEST_TYPE = 'Server'
ATTRIBUTES = 'suite:crosbolt_perf_perbuild'
@@ -34,6 +34,8 @@
')'],
ignore_test_failures=True,
max_run_sec=21600, # 6 hours.
+ totalshards=3,
+ shardindex=1,
command_args=args)
parallel_simple(run, machines)
diff --git a/server/site_tests/tast/control.crosbolt-perbuild b/server/site_tests/tast/control.crosbolt-perbuild-shard-2
similarity index 92%
rename from server/site_tests/tast/control.crosbolt-perbuild
rename to server/site_tests/tast/control.crosbolt-perbuild-shard-2
index 04600b6..598dbf8 100644
--- a/server/site_tests/tast/control.crosbolt-perbuild
+++ b/server/site_tests/tast/control.crosbolt-perbuild-shard-2
@@ -3,7 +3,7 @@
# found in the LICENSE file.
AUTHOR = 'Chromium OS team'
-NAME = 'tast.crosbolt-perbuild'
+NAME = 'tast.crosbolt-perbuild-shard-2'
TIME = 'MEDIUM'
TEST_TYPE = 'Server'
ATTRIBUTES = 'suite:crosbolt_perf_perbuild'
@@ -34,6 +34,8 @@
')'],
ignore_test_failures=True,
max_run_sec=21600, # 6 hours.
+ totalshards=3,
+ shardindex=2,
command_args=args)
parallel_simple(run, machines)