Skip to content

Commit

Permalink
Merge pull request kubernetes#16577 from fejta/up
Browse files Browse the repository at this point in the history
Improve bazel rbe cache hit rate
  • Loading branch information
k8s-ci-robot authored Mar 4, 2020
2 parents 7cc94fc + 8abb896 commit c42b857
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ build:remote --define=EXECUTOR=remote
build:remote --remote_executor=grpcs://remotebuildexecution.googleapis.com
build:remote --remote_timeout=3600

# Improve cache hit rate
build:remote --incompatible_strict_action_env=true

# Minimize what is downloaded
build:inmemory --experimental_inmemory_jdeps_files
build:inmemory --experimental_inmemory_dotd_files
Expand Down
1 change: 1 addition & 0 deletions prow/interrupts/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ go_test(
name = "go_default_test",
srcs = ["interrupts_test.go"],
embed = [":go_default_library"],
tags = ["local"], # TODO(fejta): non-hermetic tests fails on RBE
)
1 change: 1 addition & 0 deletions prow/metrics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ go_test(
"metrics_test.go",
],
embed = [":go_default_library"],
tags = ["local"], # TODO(fejta): non-hermetic tests fails on RBE
deps = [
"//prow/config:go_default_library",
"@io_k8s_utils//diff:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion prow/metrics/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestExposeMetrics(t *testing.T) {
ExposeMetrics("my-component", config.PushGateway{})
resp, err := http.Get("http://127.0.0.1:9090/metrics")
if err != nil {
t.Errorf("failed getting metrics: %v", err)
t.Fatalf("failed getting metrics: %v", err)
}
if resp.StatusCode != http.StatusOK {
t.Errorf("resonse status was not 200 but %d", resp.StatusCode)
Expand Down

0 comments on commit c42b857

Please sign in to comment.