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

Skip sendMetadata when using fallback plan #196

Closed nprizal closed 2 months ago

nprizal commented 2 months ago

We don't want to send metadata when the client falls back to non-intelligent split, because there is very little value of tracking the execution of the test with non-intelligent split. Moreover, when the client falls back to non-intelligent split, there might not be a test plan in the server, which means that sending the metadata back to the server is even useless.

This PR adds Fallback attribute to the TestPlan struct, updates the CreateFallbackPlan method to return test plan with Fallback: true, and updates the main function to skip sending metadata when the plan has Fallback: true.