-
Notifications
You must be signed in to change notification settings - Fork 206
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
Refactor data prepper release process #2122
Comments
@gaiksaya , I believe we are almost doing this process. We have a release GHA which builds artifacts and uploads them to our staging repository. This is similar to the release-drafter requested. We also have an existing Jenkinsfile which you linked to. This copies from the artifacts we have above. It sounds like the gap we have is only related to triggering these jobs. I understand you are looking for the following changes.
One thing that we do want to account for here is an idea of nightly releases. We've had several requests to provide nightly or weekly builds. We'd need to be sure that for such release builds, they do not trigger the Jenkinsfile. |
Yes, trigger when tag is cut. Regarding nightly builds, what artifacts would that be? I see multiple artifacts in this process. |
@dlvenable Can you please let us know the status of on-boarding Data prepper to one click release process? We do not have bandwidth to support manual releases and I don't want that to become a blocker for any urgent releases. |
@bbarani , We are working on this for the 2.3 release and plan to start using it with that release. |
Overall ApproachThe overall approach is to trigger the existing Data Prepper Jenkins job using a custom draft release trigger on Jenkins. This will be integrated into the existing Data Prepper release GitHub Action job. You can conceptually view the release as:
Release GitHub ActionWe will add the following steps to the existing Data Prepper GitHub Action:
The Data Prepper repository will have a custom trigger for draft releases to start a Jenkins job. Thus, step 3 above will trigger Jenkins. Jenkins TriggerThe This trigger will:
Release descriptor format.The release descriptor file will be a fairly straightforward YAML file. A simple example which relates to our 2.3.2 release build (build 33 on Jenkins).
|
I thought the GA is going to create a PR for release. |
@asifsmohammed , It is not a PR, but a GH issue as @gaiksaya noted. The GHA will poll this issue looking for two comments from maintainers which have the known text. You can see an example in my current testing right here: dlvenable#316 |
…elease issue has been approved by two maintainers. Resolves opensearch-project#2122. Signed-off-by: David Venable <dlv@amazon.com>
Is your feature request related to a problem? Please describe.
There has been a development in the way artifacts are released. We would like to re-do the data-prepper release process to use the new process opensearch-project/opensearch-build#1234
Old release process jenkins file : https://github.com/opensearch-project/opensearch-build/blob/main/jenkins/data-prepper/release-data-prepper-all-artifacts.jenkinsfile
Describe the solution you'd like
draft release
and uses a new lib calledpublishToMaven
that autopublishes the maven artifacts to maven. Similary, other libraries such as copyContainer for copying container images to different platforms. This jenkins File uses draft release as a trigger.In this new process, all that a maintainer needs to do is push a tag and the releasing artifacts to different platforms will be taken care by the GHA and jenkins workflows.
Describe alternatives you've considered (Optional)
Continue to use what we have.
Additional context
Add any other context or screenshots about the feature request here.
Design
See comment: #2122 (comment)
Tasks
The text was updated successfully, but these errors were encountered: