eclipse-platform / .github

Common contribution content for eclipse-platform repositories
https://www.eclipse.org/eclipse/
5 stars 10 forks source link

How long shall we keep maintenance branches? #13

Closed vogella closed 2 years ago

vogella commented 2 years ago

All repos still have all maintenance branches, e.g. the 1.0 maintenance branch. We also have tags for all releases. Shall we decide that we only need x maintenance branches, e.g. the last 10 or 12 releases?

cc @akurtakov @sravanlakkimsetti

akurtakov commented 2 years ago

I think 1.0 and 2.0 branches can be closed without further discussions. The branches can't simply be deleted though - there have to be tags from latest commits on each e.g. R2_0_maintenance_FINAL tag (better naming is welcome).

vogella commented 2 years ago

FINAL sounds good to me. Any concerns with the deletion of the 1.0 and 2.0 maintenance branches after adding the final tag?? cc @merks @iloveeclipse @laeubi

Tag name suggestions are also welcome

iloveeclipse commented 2 years ago

Just curious: what's wrong with old branches? Do you see any issues leave them "as is"?

akurtakov commented 2 years ago

All branches are consulted whether they are buildable by Jenkins jobs e.g. https://ci.eclipse.org/platform/job/eclipse.platform.ui/indexing/consoleText is what I know. Not a problem per se but not helpful either.

iloveeclipse commented 2 years ago

If the history of changes remain after branch deletion, it's OK for me, otherwise not. There must be a good reason to delete something that can't be restored anymore.

vogella commented 2 years ago

If the history of changes remain after branch deletion, it's OK for me, otherwise not. There must be a good reason to delete something that can't be restored anymore.

We commits will be accessable via the suggested tags

iloveeclipse commented 2 years ago

I still miss a "good reason". Just because we can?

vogella commented 2 years ago

I still miss a "good reason". Just because we can?

Because they are not used anymore.

tjwatson commented 2 years ago

I am against removing history for past releases. Too many times being able to checkout the past has help me. So far I have not seen nearly enough justification to remove the maint branches.

vogella commented 2 years ago

@tjwatson sounds like you have a misunderstanding, we are not proposing to remove history, lets discuss in our next PMC call

tjwatson commented 2 years ago

In the past we have made releases off the maintenance branches. Deleting such a branch deletes the history that went into that release. As a project I realized we don't do maintenance releases anymore, but we certainly did off of these old branches I assume you intend to remove. What am I missing?

ruspl-afed commented 2 years ago

I also do not understand why do we need to remove maintaince branches and define tags instead of them Do we have any maintance cost for these branches to save any resources in the case of deletion, @vogella @akurtakov ? I know that many consumers of Eclipse Platform are tied to a specific release version for some reason. What might be the process of, say, fixing a CVE for some old released version if the branch was deleted. 1) branch by tag RX_0_maintenance_FINAL 2) push the fix 3) ... create the tag RX_0_maintenance_MUCH_MORE_FINAL?

sravanlakkimsetti commented 2 years ago

We should keep maintenance branches. These contains our history. -1 to remove maintenance branches.

vogella commented 2 years ago

Mayority prefer to keep the branches around, so I close this issue.

mickaelistria commented 2 years ago

In the past we have made releases off the maintenance branches. Deleting such a branch deletes the history that went into that release.

I don't think it's true. The history remain by fetching the tag for a given release. There are some small benefits I see in removing older unsupported branches: listing the remote branches directly say what's still supported, less refs also means that the list becomes shorter and supported branches become then easier to find (in GitHub UI and via CLI).

vogella commented 2 years ago

In the past we have made releases off the maintenance branches. Deleting such a branch deletes the history that went into that release. As a project I realized we don't do maintenance releases anymore, but we certainly did off of these old branches I assume you intend to remove. What am I missing?

Sorry, missed the question, but @mickaelistria answered corretly. A branch is just a pointer to a commit, see .git/refs/heads and check the content of the files.