A case of this bug was fixed in #2023631, this bug covers a more general case
While running the tests, they can sometimes read KUBECONFIG while another test is writing to it, resulting in a blank file being read and error messages similar to
fail [github.com/openshift/origin/test/extended/util/client.go:524]: Nov 15 22:41:04.835: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
To protect tests from this in as much as possible we should arrange for each CLI object to read from KUBECONFIG only once to a temporary file and subsequent read will then come from this temp file reducing the likely hood of getting a bad read.
Reassigning to Test Framework who own the OCP testsuite
I think this is fixed, as there's no recent instances of it. https://search.ci.openshift.org/?search=invalid+configuration%3A+no+configuration+has+been+provided%2C+try+setting+KUBERNETES_MASTER&maxAge=168h&context=1&type=junit&name=&excludeName=&maxMatches=5&maxBytes=20971520&groupBy=job
I am going to close this bug and the linked PR. If that's not correct, please re-open.