(PTFE-2504) develop branch with three digits#251
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #251 +/- ##
===========================================
+ Coverage 65.76% 89.01% +23.24%
===========================================
Files 41 75 +34
Lines 7922 10028 +2106
===========================================
+ Hits 5210 8926 +3716
+ Misses 2712 1102 -1610
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tcarmet
left a comment
There was a problem hiding this comment.
overall lgtm as it is, but it's hard to tell without seeing some new scenarios in the tests.
ping me when you'll have some so that we can have a look at it and ensure we got all possible scenarios covered.
0e7744a to
127caf9
Compare
There was a problem hiding this comment.
Glad you have some tests now, this gives me a better view of what's up.
Something is up with how you are comparing branches I think. Similar to how development/x are > than development/x.y the development/x.y should be > than the development/x.y.z.
I say this because I see development/x.y getting ignored when the destination is development/x.y.z where I don't think it should be.
What I also think it's missing in terms of tests:
-
Are we capable of handling more than one
development/x.y.z(I think we are, but need to see it in action). For exampledevelopment/4.1.17withdevelopment/4.1.18anddevelopment/4.1. -
When the tag
4.1.18exists and we are working withdevelopment/4.1.18what are we asking in fix version? -
(This one might deserve its own PR and we can try to do it together to minimize changes needed) we should be adding a three digit branch on the base git repo init scenario. Now a whole bunch of tests will break because of it, but it should allow us to identify if we broke something.
- Kind of related to the above so will implicitly fix itself: Haven't seen any dedicated functional tests with
dev/x.y.zbranches.
- Kind of related to the above so will implicitly fix itself: Haven't seen any dedicated functional tests with
-
Since you kept the hotfix branches, if
hotfix/x.y.zbranches PR +development/x.y.zare into the mix together are we behaving correctly? Can we queue them together? (having a pr of each in the queue)
a4f6876 to
61f1ea3
Compare
9562fc9 to
7ed33ec
Compare
tcarmet
left a comment
There was a problem hiding this comment.
Looking better, still need to see the test cases I mentioned, I added one as a bonus on my review.
For the more functional test setup, we can set one up together in a session if you need a hand on that, over a 30 min session we can get this sorted easily. Just let me know :)
5f9e6e1 to
c967118
Compare
40f8117 to
4509fb4
Compare
tcarmet
left a comment
There was a problem hiding this comment.
I think those two topics need to be solved before merging (second one could arguably be optional but I rather be safe):
- I understand why you removed the functional test we setup, but now we have no functional test that tries to directly target a dev/x.y.z branch as destination. It should work fine, but we have to explicitly test it.
- I also think we implicitly test it, but I do want to see explicitly if we are capable of handling both a hotfix PR and a dev/x.y.z PR in the queue together.
I understand you want to merge this soon, therefore approving but take those into account please.
6c8a1c4 to
1eea0c0
Compare
PR: Support for development/x.y.z Branches (Three-Digit Development Branches)
Summary
This pull request introduces full support for three-digit development branches (e.g.,
development/x.y.z) in the GitWaterFlow cascade logic. The changes ensure that the system correctly handles, sorts, and calculates next versions for both two-digit (development/x.y) and three-digit (development/x.y.z) development branches.Key Changes
Cascade Logic:
Next Micro Version Calculation:
development/x.y.zbranch exists, ensuring no conflicts or duplicate versions.Tests:
Impact