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

Make sure the test roots are associated with the correct project(s) before attempting to run tests. #5722

Merged
merged 2 commits into from
Jun 10, 2023

Conversation

jlahoda
Copy link
Contributor

@jlahoda jlahoda commented Mar 26, 2023

Sometimes, an OpenJDK test is run when the corresponding project has not been opened yet, and hence the tests are not assigned to the project yet. This leads to a NPE while trying to find the output directory.

The proposal here is to go through the well-known projects to which the tests are assigned, and ensure their external roots are assigned, before running the test.


^Add meaningful description above

By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -

  • are all your own work, and you have the right to contribute them.
  • are contributed solely under the terms and conditions of the Apache License 2.0 (see section 5 of the license for more information).

Please make sure (eg. git log) that all commits have a valid name and email address for you in the Author field.

If you're a first time contributor, see the Contributing guidelines for more information.

If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.

@jlahoda jlahoda added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Mar 26, 2023
@jlahoda jlahoda marked this pull request as ready for review March 26, 2023 08:49
@apache apache locked and limited conversation to collaborators Mar 31, 2023
@apache apache unlocked this conversation Mar 31, 2023
Copy link
Contributor

@dbalek dbalek left a comment

Choose a reason for hiding this comment

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

Looks fine

@jlahoda jlahoda merged commit 18542bf into apache:master Jun 10, 2023
@mbien mbien added this to the NB19 milestone Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants