Skip to content

Commit

Permalink
verify we're running within GitHub CI
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Oct 18, 2023
1 parent a84742e commit a826b89
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func nextOpOrder() int64 {
}

func TestInitialSetup(t *testing.T) {
repo, _ := os.LookupEnv("GITHUB_REPOSITORY")
repo, ok := os.LookupEnv("GITHUB_REPOSITORY") // `ok` tells us the env variable exists, hence that we are running in GitHub CI.
t.Logf("==== repo=%v", repo)
if repo != "vitessio/vitess" {
if ok && repo != "vitessio/vitess" {
// `vitessio/vitess` repository enjoys faster runners. Otherwise, GitHub CI has much slower runners
// and we have to reduce the workload
maxConcurrency = maxConcurrency / 2
Expand Down

0 comments on commit a826b89

Please sign in to comment.