buildkite / test-engine-client

Buildkite Test Engine Client (bktec) is an open source tool to orchestrate your test suites. It uses your Buildkite Test Engine suite data to intelligently partition and parallelise your tests.
MIT License
9 stars 1 forks source link

Test splitter exits early if either STEP_ID or BUILD_ID are blank. #175

Closed wooly closed 2 months ago

wooly commented 2 months ago

Description

Since 0.7.0, the test splitter has constructed the identifier internally. However, the validation was never changed to ensure that both the BUILD_ID and STEP_ID are present in the environment to generate the identifier correctly.

This PR updates the test splitter so that it will exit with a configuration error (status 16) if either the BUILDKITE_BUILD_ID or BUILDKITE_STEP_ID environment variables are blank.