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

Add GitHub action to test packaging MB Solr with Maven #55

Merged
merged 6 commits into from
Feb 27, 2024
Merged

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented Feb 23, 2024

Problem

There used to be continuous integration tests in Travis, but these have not been maintained and Travis isn’t free anymore since 2021.

Solution

A good first step for restoring those tests is to be able to build and install MusicBrainz Solr package with Maven.

@yvanzo yvanzo marked this pull request as ready for review February 23, 2024 12:13
Copy link
Member

@reosarevok reosarevok left a comment

Choose a reason for hiding this comment

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

LGTM as far as I understand it - added build test passes. We will need to figure out in a subsequent PR how to use the existing tests in the src/test directory.

yvanzo and others added 5 commits February 27, 2024 09:38
The `touch` command prevents Maven from regenerating the Java binding
which would then be missing the changes from `utils/patch-java-classes`.

See commit 44dbb10 for details.
Use the same Eclipse Temurin distribution as in the Dockerfile
(for both Maven builder image and Solr final image).
Note that building `mb-solr` with `mvn package` is running the tests
under the directory `mb-solr/src/test/` but these are mentionned after
12k+ lines of logs and for some reason searching logs through GitHub
(feature in Beta) is currently helpless.
Reference: https://github.com/actions/setup-java/releases

Co-authored-by: Kartik Ohri <kartikohri13@gmail.com>
@yvanzo
Copy link
Contributor Author

yvanzo commented Feb 27, 2024

LGTM as far as I understand it - added build test passes. We will need to figure out in a subsequent PR how to use the existing tests in the src/test directory.

See message in commit 33d0cf8

Copy link
Member

@amCap1712 amCap1712 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

@yvanzo yvanzo merged commit 7faa0ba into master Feb 27, 2024
1 check passed
@yvanzo yvanzo deleted the github-action branch February 27, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants