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.
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.
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 theTestPlan
struct, updates theCreateFallbackPlan
method to return test plan withFallback: true
, and updates themain
function to skip sending metadata when the plan hasFallback: true
.