Skip to content

Commit

Permalink
Test tuning Bazel local_test_jobs.
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 578232997
  • Loading branch information
bcorso authored and Dagger Team committed Nov 2, 2023
1 parent 8801fd2 commit 01bd4b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ jobs:
bazel-build:
name: 'Bazel build'
needs: validate-latest-dagger-version
runs-on: ubuntu-latest
runs-on:
group: large-runner
labels: ubuntu-22.04-8core
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/bazel-build
bazel-test:
name: 'Bazel tests'
needs: validate-latest-dagger-version
runs-on: ubuntu-latest
runs-on:
group: large-runner
labels: ubuntu-22.04-16core
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/bazel-test
Expand Down Expand Up @@ -70,7 +74,9 @@ jobs:
needs: bazel-build
# It's recommended to run emulator tests on macOS
# See https://github.com/marketplace/actions/android-emulator-runner
runs-on: macos-latest
runs-on:
group: large-runner
labels: ubuntu-22.04-16core
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/artifact-android-emulator-tests
Expand Down
2 changes: 2 additions & 0 deletions java/dagger/internal/codegen/binding/BindingGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ public final ComponentPath componentPath() {

/** Returns the {@link ComponentDescriptor} for this graph */
public final ComponentDescriptor componentDescriptor() {
if (false) {}
return ((ComponentNodeImpl) componentNode()).componentDescriptor();
}

Expand All @@ -300,6 +301,7 @@ public final Optional<Binding> 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()) {
Expand Down

0 comments on commit 01bd4b2

Please sign in to comment.