Skip to content

Manage RNC and RCGNMI docker artifacts by maven-release-plugin#2270

Merged
ihrasko merged 3 commits intoPANTHEONtech:mainfrom
ihrasko:release-build
Jul 22, 2025
Merged

Manage RNC and RCGNMI docker artifacts by maven-release-plugin#2270
ihrasko merged 3 commits intoPANTHEONtech:mainfrom
ihrasko:release-build

Conversation

@ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Jul 22, 2025

This patch enables us to prepare release with just (+ adjusting documentation and READMEs):

mvn clean -Darguments=-DskipTests release:prepare -P docker
mvn clean -Darguments=-DskipTests release:perform -P docker

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @ihrasko, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on enhancing the release process for the RNC and RCGNMI Docker applications by integrating them more seamlessly with the maven-release-plugin. It involves updating project versions across the board and fine-tuning Maven configurations to manage Docker artifacts outside the traditional Maven repository deployment, aiming for a more streamlined and automated release workflow.

Highlights

  • Maven Release Automation: This PR configures the maven-release-plugin to enable simplified release preparation and performance for RNC and RCGNMI Docker artifacts, reducing manual steps to just two Maven commands.
  • Docker Artifact Management: The lighty-rcgnmi-app-docker and lighty-rnc-app-docker modules are now explicitly excluded from the standard Maven release process, indicating their Docker image lifecycle is managed separately. A maven.deploy.skip property was added to these modules to prevent their deployment to a Maven repository.
  • Version Updates: Across the entire project, all pom.xml files have been updated to reflect a new snapshot version, moving from 22.0.0-SNAPSHOT to 22.1.0-SNAPSHOT. This includes parent POMs, module versions, and dependency management entries.
  • SCM Configuration: The lighty-controller-springboot-netconf example module now explicitly sets its SCM tag to HEAD, which might be relevant for its specific release or development flow.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the project version across all modules and configures the maven-release-plugin to handle RNC and RCGNMI Docker artifacts. The changes look good and align with the goal of streamlining the release process for Docker images.

Comment on lines +119 to 120
<artifactId>lighty-rcgnmi-app-docker</artifactId>
<artifactId>lighty-rcgnmi-app</artifactId>

Choose a reason for hiding this comment

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

medium

For better maintainability, it's a good practice to keep lists like this sorted alphabetically. Could you please reorder the artifactIds in this section?

                                <artifactId>lighty-rcgnmi-app</artifactId>
                                <artifactId>lighty-rcgnmi-app-aggregator</artifactId>
                                <artifactId>lighty-rcgnmi-app-docker</artifactId>
                                <artifactId>lighty-resources-aggregator</artifactId>
                                <artifactId>lighty-rnc-aggregator</artifactId>
                                <artifactId>lighty-rnc-app</artifactId>
                                <artifactId>lighty-rnc-app-docker</artifactId>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Already sorted by vim's sorted function.

Comment on lines +141 to +153
<scm>
<tag>HEAD</tag>
</scm>

Choose a reason for hiding this comment

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

medium

This pom.xml doesn't inherit from the project's parent POM that defines the SCM information. While the minimal <scm> block might work when running the release from the root, it's good practice to include the full SCM information for consistency and to allow this module to be released independently if needed. Please consider adding the connection, developerConnection, and url tags.

    <scm>
        <connection>scm:git:https://github.com/PANTHEONtech/lighty.git</connection>
        <developerConnection>scm:git:https://github.com/PANTHEONtech/lighty.git</developerConnection>
        <url>https://github.com/PANTHEONtech/lighty</url>
        <tag>HEAD</tag>
    </scm>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

ihrasko added 3 commits July 22, 2025 12:57
lighty-controller-springboot-netconf does not inherit SCM tag,
add it explicitly.

Add developers and licenses sections as well.

JIRA: LIGHTY-374
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Add lighty-rnc-app-docker and lighty-rcgnmi-app-docker to excluded
artifacts for maven central publish plugin.

JIRA: LIGHTY-374
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Skip deployment phase for lighty-rnc-app-docker and
lighty-rcgnmi-app-docker artifacts.

JIRA: LIGHTY-374
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
@ihrasko ihrasko merged commit 2534273 into PANTHEONtech:main Jul 22, 2025
6 checks passed
@ihrasko ihrasko deleted the release-build branch July 22, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant