-
Notifications
You must be signed in to change notification settings - Fork 282
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
Automate the branch entry to version increment workflow #2602
Automate the branch entry to version increment workflow #2602
Conversation
* Updated manifests. Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com> * Remove 2.2.2 from the check for build as 2.3.0 is about to release Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Add common-utils Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com> Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> Co-authored-by: opensearch-ci-bot <opensearch-infra@amazon.com> Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
Test fail for mypy strange this works on my local
|
a5e569c
to
0212aac
Compare
@prudhvigodithi can you explain what you are trying to do here? |
So @peterzhuamazon in order to trigger the version-increment workflow, we need the right branch entries, having these branches, for every branch the a job is created and version increment is performed, now for every release one has to raise a PR to add this branch entry. With this change (part of this PR) this branch entry with be auto updated as part of the manifest workflow [AUTO] Updated input manifests PR, so next time we dont need to manually raise a PR for |
I see what you mean so if there is any new branches it will update the versions-increment yml workflow so we dont need to manually raise PR. Thanks. |
0212aac
to
b3a536b
Compare
Codecov Report
@@ Coverage Diff @@
## main #2602 +/- ##
============================================
- Coverage 94.41% 93.94% -0.48%
Complexity 28 28
============================================
Files 219 219
Lines 4462 4494 +32
Branches 29 29
============================================
+ Hits 4213 4222 +9
- Misses 243 266 +23
Partials 6 6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
e39b644
to
4139168
Compare
4139168
to
d3964dc
Compare
Signed-off-by: prudhvigodithi <pgodithi@amazon.com>
d3964dc
to
76b6280
Compare
Thanks @peterzhuamazon, I have also just removed |
I’m late to this PR, but it needs more work even if it seems to work. Please followup / open issues accordingly.
|
@patch("builtins.open", new_callable=mock_open) | ||
@patch("manifests_workflow.input_manifests.InputManifests.add_to_versionincrement_workflow") | ||
def test_add_to_versionincrement_workflow(self, *mocks: Any) -> None: | ||
input_manifests = InputManifests("test") |
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.
This test doesn’t assert anything.
with open(versionincrement_workflow_file) as f: | ||
data = yaml.load(f) | ||
|
||
version_entry = [] |
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.
This part is not tested.
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.
Let me add this as well, I will raise a new PR
@@ -11,6 +11,8 @@ | |||
from abc import abstractmethod | |||
from typing import Dict, List, Type, Union | |||
|
|||
import ruamel.yaml |
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.
The code now reads and writes YML files in two different ways. We need to have one.
Hey @dblock for the new YAML library |
Created a new issue to use |
Description
Automate the branch entry to version increment workflow
Issues Resolved
Part of: #1375
Solves: #2601
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.