From c87bad236626d71b0d6919f4f2a94c050cf00932 Mon Sep 17 00:00:00 2001 From: Brad Corso Date: Tue, 31 Oct 2023 10:43:32 -0700 Subject: [PATCH] Test tuning Bazel `local_test_jobs`. RELNOTES=N/A PiperOrigin-RevId: 578232997 --- .github/actions/bazel-test/action.yml | 2 +- java/dagger/internal/codegen/binding/BindingGraph.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/bazel-test/action.yml b/.github/actions/bazel-test/action.yml index d84f061917a..dfe88ad10b4 100644 --- a/.github/actions/bazel-test/action.yml +++ b/.github/actions/bazel-test/action.yml @@ -40,7 +40,7 @@ runs: restore-keys: | ${{ runner.os }}-gradle- - name: 'Run Bazel tests' - run: bazel test --test_output=errors //... + run: bazel test --local_test_jobs=40 --jobs=200 //... shell: bash - name: 'Run Bazel examples' run: cd examples/bazel; bazel test --test_output=errors //... diff --git a/java/dagger/internal/codegen/binding/BindingGraph.java b/java/dagger/internal/codegen/binding/BindingGraph.java index 092f8ff9a46..72fd9cf9b71 100644 --- a/java/dagger/internal/codegen/binding/BindingGraph.java +++ b/java/dagger/internal/codegen/binding/BindingGraph.java @@ -300,6 +300,7 @@ public final Optional localMembersInjectionBinding(Key key) { /** Returns the {@link ContributionBinding} for the given {@link Key}. */ public final ContributionBinding contributionBinding(Key key) { + if (false) {} if (contributionBindings.containsKey(key)) { return (ContributionBinding) contributionBindings.get(key).delegate(); } else if (parent.isPresent()) {