-
Notifications
You must be signed in to change notification settings - Fork 283
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
Manifest commit lock automation #4583
Conversation
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4583 +/- ##
==========================================
+ Coverage 92.17% 92.39% +0.22%
==========================================
Files 192 193 +1
Lines 6297 6314 +17
==========================================
+ Hits 5804 5834 +30
+ Misses 493 480 -13 ☔ View full report in Codecov by Sentry. |
I feel like a lot of the code can be put into lib such as create pull request section being generic. Also you can rebase on main to use the latest commits of link checker in #4581. Thanks. |
Majority of the code here is only related to Manifest Lock Automation, not reusable to be part of the library, may be git create pull request we can and be re-used later in future.
But if you are ok with idea of Manifest Lock Automation, I can go ahead and do the code optimization. Thanks |
This Manual PR #4586 should be covered with this automation. |
Just realized converting this into library might not be as generic as I thought, because it will have multiple parameters like |
@peterzhuamazon I think this is expected, failures with Link Checker |
Just re-run after a few min, it will pass. |
f3d308d
to
632e7db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prudhvigodithi
Can you add tests for either manifest commit update? Like only update opensearch manifest?
Also should we add tests for exact commit assertions? For example, 2.12.0 is released. So add test based to see if head commits match?
jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile
Outdated
Show resolved
Hide resolved
jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile
Show resolved
Hide resolved
The Generated |
fafa6f2
to
649e275
Compare
jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile
Outdated
Show resolved
Hide resolved
jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile
Outdated
Show resolved
Hide resolved
jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile
Outdated
Show resolved
Hide resolved
c5481a5
to
d629506
Compare
Hey @peterzhuamazon I have made your suggested changes and pushed in my latest commit, following are some test PR's with this automation behavior. Manifest lock with RC Commit IDhttps://github.com/prudhvigodithi/opensearch-build/pull/94/files Manifest lock with latest HEAD Commit IDhttps://github.com/prudhvigodithi/opensearch-build/pull/95/files Manifest lock for specified individual components:https://github.com/prudhvigodithi/opensearch-build/pull/96/files |
Description
Updates the manifest with commit ID's and creates a PR. There are 2 supported manifest lock actions
For both the above actions
COMPONENTS
option can be used to filter the desired action on the specific component.Sample Test PR's
Update to RC commit ID'
https://github.com/prudhvigodithi/opensearch-build/pull/91/files
Update to Head Commit, filter by specific repos
https://github.com/prudhvigodithi/opensearch-build/pull/92/files
Issues Resolved
#4561
If you guys are good with the approach I will add unit tests and create the Jenkins job.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.