From 0bebce1d92c2018a3befeaf28cc4454e95e7f38d Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 15 Jul 2025 10:08:40 -0400 Subject: [PATCH] Uses function call for shard number assignment. Replaces direct matrix value access with a function call to obtain the shard number. This approach enhances flexibility and maintainability by abstracting the source of the shard number. --- temp/playwright-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temp/playwright-test.yml b/temp/playwright-test.yml index 91e9126a7..d0b37a008 100644 --- a/temp/playwright-test.yml +++ b/temp/playwright-test.yml @@ -158,7 +158,7 @@ jobs: FILTER="$FILTER" PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}" SERVE_PATH="${{ parameters.npmServePath }}" - SHARD_NUMBER=${{ matrix.shardNumber }} + SHARD_NUMBER=$(shardNumber) TOTAL_SHARDS=${{ parameters.totalShards }} container_id=$(docker create \ --ipc=host \ @@ -174,7 +174,7 @@ jobs: export FILTER="$FILTER" export PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}" export SERVE_PATH="${{ parameters.npmServePath }}" - export SHARD_NUMBER=${{ matrix.shardNumber }} + export SHARD_NUMBER=$(shardNumber) export TOTAL_SHARDS=${{ parameters.totalShards }} container_id=$(docker create \ --ipc=host \