Skip to content

Move the JS java tests to be a proper java_test target. #15627

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

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

criemen
Copy link
Collaborator

@criemen criemen commented Feb 15, 2024

Previously, we had a sh_test wrapping the java_test to do some setup. This was extremely brittle on Windows, and relied on getting a deploy jar from java_test. This breaks when updating to Bazel 7, where the ability to get a deploy jar from java_test was removed. Therefore, we now do all the test setup in AllTests.java instead. This is much cleaner, and shouldn't break as easily.

Previously, we had a `sh_test` wrapping the `java_test` to do some setup.
This was extremely brittle on Windows, and relied on getting a deploy
jar from `java_test`. This breaks when updating to Bazel 7, where the
ability to get a deploy jar from `java_test` was removed.
Therefore, we now do all the test setup in `AllTests.java` instead.
This is much cleaner, and shouldn't break as easily.
@github-actions github-actions bot added the JS label Feb 15, 2024
@criemen criemen marked this pull request as ready for review February 15, 2024 16:39
@criemen criemen requested a review from a team as a code owner February 15, 2024 16:39
@criemen criemen requested a review from redsun82 February 15, 2024 16:40
@criemen
Copy link
Collaborator Author

criemen commented Feb 15, 2024

I tested internally that the test still passes on Linux and Windows, and it does :)

Copy link
Contributor

@redsun82 redsun82 left a comment

Choose a reason for hiding this comment

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

Thanks!

@criemen criemen merged commit 4e022e2 into main Feb 16, 2024
@criemen criemen deleted the criemen/java-test branch February 16, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants