-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix(create-prs-to-update-vcs-repositories): update only for versions whose format is X.Y.Z
#320
fix(create-prs-to-update-vcs-repositories): update only for versions whose format is X.Y.Z
#320
Conversation
* Only handles formats such as: "1.0.0", "1.1.1", "0.0.9", ... etc * Following ones are the mismatched examples: ``` "v0.0.1", # mismatch "ros2-v0.0.4", # mismatch "xxx-1.0.0-yyy", # mismatch "v1.2.3-beta", # mismatch "v1.0", # mismatch "v2", # mismatch "1.0.0-alpha+001", # mismatch "v1.0.0-rc1+build.1", # mismatch "2.0.0+build.1848", # mismatch "2.0.1-alpha.1227", # mismatch "1.0.0-alpha.beta", # mismatch "ros_humble-v0.10.2" # mismatch ``` Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
This PR is now under testing. |
* For testing a functionality in the following PR: - autowarefoundation/autoware-github-actions#320 Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
r'\b(?<![^\s])\d+\.\d+\.\d+(?![-\w.+])\b'
r'\b(?<![^\s])\d+\.\d+\.\d+(?![-\w.+])\b'
X.Y.Z
X.Y.Z
X.Y.Z
Now it is ready for review 👍 |
Do we want to have PRs created to bump major version like for 2.0.9 -> 3.1.4? |
Is it possible for you to update the README to add "What kind of tags are handled?" and "What kind of version update is possible?" that you explained in your PR description? |
@mitsudome-r Thank you very much for the informative comments! Let me answer for each:
Informative question. I want to have a feedback from @youtalk to understand what is the desired version transition. Hopefully this provides the answer otherwise please feel free to share your ideas and so on! 👍
Sure, let me update the README.md! 👍 |
* Make clear what is the condition for creating a PR Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…ed code block Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
… of https://github.com/sasakisasaki/autoware-github-actions into fix-regular-expression-pattern-for-semantic-versioning Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
… of https://github.com/sasakisasaki/autoware-github-actions into fix-regular-expression-pattern-for-semantic-versioning Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…ation Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Thanks for updating the README.
I was a more concerned that there could be a situation where Consider the following situation for example:
In this case, we don't want this GitHub Action to create a PR to humble branch to update to version 2.0.0, but only create a PR for 1.2.0. |
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Co-authored-by: Ryohsuke Mitsudome <43976834+mitsudome-r@users.noreply.github.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
b2287e4
to
6694ec4
Compare
@mitsudome-r Thank you for sharing that possible case. Only the major update (e.g. 1.x.y => 2.x'.y') can be done by manually, and the other minor updates (e.g. x.a.b => x.a'.b') are handled by this workflow looks make sense. |
Perhaps adding option like |
Let's create different prs for major prs and minor prs separately from the same workflow. |
@mitsudome-r @xmfcx (CC: @youtalk ) As we discussed in the Software Working Group, I'll apply the fix so we create the PR for both major and minor ones, respectively. |
* Do not allow to change the semver pattern via argument: use only fixed pattern. * Add description to make it explicit what kind of patterns are supported. Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…ee below): * Support separated PRs for major, minor, and patch updates * If not specified, PR will be created for any updates Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…" from spell check Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
… of https://github.com/sasakisasaki/autoware-github-actions into fix-regular-expression-pattern-for-semantic-versioning
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
* For testing this PR: autowarefoundation/autoware-github-actions#320 Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
* The existing branch list is not updated correctly. When major, minor, patch, and any are all enabled, The same name branch can be processed twice. This eventually causes an error like: ``` nothing to commit ``` Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
@mitsudome-r @xmfcx I think if the PRs are created as this, this PR perhaps satisfies the requirements. If this matches to your understanding, I think we can use this PR for vcs repository's versioning. (EDITTED): We can specify which updates the PR should be created for (see this README.md for more details). |
(CC: @youtalk) |
create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py
Outdated
Show resolved
Hide resolved
* The information is duplicated that of README.md Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py
Outdated
Show resolved
Hide resolved
create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
* Keep consistent indentation Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
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.
LGTM! Congrats!
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Description
Create PRs to update a version of vcs-imported repository in the
autoware.repos
if its version format matches for example "0.0.1", "1.0.1", "1.2.3", ... etc.Related links
Semantic versioning discussion
Discussion on the revert PR
Tests performed
Ongoing in this repository. As the tests done, the detail will be described here.In this PR, I focused on testing if only the expected regex patterns are handled as we already tested the basic features in this PR.
I have tested as following steps:
autoware.repos
Notes for reviewers
Let me describe following two stuffs.
What kind of tags are handled
autoware.repos
which have a version with regular expression patternr'\b(?<![^\s])\d+\.\d+\.\d+(?![-\w.+])\b'
(if default).What kind of version update is possible?
Note that we can specify what kind of version update must be handled.
Please see this README.md for more details.
Interface changes
No interface change
ROS Topic Changes
No ROS topic change
ROS Parameter Changes
No ROS parameter change
Effects on system behavior
As the
autowarefoundation/autoware
start using this workflow, new PRs will be created automatically on theautowarefoundation/autoware
as the vcs-repository has the version updatePre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.