Page MenuHomePhabricator

Create Gitlab CI templates for JVM packages
Closed, ResolvedPublic

Description

In T367403: Validate CI integration so that Ci can release Maven artifacts on user's demand wmf-jvm-parent-pom augmented to make using gitlab CI to run tests and publish packages to gitlab easier.

data-engineering/workflow_utils has reusable CI templates that automate running tests and publishing:

  • triggering releases
  • python wheels
  • conda environments
  • javascript npm packages

We should create new gitlab_ci_templates there that can be used in other repositories to test and publish JVM based packages that use wmf-jvm-parent-pom.

Done is

  • Gitlab CI templates to test and publish JVM packages to GitLab package registries
  • maven-test-project updated to use Gitlab CI templates
  • Documentation updated to instruct users on how to use the CI templates.

Related:

Event Timeline

There is some documentation of how Search Platform wanted to have their build behave, which might be useful in this context.

If you open an MR, it might be easier to comment on the code.

@amastilovic, I did not migrate maven-test-project. The Maven CI components repository comes with its one maven project for running some basic tests. Do we still need the separate test project or could it be archived?

Hey @pfischer, I'm not the original creator of the project and do not know its original intended purpose unfortunately. When we were converting projects to Gitlab CI and Gitlab package registry, we used maven test project to test how integration with maven-java-parent-pom worked, and it was definitely useful for it. I think we should bring Guillaume into this discussion since I'm not quite sure if the project is still needed.