Skip to content
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

Loading phase errors are swallowed in BuildViewTestCase #6902

Closed
lberki opened this issue Dec 12, 2018 · 3 comments
Closed

Loading phase errors are swallowed in BuildViewTestCase #6902

lberki opened this issue Dec 12, 2018 · 3 comments
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc untriaged

Comments

@lberki
Copy link
Contributor

lberki commented Dec 12, 2018

Reproduction:

@Test
public void testMissingPackage() throws Exception {
  getConfiguredTarget("//a:a");
}

Run this test case, observe that the test case passes, even though a/BUILD doesn't exist anywhere.

This is usually not a problem because we usually do something with its return value, which is null and thus a NullPointerException would result, but it's still an ugly misfeature of our test framework.

@lberki lberki added the area-EngProd Bazel CI, infrastructure, bootstrapping, release, and distribution tooling label Dec 12, 2018
@jin
Copy link
Member

jin commented Dec 12, 2018

@lberki in the future, please also add either the untriaged or a priority label, so we can get a sense of the issues' priority. thanks!

@jin jin added the untriaged label Dec 12, 2018
bazel-io pushed a commit that referenced this issue Dec 13, 2018
Also fix an embarrassing issue that made the tests in BazelProtoInfoStarlarkTest silently *always pass*. The root cause of that is that we swallow loading-phase errors for some reason (#6902), but let's fix that in a different change.

Progress towards #6901.

RELNOTES: None.
PiperOrigin-RevId: 225339799
@philwo philwo added team-Core Skyframe, bazel query, BEP, options parsing, bazelrc and removed area-EngProd Bazel CI, infrastructure, bootstrapping, release, and distribution tooling labels May 6, 2019
@philwo
Copy link
Member

philwo commented May 6, 2019

I have no idea about our Java tests, assigning to team-Core instead.

@katre
Copy link
Member

katre commented May 13, 2020

Closed for lack of activity. Please ping the reviewers to reopen if this is still a problem.

@katre katre closed this as completed May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc untriaged
Projects
None yet
Development

No branches or pull requests

4 participants