You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Nick Vatamaniuc <va...@gmail.com> on 2022/06/02 19:40:34 UTC
[DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Hi everyone,
In a #dev slack thread we were discussing improvements to how we tag
our documentation repo. There were two proposals to simplify the
development and release process, and we wanted to see what the rest of
the community thought about it. Those two ideas are:
1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
From an ergonomic point of view, there is more development on the 3.x
branch so having it as main makes more sense. It can help with:
* Issues auto-closing when PRs are merged
* Github code search works better in the default branch
2. Move docs to the main repo.
We noticed that the docs repo tags/branches can get out-of-sync with
the main couchdb repo. We have been merging features in main when they
apply only to 3.2.x and it requires care to keep track of what gets
merged and ported between branches. The idea is to simplify and make
it automatic so docs always follow the main repo so merging and
porting happens in one place only.
What does everyone think?
Thanks,
-Nick
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Ronny Berndt <ro...@apache.org>.
+1, for the branch renaming part
For the docs integration part, I’m at ± 0:
Is it possible to distinguish what has been changed in a repository? For example:
Are there changes in
- /docs -> rebuild and publish docs
- /src -> couchdb ci run
Or is it an all or nothing approach of PR’s in GitHub?
Maybe as a first pre work we should start to create branches in the docs-repo, like 3.3.x and 3.2.x
(only two active supported versions) and have a latest/main branch.
For a docs „improvement“, we can go this path and merge the PR from 3.2.x -> 3.3.x -> main and then
it’s in all active versions.
If it’s a (new) „feature“, it goes only in main and will be released if we create and branch a new version…
I don’t know if we can combine this with automation and labels, or if I missed something (within the process).
Best,
Ronny
> Am 04.06.2022 um 12:40 schrieb Will Young <lo...@gmail.com>:
>
> I'm fully in favor of part 1, +1
>
> On the docs, I'd say a slightly hesitant +1 as is, given the situation
> Jan describes. I still think it would be an improvement to merge the
> repo since PRs which correctly update couchdb+docs would more likely
> keep changes and their docs together. Aside from direct docs
> synchronization for updates to functionality in couchdb's main repo, I
> think this combining helps with keeping an update to any dependency
> version in rebar with its changes to couchdb/docs, which could reduce
> accidentally missing new visible functionality when updating
> dependencies of older branches for bug fixes.
>
> I would like to suggest that we explore options with automation to try
> to help remember all doc changes for a PR. I.e. the checkbox in the PR
> template can help, but maybe we could also auto-label PRs with
> "no-doc-changes" to remind reviewers, and/or have triggers for PRs
> that do and don't touch files under docs?
>
> Regards,
> -Will
>
> Am Sa., 4. Juni 2022 um 11:04 Uhr schrieb Jan Lehnardt <ja...@apache.org>:
>>
>> Heya Nick,
>>
>> thanks for taking my raw idea to the larger group here :)
>>
>> The one other point that started the whole thing is our publishing of docs.
>>
>> We have a stable and a latest tag where latest just tracks the main branch
>> on the docs repo and stable we move manually when a new release comes out.
>>
>> What does happen though is that after a release, say 3.2.2, we improve the
>> documentation for something that is valid for 3.2.2. If there are no other
>> changes, we can choose to move the stable tag to that commit and get
>> improved documentation as stable for all users online, even though that
>> strictly didn’t exist at the time of the 3.2.2 release.
>>
>> Now, if we first add a new feature in the 3.x line on the couchdb repo and
>> document that in the main branch of the docs repo, and then the docs
>> improvement from before, we can not move the stable tag on the docs repo
>> as that would publish the docs for a not-yet-released feature and the
>> improvement is not available until we release whatever comes after 3.2.2,
>> which might be a considerable time later.
>>
>> My thinking was that it might be neat to follow the branch structure of the
>> couchdb repo in the docs repo, so that we can make this more easily, and
>> from there we got to moving docs into the main repo to avoid double
>> bookkeeping, but that still doesn’t help us in the second scenario outlined
>> above.
>>
>> To make that work we’d need to have a post-release branch for each release
>> that we can merge improvement-only doc commits to and that we can freely
>> move the stable docs tag forward with. It doesn’t matter if we do this on
>> the docs or the couchdb repo with included docs, but it means a little more
>> bookkeeping with branches:
>>
>> - all doc commits go into release branches (main/3.x etc)
>> - improvement-only commits are also merged into a hypothetical
>> 3.x-post-release-doc-commits[1] branch
>>
>> To me this feels like a little overhead for a nice gain, but I’d like to
>> hear from y’all if this is worth it.
>>
>> * * *
>>
>> I’m am +1 on moving 3.x to main and moving main to fdbmain in the couchdb repo.
>>
>> I have no strong opinion on moving docs into the main repo, as that doesn’t
>> solve the problem I’m most interested in, and with adding complexity about CI
>> builds, that might not be worth the hassle, but I’m also not stopping anyone
>> from putting in the work :)
>>
>> [1]: ridiculously long name chosen to avoid getting distracted with bikeshedding.
>>
>> Best
>> Jan
>> —
>> Professional Support for Apache CouchDB:
>> https://neighbourhood.ie/couchdb-support/
>>
>> *24/7 Observation for your CouchDB Instances:
>> https://opservatory.app
>>
>>> On 2. Jun 2022, at 21:40, Nick Vatamaniuc <va...@gmail.com> wrote:
>>>
>>> Hi everyone,
>>>
>>> In a #dev slack thread we were discussing improvements to how we tag
>>> our documentation repo. There were two proposals to simplify the
>>> development and release process, and we wanted to see what the rest of
>>> the community thought about it. Those two ideas are:
>>>
>>> 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
>>>
>>> From an ergonomic point of view, there is more development on the 3.x
>>> branch so having it as main makes more sense. It can help with:
>>> * Issues auto-closing when PRs are merged
>>> * Github code search works better in the default branch
>>>
>>> 2. Move docs to the main repo.
>>>
>>> We noticed that the docs repo tags/branches can get out-of-sync with
>>> the main couchdb repo. We have been merging features in main when they
>>> apply only to 3.2.x and it requires care to keep track of what gets
>>> merged and ported between branches. The idea is to simplify and make
>>> it automatic so docs always follow the main repo so merging and
>>> porting happens in one place only.
>>>
>>> What does everyone think?
>>>
>>> Thanks,
>>> -Nick
>>
Florian Beckert & Ronny Berndt GbR
Saalstraße 3
07743 Jena
Telefon: 03641 / 6391110
Fax: 03641 / 219637
Mail: post@kioskkinder.com
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Will Young <lo...@gmail.com>.
I'm fully in favor of part 1, +1
On the docs, I'd say a slightly hesitant +1 as is, given the situation
Jan describes. I still think it would be an improvement to merge the
repo since PRs which correctly update couchdb+docs would more likely
keep changes and their docs together. Aside from direct docs
synchronization for updates to functionality in couchdb's main repo, I
think this combining helps with keeping an update to any dependency
version in rebar with its changes to couchdb/docs, which could reduce
accidentally missing new visible functionality when updating
dependencies of older branches for bug fixes.
I would like to suggest that we explore options with automation to try
to help remember all doc changes for a PR. I.e. the checkbox in the PR
template can help, but maybe we could also auto-label PRs with
"no-doc-changes" to remind reviewers, and/or have triggers for PRs
that do and don't touch files under docs?
Regards,
-Will
Am Sa., 4. Juni 2022 um 11:04 Uhr schrieb Jan Lehnardt <ja...@apache.org>:
>
> Heya Nick,
>
> thanks for taking my raw idea to the larger group here :)
>
> The one other point that started the whole thing is our publishing of docs.
>
> We have a stable and a latest tag where latest just tracks the main branch
> on the docs repo and stable we move manually when a new release comes out.
>
> What does happen though is that after a release, say 3.2.2, we improve the
> documentation for something that is valid for 3.2.2. If there are no other
> changes, we can choose to move the stable tag to that commit and get
> improved documentation as stable for all users online, even though that
> strictly didn’t exist at the time of the 3.2.2 release.
>
> Now, if we first add a new feature in the 3.x line on the couchdb repo and
> document that in the main branch of the docs repo, and then the docs
> improvement from before, we can not move the stable tag on the docs repo
> as that would publish the docs for a not-yet-released feature and the
> improvement is not available until we release whatever comes after 3.2.2,
> which might be a considerable time later.
>
> My thinking was that it might be neat to follow the branch structure of the
> couchdb repo in the docs repo, so that we can make this more easily, and
> from there we got to moving docs into the main repo to avoid double
> bookkeeping, but that still doesn’t help us in the second scenario outlined
> above.
>
> To make that work we’d need to have a post-release branch for each release
> that we can merge improvement-only doc commits to and that we can freely
> move the stable docs tag forward with. It doesn’t matter if we do this on
> the docs or the couchdb repo with included docs, but it means a little more
> bookkeeping with branches:
>
> - all doc commits go into release branches (main/3.x etc)
> - improvement-only commits are also merged into a hypothetical
> 3.x-post-release-doc-commits[1] branch
>
> To me this feels like a little overhead for a nice gain, but I’d like to
> hear from y’all if this is worth it.
>
> * * *
>
> I’m am +1 on moving 3.x to main and moving main to fdbmain in the couchdb repo.
>
> I have no strong opinion on moving docs into the main repo, as that doesn’t
> solve the problem I’m most interested in, and with adding complexity about CI
> builds, that might not be worth the hassle, but I’m also not stopping anyone
> from putting in the work :)
>
> [1]: ridiculously long name chosen to avoid getting distracted with bikeshedding.
>
> Best
> Jan
> —
> Professional Support for Apache CouchDB:
> https://neighbourhood.ie/couchdb-support/
>
> *24/7 Observation for your CouchDB Instances:
> https://opservatory.app
>
> > On 2. Jun 2022, at 21:40, Nick Vatamaniuc <va...@gmail.com> wrote:
> >
> > Hi everyone,
> >
> > In a #dev slack thread we were discussing improvements to how we tag
> > our documentation repo. There were two proposals to simplify the
> > development and release process, and we wanted to see what the rest of
> > the community thought about it. Those two ideas are:
> >
> > 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
> >
> > From an ergonomic point of view, there is more development on the 3.x
> > branch so having it as main makes more sense. It can help with:
> > * Issues auto-closing when PRs are merged
> > * Github code search works better in the default branch
> >
> > 2. Move docs to the main repo.
> >
> > We noticed that the docs repo tags/branches can get out-of-sync with
> > the main couchdb repo. We have been merging features in main when they
> > apply only to 3.2.x and it requires care to keep track of what gets
> > merged and ported between branches. The idea is to simplify and make
> > it automatic so docs always follow the main repo so merging and
> > porting happens in one place only.
> >
> > What does everyone think?
> >
> > Thanks,
> > -Nick
>
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Nick Vatamaniuc <va...@gmail.com>.
It looks like we could do the branch switch fairly easily. Here is what I did:
1) Disabled main protection in .asf.yaml for main branch
2) Pushed fdbmain as branch off of main
3) Force pushed 3.x to replace main (since protection was removed)
4) Re-enabled protection for main and fdbmain
5) Replaced old 3.x branch with a single readme marker file
If you have any PRs against 3.x, rebase them on top of main
If you have any PRs against main, rebase them on top of fdbmain
Cheers,
-Nick
On Mon, Jun 6, 2022 at 12:07 PM Nick Vatamaniuc <va...@gmail.com> wrote:
>
> > I would like to suggest that we explore options with automation to try
> to help remember all doc changes for a PR. I.e. the checkbox in the PR
> template can help, but maybe we could also auto-label PRs with
> "no-doc-changes" to remind reviewers, and/or have triggers for PRs
> that do and don't touch files under docs?
>
> That's an interesting idea, Will. Something like that could work. Add
> a PR or commit label in Github perhaps? Usually what happens is that
> the docs PR follows the main code PR. So first the main PR is reviewed
> / merged, then the contributor would remember to make a separate docs
> PR. But sometimes (including myself quite often) we forget to do that.
> That's why I thought keeping it in one pull request would make it a
> bit easier to not forget and keep both exactly in sync.
>
> > Is it possible to distinguish what has been changed in a repository?
>
> That could work, Ronny! In a pull request CI job we can check the diff
> between that pull request and the branch we're merging into (main,
> 3.x). Then, see if there are any file changes to src/docs/* and
> trigger or skip various jenkins stages based on that. So if changes
> are only to docs, just run the docs CI quickly and skip the whole code
> CI. This would be for pull requests CI only. The full CI, which runs
> after the merge to main, already runs docs + fauxton + CI builds
> anyway.
>
> Regards,
> -Nick
>
>
> On Sat, Jun 4, 2022 at 2:07 PM Nick Vatamaniuc <va...@gmail.com> wrote:
> >
> > Looking at https://docs.readthedocs.io/en/stable/versions.html, they
> > recognize an explicit "stable" tag or just picks the latest semantic
> > version branch or tag. They use https://peps.python.org/pep-0440/
> > rules to parse and that allows for a ".postN" suffix for a tag/branch.
> > So we could have a 3.2.2.post1 branch if we don't want to maintain a
> > stable tag. We could even create that branch on demand from a 3.2.2
> > tag when we have docs updates after 3.2.2 is out.
> >
> > This would work with either scheme - docs in the main repo or separate
> > as they are now. The idea of keeping them in the main couchdb repo
> > (provided we can sort out the CI so usability of docs-only vs
> > code-only PRs doesn't suffer), would just keep the extra branching and
> > cherry-picking in one repo only.
> >
> > Cheers,
> > -Nick
> >
> >
> >
> > On Sat, Jun 4, 2022 at 5:04 AM Jan Lehnardt <ja...@apache.org> wrote:
> > >
> > > Heya Nick,
> > >
> > > thanks for taking my raw idea to the larger group here :)
> > >
> > > The one other point that started the whole thing is our publishing of docs.
> > >
> > > We have a stable and a latest tag where latest just tracks the main branch
> > > on the docs repo and stable we move manually when a new release comes out.
> > >
> > > What does happen though is that after a release, say 3.2.2, we improve the
> > > documentation for something that is valid for 3.2.2. If there are no other
> > > changes, we can choose to move the stable tag to that commit and get
> > > improved documentation as stable for all users online, even though that
> > > strictly didn’t exist at the time of the 3.2.2 release.
> > >
> > > Now, if we first add a new feature in the 3.x line on the couchdb repo and
> > > document that in the main branch of the docs repo, and then the docs
> > > improvement from before, we can not move the stable tag on the docs repo
> > > as that would publish the docs for a not-yet-released feature and the
> > > improvement is not available until we release whatever comes after 3.2.2,
> > > which might be a considerable time later.
> > >
> > > My thinking was that it might be neat to follow the branch structure of the
> > > couchdb repo in the docs repo, so that we can make this more easily, and
> > > from there we got to moving docs into the main repo to avoid double
> > > bookkeeping, but that still doesn’t help us in the second scenario outlined
> > > above.
> > >
> > > To make that work we’d need to have a post-release branch for each release
> > > that we can merge improvement-only doc commits to and that we can freely
> > > move the stable docs tag forward with. It doesn’t matter if we do this on
> > > the docs or the couchdb repo with included docs, but it means a little more
> > > bookkeeping with branches:
> > >
> > > - all doc commits go into release branches (main/3.x etc)
> > > - improvement-only commits are also merged into a hypothetical
> > > 3.x-post-release-doc-commits[1] branch
> > >
> > > To me this feels like a little overhead for a nice gain, but I’d like to
> > > hear from y’all if this is worth it.
> > >
> > > * * *
> > >
> > > I’m am +1 on moving 3.x to main and moving main to fdbmain in the couchdb repo.
> > >
> > > I have no strong opinion on moving docs into the main repo, as that doesn’t
> > > solve the problem I’m most interested in, and with adding complexity about CI
> > > builds, that might not be worth the hassle, but I’m also not stopping anyone
> > > from putting in the work :)
> > >
> > > [1]: ridiculously long name chosen to avoid getting distracted with bikeshedding.
> > >
> > > Best
> > > Jan
> > > —
> > > Professional Support for Apache CouchDB:
> > > https://neighbourhood.ie/couchdb-support/
> > >
> > > *24/7 Observation for your CouchDB Instances:
> > > https://opservatory.app
> > >
> > > > On 2. Jun 2022, at 21:40, Nick Vatamaniuc <va...@gmail.com> wrote:
> > > >
> > > > Hi everyone,
> > > >
> > > > In a #dev slack thread we were discussing improvements to how we tag
> > > > our documentation repo. There were two proposals to simplify the
> > > > development and release process, and we wanted to see what the rest of
> > > > the community thought about it. Those two ideas are:
> > > >
> > > > 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
> > > >
> > > > From an ergonomic point of view, there is more development on the 3.x
> > > > branch so having it as main makes more sense. It can help with:
> > > > * Issues auto-closing when PRs are merged
> > > > * Github code search works better in the default branch
> > > >
> > > > 2. Move docs to the main repo.
> > > >
> > > > We noticed that the docs repo tags/branches can get out-of-sync with
> > > > the main couchdb repo. We have been merging features in main when they
> > > > apply only to 3.2.x and it requires care to keep track of what gets
> > > > merged and ported between branches. The idea is to simplify and make
> > > > it automatic so docs always follow the main repo so merging and
> > > > porting happens in one place only.
> > > >
> > > > What does everyone think?
> > > >
> > > > Thanks,
> > > > -Nick
> > >
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Nick Vatamaniuc <va...@gmail.com>.
> I would like to suggest that we explore options with automation to try
to help remember all doc changes for a PR. I.e. the checkbox in the PR
template can help, but maybe we could also auto-label PRs with
"no-doc-changes" to remind reviewers, and/or have triggers for PRs
that do and don't touch files under docs?
That's an interesting idea, Will. Something like that could work. Add
a PR or commit label in Github perhaps? Usually what happens is that
the docs PR follows the main code PR. So first the main PR is reviewed
/ merged, then the contributor would remember to make a separate docs
PR. But sometimes (including myself quite often) we forget to do that.
That's why I thought keeping it in one pull request would make it a
bit easier to not forget and keep both exactly in sync.
> Is it possible to distinguish what has been changed in a repository?
That could work, Ronny! In a pull request CI job we can check the diff
between that pull request and the branch we're merging into (main,
3.x). Then, see if there are any file changes to src/docs/* and
trigger or skip various jenkins stages based on that. So if changes
are only to docs, just run the docs CI quickly and skip the whole code
CI. This would be for pull requests CI only. The full CI, which runs
after the merge to main, already runs docs + fauxton + CI builds
anyway.
Regards,
-Nick
On Sat, Jun 4, 2022 at 2:07 PM Nick Vatamaniuc <va...@gmail.com> wrote:
>
> Looking at https://docs.readthedocs.io/en/stable/versions.html, they
> recognize an explicit "stable" tag or just picks the latest semantic
> version branch or tag. They use https://peps.python.org/pep-0440/
> rules to parse and that allows for a ".postN" suffix for a tag/branch.
> So we could have a 3.2.2.post1 branch if we don't want to maintain a
> stable tag. We could even create that branch on demand from a 3.2.2
> tag when we have docs updates after 3.2.2 is out.
>
> This would work with either scheme - docs in the main repo or separate
> as they are now. The idea of keeping them in the main couchdb repo
> (provided we can sort out the CI so usability of docs-only vs
> code-only PRs doesn't suffer), would just keep the extra branching and
> cherry-picking in one repo only.
>
> Cheers,
> -Nick
>
>
>
> On Sat, Jun 4, 2022 at 5:04 AM Jan Lehnardt <ja...@apache.org> wrote:
> >
> > Heya Nick,
> >
> > thanks for taking my raw idea to the larger group here :)
> >
> > The one other point that started the whole thing is our publishing of docs.
> >
> > We have a stable and a latest tag where latest just tracks the main branch
> > on the docs repo and stable we move manually when a new release comes out.
> >
> > What does happen though is that after a release, say 3.2.2, we improve the
> > documentation for something that is valid for 3.2.2. If there are no other
> > changes, we can choose to move the stable tag to that commit and get
> > improved documentation as stable for all users online, even though that
> > strictly didn’t exist at the time of the 3.2.2 release.
> >
> > Now, if we first add a new feature in the 3.x line on the couchdb repo and
> > document that in the main branch of the docs repo, and then the docs
> > improvement from before, we can not move the stable tag on the docs repo
> > as that would publish the docs for a not-yet-released feature and the
> > improvement is not available until we release whatever comes after 3.2.2,
> > which might be a considerable time later.
> >
> > My thinking was that it might be neat to follow the branch structure of the
> > couchdb repo in the docs repo, so that we can make this more easily, and
> > from there we got to moving docs into the main repo to avoid double
> > bookkeeping, but that still doesn’t help us in the second scenario outlined
> > above.
> >
> > To make that work we’d need to have a post-release branch for each release
> > that we can merge improvement-only doc commits to and that we can freely
> > move the stable docs tag forward with. It doesn’t matter if we do this on
> > the docs or the couchdb repo with included docs, but it means a little more
> > bookkeeping with branches:
> >
> > - all doc commits go into release branches (main/3.x etc)
> > - improvement-only commits are also merged into a hypothetical
> > 3.x-post-release-doc-commits[1] branch
> >
> > To me this feels like a little overhead for a nice gain, but I’d like to
> > hear from y’all if this is worth it.
> >
> > * * *
> >
> > I’m am +1 on moving 3.x to main and moving main to fdbmain in the couchdb repo.
> >
> > I have no strong opinion on moving docs into the main repo, as that doesn’t
> > solve the problem I’m most interested in, and with adding complexity about CI
> > builds, that might not be worth the hassle, but I’m also not stopping anyone
> > from putting in the work :)
> >
> > [1]: ridiculously long name chosen to avoid getting distracted with bikeshedding.
> >
> > Best
> > Jan
> > —
> > Professional Support for Apache CouchDB:
> > https://neighbourhood.ie/couchdb-support/
> >
> > *24/7 Observation for your CouchDB Instances:
> > https://opservatory.app
> >
> > > On 2. Jun 2022, at 21:40, Nick Vatamaniuc <va...@gmail.com> wrote:
> > >
> > > Hi everyone,
> > >
> > > In a #dev slack thread we were discussing improvements to how we tag
> > > our documentation repo. There were two proposals to simplify the
> > > development and release process, and we wanted to see what the rest of
> > > the community thought about it. Those two ideas are:
> > >
> > > 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
> > >
> > > From an ergonomic point of view, there is more development on the 3.x
> > > branch so having it as main makes more sense. It can help with:
> > > * Issues auto-closing when PRs are merged
> > > * Github code search works better in the default branch
> > >
> > > 2. Move docs to the main repo.
> > >
> > > We noticed that the docs repo tags/branches can get out-of-sync with
> > > the main couchdb repo. We have been merging features in main when they
> > > apply only to 3.2.x and it requires care to keep track of what gets
> > > merged and ported between branches. The idea is to simplify and make
> > > it automatic so docs always follow the main repo so merging and
> > > porting happens in one place only.
> > >
> > > What does everyone think?
> > >
> > > Thanks,
> > > -Nick
> >
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Nick Vatamaniuc <va...@gmail.com>.
Looking at https://docs.readthedocs.io/en/stable/versions.html, they
recognize an explicit "stable" tag or just picks the latest semantic
version branch or tag. They use https://peps.python.org/pep-0440/
rules to parse and that allows for a ".postN" suffix for a tag/branch.
So we could have a 3.2.2.post1 branch if we don't want to maintain a
stable tag. We could even create that branch on demand from a 3.2.2
tag when we have docs updates after 3.2.2 is out.
This would work with either scheme - docs in the main repo or separate
as they are now. The idea of keeping them in the main couchdb repo
(provided we can sort out the CI so usability of docs-only vs
code-only PRs doesn't suffer), would just keep the extra branching and
cherry-picking in one repo only.
Cheers,
-Nick
On Sat, Jun 4, 2022 at 5:04 AM Jan Lehnardt <ja...@apache.org> wrote:
>
> Heya Nick,
>
> thanks for taking my raw idea to the larger group here :)
>
> The one other point that started the whole thing is our publishing of docs.
>
> We have a stable and a latest tag where latest just tracks the main branch
> on the docs repo and stable we move manually when a new release comes out.
>
> What does happen though is that after a release, say 3.2.2, we improve the
> documentation for something that is valid for 3.2.2. If there are no other
> changes, we can choose to move the stable tag to that commit and get
> improved documentation as stable for all users online, even though that
> strictly didn’t exist at the time of the 3.2.2 release.
>
> Now, if we first add a new feature in the 3.x line on the couchdb repo and
> document that in the main branch of the docs repo, and then the docs
> improvement from before, we can not move the stable tag on the docs repo
> as that would publish the docs for a not-yet-released feature and the
> improvement is not available until we release whatever comes after 3.2.2,
> which might be a considerable time later.
>
> My thinking was that it might be neat to follow the branch structure of the
> couchdb repo in the docs repo, so that we can make this more easily, and
> from there we got to moving docs into the main repo to avoid double
> bookkeeping, but that still doesn’t help us in the second scenario outlined
> above.
>
> To make that work we’d need to have a post-release branch for each release
> that we can merge improvement-only doc commits to and that we can freely
> move the stable docs tag forward with. It doesn’t matter if we do this on
> the docs or the couchdb repo with included docs, but it means a little more
> bookkeeping with branches:
>
> - all doc commits go into release branches (main/3.x etc)
> - improvement-only commits are also merged into a hypothetical
> 3.x-post-release-doc-commits[1] branch
>
> To me this feels like a little overhead for a nice gain, but I’d like to
> hear from y’all if this is worth it.
>
> * * *
>
> I’m am +1 on moving 3.x to main and moving main to fdbmain in the couchdb repo.
>
> I have no strong opinion on moving docs into the main repo, as that doesn’t
> solve the problem I’m most interested in, and with adding complexity about CI
> builds, that might not be worth the hassle, but I’m also not stopping anyone
> from putting in the work :)
>
> [1]: ridiculously long name chosen to avoid getting distracted with bikeshedding.
>
> Best
> Jan
> —
> Professional Support for Apache CouchDB:
> https://neighbourhood.ie/couchdb-support/
>
> *24/7 Observation for your CouchDB Instances:
> https://opservatory.app
>
> > On 2. Jun 2022, at 21:40, Nick Vatamaniuc <va...@gmail.com> wrote:
> >
> > Hi everyone,
> >
> > In a #dev slack thread we were discussing improvements to how we tag
> > our documentation repo. There were two proposals to simplify the
> > development and release process, and we wanted to see what the rest of
> > the community thought about it. Those two ideas are:
> >
> > 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
> >
> > From an ergonomic point of view, there is more development on the 3.x
> > branch so having it as main makes more sense. It can help with:
> > * Issues auto-closing when PRs are merged
> > * Github code search works better in the default branch
> >
> > 2. Move docs to the main repo.
> >
> > We noticed that the docs repo tags/branches can get out-of-sync with
> > the main couchdb repo. We have been merging features in main when they
> > apply only to 3.2.x and it requires care to keep track of what gets
> > merged and ported between branches. The idea is to simplify and make
> > it automatic so docs always follow the main repo so merging and
> > porting happens in one place only.
> >
> > What does everyone think?
> >
> > Thanks,
> > -Nick
>
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Jan Lehnardt <ja...@apache.org>.
Heya Nick,
thanks for taking my raw idea to the larger group here :)
The one other point that started the whole thing is our publishing of docs.
We have a stable and a latest tag where latest just tracks the main branch
on the docs repo and stable we move manually when a new release comes out.
What does happen though is that after a release, say 3.2.2, we improve the
documentation for something that is valid for 3.2.2. If there are no other
changes, we can choose to move the stable tag to that commit and get
improved documentation as stable for all users online, even though that
strictly didn’t exist at the time of the 3.2.2 release.
Now, if we first add a new feature in the 3.x line on the couchdb repo and
document that in the main branch of the docs repo, and then the docs
improvement from before, we can not move the stable tag on the docs repo
as that would publish the docs for a not-yet-released feature and the
improvement is not available until we release whatever comes after 3.2.2,
which might be a considerable time later.
My thinking was that it might be neat to follow the branch structure of the
couchdb repo in the docs repo, so that we can make this more easily, and
from there we got to moving docs into the main repo to avoid double
bookkeeping, but that still doesn’t help us in the second scenario outlined
above.
To make that work we’d need to have a post-release branch for each release
that we can merge improvement-only doc commits to and that we can freely
move the stable docs tag forward with. It doesn’t matter if we do this on
the docs or the couchdb repo with included docs, but it means a little more
bookkeeping with branches:
- all doc commits go into release branches (main/3.x etc)
- improvement-only commits are also merged into a hypothetical
3.x-post-release-doc-commits[1] branch
To me this feels like a little overhead for a nice gain, but I’d like to
hear from y’all if this is worth it.
* * *
I’m am +1 on moving 3.x to main and moving main to fdbmain in the couchdb repo.
I have no strong opinion on moving docs into the main repo, as that doesn’t
solve the problem I’m most interested in, and with adding complexity about CI
builds, that might not be worth the hassle, but I’m also not stopping anyone
from putting in the work :)
[1]: ridiculously long name chosen to avoid getting distracted with bikeshedding.
Best
Jan
—
Professional Support for Apache CouchDB:
https://neighbourhood.ie/couchdb-support/
*24/7 Observation for your CouchDB Instances:
https://opservatory.app
> On 2. Jun 2022, at 21:40, Nick Vatamaniuc <va...@gmail.com> wrote:
>
> Hi everyone,
>
> In a #dev slack thread we were discussing improvements to how we tag
> our documentation repo. There were two proposals to simplify the
> development and release process, and we wanted to see what the rest of
> the community thought about it. Those two ideas are:
>
> 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
>
> From an ergonomic point of view, there is more development on the 3.x
> branch so having it as main makes more sense. It can help with:
> * Issues auto-closing when PRs are merged
> * Github code search works better in the default branch
>
> 2. Move docs to the main repo.
>
> We noticed that the docs repo tags/branches can get out-of-sync with
> the main couchdb repo. We have been merging features in main when they
> apply only to 3.2.x and it requires care to keep track of what gets
> merged and ported between branches. The idea is to simplify and make
> it automatic so docs always follow the main repo so merging and
> porting happens in one place only.
>
> What does everyone think?
>
> Thanks,
> -Nick
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by "Alessio Biancalana (Blaster)" <do...@gmail.com>.
+1 on my side too.
Alessio
> Il giorno 2 giu 2022, alle ore 23:18, Robert Newson <rn...@apache.org> ha scritto:
>
> +1. It's time.
>
> B.
>
>> On 2 Jun 2022, at 20:40, Nick Vatamaniuc <va...@gmail.com> wrote:
>>
>> Hi everyone,
>>
>> In a #dev slack thread we were discussing improvements to how we tag
>> our documentation repo. There were two proposals to simplify the
>> development and release process, and we wanted to see what the rest of
>> the community thought about it. Those two ideas are:
>>
>> 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
>>
>> From an ergonomic point of view, there is more development on the 3.x
>> branch so having it as main makes more sense. It can help with:
>> * Issues auto-closing when PRs are merged
>> * Github code search works better in the default branch
>>
>> 2. Move docs to the main repo.
>>
>> We noticed that the docs repo tags/branches can get out-of-sync with
>> the main couchdb repo. We have been merging features in main when they
>> apply only to 3.2.x and it requires care to keep track of what gets
>> merged and ported between branches. The idea is to simplify and make
>> it automatic so docs always follow the main repo so merging and
>> porting happens in one place only.
>>
>> What does everyone think?
>>
>> Thanks,
>> -Nick
>
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Robert Newson <rn...@apache.org>.
+1. It's time.
B.
> On 2 Jun 2022, at 20:40, Nick Vatamaniuc <va...@gmail.com> wrote:
>
> Hi everyone,
>
> In a #dev slack thread we were discussing improvements to how we tag
> our documentation repo. There were two proposals to simplify the
> development and release process, and we wanted to see what the rest of
> the community thought about it. Those two ideas are:
>
> 1. Rename couchdb repo's main branch to fdbmain and rename 3.x to main.
>
> From an ergonomic point of view, there is more development on the 3.x
> branch so having it as main makes more sense. It can help with:
> * Issues auto-closing when PRs are merged
> * Github code search works better in the default branch
>
> 2. Move docs to the main repo.
>
> We noticed that the docs repo tags/branches can get out-of-sync with
> the main couchdb repo. We have been merging features in main when they
> apply only to 3.2.x and it requires care to keep track of what gets
> merged and ported between branches. The idea is to simplify and make
> it automatic so docs always follow the main repo so merging and
> porting happens in one place only.
>
> What does everyone think?
>
> Thanks,
> -Nick
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Nick Vatamaniuc <va...@gmail.com>.
Good point about the CI, Jonathan. I think if we do this there might
be a way to skip the full CI if only docs changed.
As for historical reason, others would have to correct me here, but I
think there was a trend to split projects into smaller repositories,
one per Erlang application (roughly). Then, eventually, the trend
went back to having a single repo.
Regards,
-Nick
On Fri, Jun 3, 2022 at 8:04 AM Jonathan Hall <fl...@flimzy.com> wrote:
>
> On 6/2/22 21:40, Nick Vatamaniuc wrote:
>
> > 2. Move docs to the main repo.
> >
> > We noticed that the docs repo tags/branches can get out-of-sync with
> > the main couchdb repo. We have been merging features in main when they
> > apply only to 3.2.x and it requires care to keep track of what gets
> > merged and ported between branches. The idea is to simplify and make
> > it automatic so docs always follow the main repo so merging and
> > porting happens in one place only.
>
> I think I'm in favor of this. I can think of several times when it would
> have simplified things. But I'm curious: Why hasn't this been done
> before? Or why did we start with separate repos? Are there any drawbacks
> we should be considering?
>
> For example, would CI or automated builds be made more difficult or slow?
>
> > What does everyone think?
> >
> > Thanks,
> > -Nick
Re: [DISCUSSION] Rename 3.x branch to main and include docs in the main repo
Posted by Jonathan Hall <fl...@flimzy.com>.
On 6/2/22 21:40, Nick Vatamaniuc wrote:
> 2. Move docs to the main repo.
>
> We noticed that the docs repo tags/branches can get out-of-sync with
> the main couchdb repo. We have been merging features in main when they
> apply only to 3.2.x and it requires care to keep track of what gets
> merged and ported between branches. The idea is to simplify and make
> it automatic so docs always follow the main repo so merging and
> porting happens in one place only.
I think I'm in favor of this. I can think of several times when it would
have simplified things. But I'm curious: Why hasn't this been done
before? Or why did we start with separate repos? Are there any drawbacks
we should be considering?
For example, would CI or automated builds be made more difficult or slow?
> What does everyone think?
>
> Thanks,
> -Nick