Skip to content

Add a missing null check on SkyframeLookupResult#getOrThrow #26101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented May 19, 2025

Speculative fix for #22066

@fmeum
Copy link
Collaborator Author

fmeum commented May 19, 2025

@rickeylev Could you test this? I failed to reproduce it.

@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label May 19, 2025
@fmeum fmeum requested a review from gregestren May 19, 2025 15:57
@iancha1992 iancha1992 added the team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. label May 20, 2025
@rickeylev
Copy link
Contributor

Yeah, reproducing it was oddly tricky. Try this: https://github.com/rickeylev/rules_python/tree/repro.bazel.22066

cd examples/scratch
bazel run //:bin

I built bazel with this PR and run -- looks to have worked. The NPE stack trace is gone.

@iancha1992 iancha1992 added team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts and removed team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. labels May 20, 2025
@rickeylev
Copy link
Contributor

Also checked the sub-case where the fail() call in starlark wasn't being reported back at all -- that is also fixed

@fmeum
Copy link
Collaborator Author

fmeum commented May 20, 2025

@bazel-io fork 8.3.0

@aranguyen aranguyen added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels May 28, 2025
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label May 30, 2025
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request May 30, 2025
Speculative fix for bazelbuild#22066

Closes bazelbuild#26101.

PiperOrigin-RevId: 765255882
Change-Id: I7569c3b2175d3bca527673f8aa13d1649c86942a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants