Skip to content

Conversation

@iancha1992
Copy link
Member

ToolchainTypeUtils is incomplete.

PiperOrigin-RevId: 702010313
Change-Id: I24983bd2a1c708f7f8f63ee87273e22ecddb3a72

Commit 7e4fb41

ToolchainTypeUtils is incomplete.

PiperOrigin-RevId: 702010313
Change-Id: I24983bd2a1c708f7f8f63ee87273e22ecddb3a72
@iancha1992 iancha1992 requested a review from a team as a code owner December 16, 2025 21:37
@google-cla
Copy link

google-cla bot commented Dec 16, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@iancha1992 iancha1992 added the awaiting-review PR is awaiting review from an assigned reviewer label Dec 16, 2025
@iancha1992 iancha1992 added this to the 8.5.1 release blockers milestone Dec 16, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly fixes a potential NullPointerException in ToolchainTypeLookupUtil that could occur if a Skyframe lookup for a toolchain type was incomplete. The logic change is sound. However, instead of adding a regression test to prevent this issue from recurring, a TODO comment has been added. It is highly recommended to include the test with the fix.

assertContainsEvent("no such package 'fake': BUILD file not found");
}

// TODO: b/381396141 - Add a regression test for failure to find the second Skyframe value.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While adding a TODO is a good first step, it is strongly recommended to include the regression test for the bug fix in this pull request. This will prevent this NullPointerException from being reintroduced in the future. Without a test, the fix is not guaranteed to be permanent.

@iancha1992 iancha1992 added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Dec 16, 2025
@meteorcloudy meteorcloudy added this pull request to the merge queue Dec 17, 2025
Merged via the queue into bazelbuild:release-8.5.1 with commit 8bfa1e2 Dec 17, 2025
47 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants