Commit 61d8f3d3 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Count CI_NODE_INDEX from 1, not from 0

parent 12db22cd
......@@ -219,17 +219,17 @@ code_quality:
CGO_ENABLED: "1"
TESTFLAGS: "-cover -race"
unit tests 0 5: *unit_tests
unit tests 1 5: *unit_tests
unit tests 2 5: *unit_tests
unit tests 3 5: *unit_tests
unit tests 4 5: *unit_tests
unit tests 5 5: *unit_tests
unit tests with race 0 5: *unit_tests_with_race
unit tests with race 1 5: *unit_tests_with_race
unit tests with race 2 5: *unit_tests_with_race
unit tests with race 3 5: *unit_tests_with_race
unit tests with race 4 5: *unit_tests_with_race
unit tests with race 5 5: *unit_tests_with_race
docs check links:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-docs-lint"
......
......@@ -122,8 +122,9 @@ executeTestPart() {
numberOfDefinitions=$(< "${testsDefinitions}" wc -l)
local executionSize
executionSize=$((numberOfDefinitions/CI_NODE_TOTAL+1))
local nodeIndex=$((CI_NODE_INDEX-1))
local executionOffset
executionOffset=$((CI_NODE_INDEX*executionSize+1))
executionOffset=$((nodeIndex*executionSize+1))
printMessage "Number of definitions: ${numberOfDefinitions}"
printMessage "Suite size: ${CI_NODE_TOTAL}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment