You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ozone.apache.org by Ethan Rose <er...@apache.org> on 2024/02/09 00:14:06 UTC

[VOTE] Change the default branch for ozone-site from asf-site to master

Hi Ozone devs,

I’d like to start a vote thread to change the default branch in the
apache/ozone-site <https://github.com/apache/ozone-site> repo from asf-site
to master. Changing the default branch requires an Infra ticket and mailing
thread according to the asfyaml README
<https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch>.
I’ll start with some questions you may have when deciding to vote:

*Does this have anything to do with the new website development that is
happening on the feature branch HDDS-9225-website-v2
<https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*

No, this has nothing to do with the new website. The change would be
effective for the existing website only since it concerns the asf-site and
master branches, neither of which the new website uses right now.

*What is the difference between asf-site and master?*

The master branch contains the code that we modify and commit to change the
website. The asf-site branch contains the already built website. The
contents of asf-site are automatically generated from master and committed
by a GitHub Action
<https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml>.
From there, existing ASF services read the .asf.yml
<https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in the
asf-site branch and copy the built contents from that branch to wherever
the ASF is hosting the static sites for projects.

*Why should we change the default branch from asf-site to master?*

   1. (My primary motivation) Pull request templates only work if they
are committed
   to the default branch
   <https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates>
   .
   Committing the PR template from HDDS-10267
   <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
   branch would be clunky and difficult to modify. It is better to leave that
   branch for auto generated content only. That PR template currently does not
   work since it is not on the asf-site (current default) branch.
   2. It’s confusing for users who go to the site on GitHub or clone the
   repo and expect to see the code they should modify to change the site.
   Instead they have to find the branch that actually has the code that the
   asf-site build content came from.
   3. (Minor) PRs default to using the default branch. When filing a PR for
   the website, GitHub suggests using asf-site first, which gives a message
   stating that the changes cannot be merged since there is no common history.

*Why is our current default asf-site?*

I’m not sure, maybe someone in the community has historical context on
this. It could be because this is the branch that pre-built docs are
committed to when we copy them from the main Ozone repo (a practice we are
looking to get rid of in the new website). It also seems there were
some changes
to branch publishing made around May 2021
<https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site>
so perhaps it was required to be this way for publishing before those
updates.

*Is there any standard among other ASF projects for which branch should be
the default?*

I’ve looked at a bunch of other project’s websites and have yet to find one
that’s using asf-site as the default. They are all using the development
branch (equivalent to our master branch) as the default branch. See

   - https://github.com/apache/yunikorn-site
   - https://github.com/apache/streampipes-website
   - https://github.com/apache/kvrocks-website
   - https://github.com/apache/pulsar-site
   - https://github.com/apache/doris-website
   - https://github.com/apache/rocketmq-site

*Will this affect the existing website?*

This should not affect the existing website. The branch to use for
deployment is hardcoded in .asf.yml
<https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
implied from the repository’s default branch setting. Deployment should
work as usual. I will double check with infra on the ticket to make sure no
changes are required when making this change.

Overall a long winded email for a pretty simple change. I’ll start with my
+1 with the hope of incrementally improving the development experience of
the current site, and in the future, the new website as well.

Ethan

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Ethan Rose <er...@apache.org>.
INFRA-25530 is resolved and the default branch for apache/ozone-site is now
master. The PR template is merged there as well and is now effective for
pull requests across the repo.

Thanks all for your participation,

Ethan

On Thu, Feb 22, 2024 at 1:49 PM Ethan Rose <er...@apache.org> wrote:

> Follow https://issues.apache.org/jira/browse/INFRA-25530 if you would
> like more updates on this change.
>
> On Thu, Feb 22, 2024 at 1:21 PM Ethan Rose <er...@cloudera.com> wrote:
>
>> Thanks everyone for voting. After running for 2 weeks the vote has passed
>> with:
>> 13 +1s (including 7 binding PMC +1s)
>> No -1s
>> No 0s
>>
>> I will create an infra ticket to change the branch and provide updates on
>> this thread.
>>
>> Ethan
>>
>> On Thu, Feb 22, 2024 at 9:37 AM Sadanand Shenoy <ss...@apache.org>
>> wrote:
>>
>>> +1
>>>
>>> Thanks,
>>> Sadanand
>>>
>>> On Thu, Feb 22, 2024 at 10:34 PM swaminathan balachandran <
>>> swamirishi.sb@gmail.com> wrote:
>>>
>>> > +1
>>> > Thanks for explaining the problem.
>>> >
>>> > On Thu, Feb 22, 2024 at 1:17 AM Nandakumar Vadivelu
>>> > <nv...@cloudera.com.invalid> wrote:
>>> >
>>> > > +1
>>> > > Thanks for the detailed description Ethan.
>>> > >
>>> > > > On 21-Feb-2024, at 10:13 PM, Arpit Agarwal
>>> > <aa...@cloudera.com.INVALID>
>>> > > wrote:
>>> > > >
>>> > > > +1
>>> > > >
>>> > > > Thanks for the well-written description Ethan. I missed this thread
>>> > > earlier.
>>> > > >
>>> > > > On Feb 20, 2024 at 10:21:38 PM, Dinesh Chitlangia <
>>> dineshc@apache.org>
>>> > > > wrote:
>>> > > >
>>> > > >> +1
>>> > > >>
>>> > > >> Thanks,
>>> > > >> Dinesh
>>> > > >>
>>> > > >> On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org>
>>> wrote:
>>> > > >>
>>> > > >> Hi Ozone devs,
>>> > > >>
>>> > > >>
>>> > > >> I’d like to start a vote thread to change the default branch in
>>> the
>>> > > >>
>>> > > >> apache/ozone-site <https://github.com/apache/ozone-site> repo
>>> from
>>> > > >>
>>> > > >> asf-site
>>> > > >>
>>> > > >> to master. Changing the default branch requires an Infra ticket
>>> and
>>> > > mailing
>>> > > >>
>>> > > >> thread according to the asfyaml README
>>> > > >>
>>> > > >> <
>>> > > >>
>>> > > >>
>>> > > >>
>>> > >
>>> >
>>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
>>> > > >>
>>> > > >>> .
>>> > > >>
>>> > > >> I’ll start with some questions you may have when deciding to vote:
>>> > > >>
>>> > > >>
>>> > > >> *Does this have anything to do with the new website development
>>> that
>>> > is
>>> > > >>
>>> > > >> happening on the feature branch HDDS-9225-website-v2
>>> > > >>
>>> > > >> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2
>>> >?*
>>> > > >>
>>> > > >>
>>> > > >> No, this has nothing to do with the new website. The change would
>>> be
>>> > > >>
>>> > > >> effective for the existing website only since it concerns the
>>> asf-site
>>> > > and
>>> > > >>
>>> > > >> master branches, neither of which the new website uses right now.
>>> > > >>
>>> > > >>
>>> > > >> *What is the difference between asf-site and master?*
>>> > > >>
>>> > > >>
>>> > > >> The master branch contains the code that we modify and commit to
>>> > change
>>> > > the
>>> > > >>
>>> > > >> website. The asf-site branch contains the already built website.
>>> The
>>> > > >>
>>> > > >> contents of asf-site are automatically generated from master and
>>> > > committed
>>> > > >>
>>> > > >> by a GitHub Action
>>> > > >>
>>> > > >> <
>>> > > >>
>>> > > >>
>>> > > >>
>>> > >
>>> >
>>> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
>>> > > >>
>>> > > >>> .
>>> > > >>
>>> > > >> From there, existing ASF services read the .asf.yml
>>> > > >>
>>> > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml>
>>> file
>>> > in
>>> > > the
>>> > > >>
>>> > > >> asf-site branch and copy the built contents from that branch to
>>> > wherever
>>> > > >>
>>> > > >> the ASF is hosting the static sites for projects.
>>> > > >>
>>> > > >>
>>> > > >> *Why should we change the default branch from asf-site to master?*
>>> > > >>
>>> > > >>
>>> > > >>   1. (My primary motivation) Pull request templates only work if
>>> they
>>> > > >>
>>> > > >> are committed
>>> > > >>
>>> > > >>   to the default branch
>>> > > >>
>>> > > >>   <
>>> > > >>
>>> > > >>
>>> > > >>
>>> > >
>>> >
>>> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
>>> > > >>
>>> > > >>>
>>> > > >>
>>> > > >>   .
>>> > > >>
>>> > > >>   Committing the PR template from HDDS-10267
>>> > > >>
>>> > > >>   <https://issues.apache.org/jira/browse/HDDS-10267> to the
>>> asf-site
>>> > > >>
>>> > > >>   branch would be clunky and difficult to modify. It is better to
>>> > leave
>>> > > >>
>>> > > >> that
>>> > > >>
>>> > > >>   branch for auto generated content only. That PR template
>>> currently
>>> > > does
>>> > > >>
>>> > > >> not
>>> > > >>
>>> > > >>   work since it is not on the asf-site (current default) branch.
>>> > > >>
>>> > > >>   2. It’s confusing for users who go to the site on GitHub or
>>> clone
>>> > the
>>> > > >>
>>> > > >>   repo and expect to see the code they should modify to change the
>>> > site.
>>> > > >>
>>> > > >>   Instead they have to find the branch that actually has the code
>>> that
>>> > > the
>>> > > >>
>>> > > >>   asf-site build content came from.
>>> > > >>
>>> > > >>   3. (Minor) PRs default to using the default branch. When filing
>>> a PR
>>> > > for
>>> > > >>
>>> > > >>   the website, GitHub suggests using asf-site first, which gives a
>>> > > message
>>> > > >>
>>> > > >>   stating that the changes cannot be merged since there is no
>>> common
>>> > > >>
>>> > > >> history.
>>> > > >>
>>> > > >>
>>> > > >> *Why is our current default asf-site?*
>>> > > >>
>>> > > >>
>>> > > >> I’m not sure, maybe someone in the community has historical
>>> context on
>>> > > >>
>>> > > >> this. It could be because this is the branch that pre-built docs
>>> are
>>> > > >>
>>> > > >> committed to when we copy them from the main Ozone repo (a
>>> practice we
>>> > > are
>>> > > >>
>>> > > >> looking to get rid of in the new website). It also seems there
>>> were
>>> > > >>
>>> > > >> some changes
>>> > > >>
>>> > > >> to branch publishing made around May 2021
>>> > > >>
>>> > > >> <
>>> > > >>
>>> > > >>
>>> > > >>
>>> > >
>>> >
>>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
>>> > > >>
>>> > > >>>
>>> > > >>
>>> > > >> so perhaps it was required to be this way for publishing before
>>> those
>>> > > >>
>>> > > >> updates.
>>> > > >>
>>> > > >>
>>> > > >> *Is there any standard among other ASF projects for which branch
>>> > should
>>> > > be
>>> > > >>
>>> > > >> the default?*
>>> > > >>
>>> > > >>
>>> > > >> I’ve looked at a bunch of other project’s websites and have yet to
>>> > find
>>> > > one
>>> > > >>
>>> > > >> that’s using asf-site as the default. They are all using the
>>> > development
>>> > > >>
>>> > > >> branch (equivalent to our master branch) as the default branch.
>>> See
>>> > > >>
>>> > > >>
>>> > > >>   - https://github.com/apache/yunikorn-site
>>> > > >>
>>> > > >>   - https://github.com/apache/streampipes-website
>>> > > >>
>>> > > >>   - https://github.com/apache/kvrocks-website
>>> > > >>
>>> > > >>   - https://github.com/apache/pulsar-site
>>> > > >>
>>> > > >>   - https://github.com/apache/doris-website
>>> > > >>
>>> > > >>   - https://github.com/apache/rocketmq-site
>>> > > >>
>>> > > >>
>>> > > >> *Will this affect the existing website?*
>>> > > >>
>>> > > >>
>>> > > >> This should not affect the existing website. The branch to use for
>>> > > >>
>>> > > >> deployment is hardcoded in .asf.yml
>>> > > >>
>>> > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml>
>>> and
>>> > not
>>> > > >>
>>> > > >> implied from the repository’s default branch setting. Deployment
>>> > should
>>> > > >>
>>> > > >> work as usual. I will double check with infra on the ticket to
>>> make
>>> > > sure no
>>> > > >>
>>> > > >> changes are required when making this change.
>>> > > >>
>>> > > >>
>>> > > >> Overall a long winded email for a pretty simple change. I’ll start
>>> > with
>>> > > my
>>> > > >>
>>> > > >> +1 with the hope of incrementally improving the development
>>> experience
>>> > > of
>>> > > >>
>>> > > >> the current site, and in the future, the new website as well.
>>> > > >>
>>> > > >>
>>> > > >> Ethan
>>> > > >>
>>> > > >>
>>> > > >>
>>> > >
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
>>> > > For additional commands, e-mail: dev-help@ozone.apache.org
>>> > >
>>> > >
>>> >
>>>
>>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Ethan Rose <er...@apache.org>.
Follow https://issues.apache.org/jira/browse/INFRA-25530 if you would like
more updates on this change.

On Thu, Feb 22, 2024 at 1:21 PM Ethan Rose <er...@cloudera.com> wrote:

> Thanks everyone for voting. After running for 2 weeks the vote has passed
> with:
> 13 +1s (including 7 binding PMC +1s)
> No -1s
> No 0s
>
> I will create an infra ticket to change the branch and provide updates on
> this thread.
>
> Ethan
>
> On Thu, Feb 22, 2024 at 9:37 AM Sadanand Shenoy <ss...@apache.org>
> wrote:
>
>> +1
>>
>> Thanks,
>> Sadanand
>>
>> On Thu, Feb 22, 2024 at 10:34 PM swaminathan balachandran <
>> swamirishi.sb@gmail.com> wrote:
>>
>> > +1
>> > Thanks for explaining the problem.
>> >
>> > On Thu, Feb 22, 2024 at 1:17 AM Nandakumar Vadivelu
>> > <nv...@cloudera.com.invalid> wrote:
>> >
>> > > +1
>> > > Thanks for the detailed description Ethan.
>> > >
>> > > > On 21-Feb-2024, at 10:13 PM, Arpit Agarwal
>> > <aa...@cloudera.com.INVALID>
>> > > wrote:
>> > > >
>> > > > +1
>> > > >
>> > > > Thanks for the well-written description Ethan. I missed this thread
>> > > earlier.
>> > > >
>> > > > On Feb 20, 2024 at 10:21:38 PM, Dinesh Chitlangia <
>> dineshc@apache.org>
>> > > > wrote:
>> > > >
>> > > >> +1
>> > > >>
>> > > >> Thanks,
>> > > >> Dinesh
>> > > >>
>> > > >> On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org>
>> wrote:
>> > > >>
>> > > >> Hi Ozone devs,
>> > > >>
>> > > >>
>> > > >> I’d like to start a vote thread to change the default branch in the
>> > > >>
>> > > >> apache/ozone-site <https://github.com/apache/ozone-site> repo from
>> > > >>
>> > > >> asf-site
>> > > >>
>> > > >> to master. Changing the default branch requires an Infra ticket and
>> > > mailing
>> > > >>
>> > > >> thread according to the asfyaml README
>> > > >>
>> > > >> <
>> > > >>
>> > > >>
>> > > >>
>> > >
>> >
>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
>> > > >>
>> > > >>> .
>> > > >>
>> > > >> I’ll start with some questions you may have when deciding to vote:
>> > > >>
>> > > >>
>> > > >> *Does this have anything to do with the new website development
>> that
>> > is
>> > > >>
>> > > >> happening on the feature branch HDDS-9225-website-v2
>> > > >>
>> > > >> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
>> > > >>
>> > > >>
>> > > >> No, this has nothing to do with the new website. The change would
>> be
>> > > >>
>> > > >> effective for the existing website only since it concerns the
>> asf-site
>> > > and
>> > > >>
>> > > >> master branches, neither of which the new website uses right now.
>> > > >>
>> > > >>
>> > > >> *What is the difference between asf-site and master?*
>> > > >>
>> > > >>
>> > > >> The master branch contains the code that we modify and commit to
>> > change
>> > > the
>> > > >>
>> > > >> website. The asf-site branch contains the already built website.
>> The
>> > > >>
>> > > >> contents of asf-site are automatically generated from master and
>> > > committed
>> > > >>
>> > > >> by a GitHub Action
>> > > >>
>> > > >> <
>> > > >>
>> > > >>
>> > > >>
>> > >
>> >
>> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
>> > > >>
>> > > >>> .
>> > > >>
>> > > >> From there, existing ASF services read the .asf.yml
>> > > >>
>> > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml>
>> file
>> > in
>> > > the
>> > > >>
>> > > >> asf-site branch and copy the built contents from that branch to
>> > wherever
>> > > >>
>> > > >> the ASF is hosting the static sites for projects.
>> > > >>
>> > > >>
>> > > >> *Why should we change the default branch from asf-site to master?*
>> > > >>
>> > > >>
>> > > >>   1. (My primary motivation) Pull request templates only work if
>> they
>> > > >>
>> > > >> are committed
>> > > >>
>> > > >>   to the default branch
>> > > >>
>> > > >>   <
>> > > >>
>> > > >>
>> > > >>
>> > >
>> >
>> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
>> > > >>
>> > > >>>
>> > > >>
>> > > >>   .
>> > > >>
>> > > >>   Committing the PR template from HDDS-10267
>> > > >>
>> > > >>   <https://issues.apache.org/jira/browse/HDDS-10267> to the
>> asf-site
>> > > >>
>> > > >>   branch would be clunky and difficult to modify. It is better to
>> > leave
>> > > >>
>> > > >> that
>> > > >>
>> > > >>   branch for auto generated content only. That PR template
>> currently
>> > > does
>> > > >>
>> > > >> not
>> > > >>
>> > > >>   work since it is not on the asf-site (current default) branch.
>> > > >>
>> > > >>   2. It’s confusing for users who go to the site on GitHub or clone
>> > the
>> > > >>
>> > > >>   repo and expect to see the code they should modify to change the
>> > site.
>> > > >>
>> > > >>   Instead they have to find the branch that actually has the code
>> that
>> > > the
>> > > >>
>> > > >>   asf-site build content came from.
>> > > >>
>> > > >>   3. (Minor) PRs default to using the default branch. When filing
>> a PR
>> > > for
>> > > >>
>> > > >>   the website, GitHub suggests using asf-site first, which gives a
>> > > message
>> > > >>
>> > > >>   stating that the changes cannot be merged since there is no
>> common
>> > > >>
>> > > >> history.
>> > > >>
>> > > >>
>> > > >> *Why is our current default asf-site?*
>> > > >>
>> > > >>
>> > > >> I’m not sure, maybe someone in the community has historical
>> context on
>> > > >>
>> > > >> this. It could be because this is the branch that pre-built docs
>> are
>> > > >>
>> > > >> committed to when we copy them from the main Ozone repo (a
>> practice we
>> > > are
>> > > >>
>> > > >> looking to get rid of in the new website). It also seems there were
>> > > >>
>> > > >> some changes
>> > > >>
>> > > >> to branch publishing made around May 2021
>> > > >>
>> > > >> <
>> > > >>
>> > > >>
>> > > >>
>> > >
>> >
>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
>> > > >>
>> > > >>>
>> > > >>
>> > > >> so perhaps it was required to be this way for publishing before
>> those
>> > > >>
>> > > >> updates.
>> > > >>
>> > > >>
>> > > >> *Is there any standard among other ASF projects for which branch
>> > should
>> > > be
>> > > >>
>> > > >> the default?*
>> > > >>
>> > > >>
>> > > >> I’ve looked at a bunch of other project’s websites and have yet to
>> > find
>> > > one
>> > > >>
>> > > >> that’s using asf-site as the default. They are all using the
>> > development
>> > > >>
>> > > >> branch (equivalent to our master branch) as the default branch. See
>> > > >>
>> > > >>
>> > > >>   - https://github.com/apache/yunikorn-site
>> > > >>
>> > > >>   - https://github.com/apache/streampipes-website
>> > > >>
>> > > >>   - https://github.com/apache/kvrocks-website
>> > > >>
>> > > >>   - https://github.com/apache/pulsar-site
>> > > >>
>> > > >>   - https://github.com/apache/doris-website
>> > > >>
>> > > >>   - https://github.com/apache/rocketmq-site
>> > > >>
>> > > >>
>> > > >> *Will this affect the existing website?*
>> > > >>
>> > > >>
>> > > >> This should not affect the existing website. The branch to use for
>> > > >>
>> > > >> deployment is hardcoded in .asf.yml
>> > > >>
>> > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and
>> > not
>> > > >>
>> > > >> implied from the repository’s default branch setting. Deployment
>> > should
>> > > >>
>> > > >> work as usual. I will double check with infra on the ticket to make
>> > > sure no
>> > > >>
>> > > >> changes are required when making this change.
>> > > >>
>> > > >>
>> > > >> Overall a long winded email for a pretty simple change. I’ll start
>> > with
>> > > my
>> > > >>
>> > > >> +1 with the hope of incrementally improving the development
>> experience
>> > > of
>> > > >>
>> > > >> the current site, and in the future, the new website as well.
>> > > >>
>> > > >>
>> > > >> Ethan
>> > > >>
>> > > >>
>> > > >>
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
>> > > For additional commands, e-mail: dev-help@ozone.apache.org
>> > >
>> > >
>> >
>>
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Ethan Rose <er...@cloudera.com.INVALID>.
Thanks everyone for voting. After running for 2 weeks the vote has passed
with:
13 +1s (including 7 binding PMC +1s)
No -1s
No 0s

I will create an infra ticket to change the branch and provide updates on
this thread.

Ethan

On Thu, Feb 22, 2024 at 9:37 AM Sadanand Shenoy <ss...@apache.org> wrote:

> +1
>
> Thanks,
> Sadanand
>
> On Thu, Feb 22, 2024 at 10:34 PM swaminathan balachandran <
> swamirishi.sb@gmail.com> wrote:
>
> > +1
> > Thanks for explaining the problem.
> >
> > On Thu, Feb 22, 2024 at 1:17 AM Nandakumar Vadivelu
> > <nv...@cloudera.com.invalid> wrote:
> >
> > > +1
> > > Thanks for the detailed description Ethan.
> > >
> > > > On 21-Feb-2024, at 10:13 PM, Arpit Agarwal
> > <aa...@cloudera.com.INVALID>
> > > wrote:
> > > >
> > > > +1
> > > >
> > > > Thanks for the well-written description Ethan. I missed this thread
> > > earlier.
> > > >
> > > > On Feb 20, 2024 at 10:21:38 PM, Dinesh Chitlangia <
> dineshc@apache.org>
> > > > wrote:
> > > >
> > > >> +1
> > > >>
> > > >> Thanks,
> > > >> Dinesh
> > > >>
> > > >> On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org> wrote:
> > > >>
> > > >> Hi Ozone devs,
> > > >>
> > > >>
> > > >> I’d like to start a vote thread to change the default branch in the
> > > >>
> > > >> apache/ozone-site <https://github.com/apache/ozone-site> repo from
> > > >>
> > > >> asf-site
> > > >>
> > > >> to master. Changing the default branch requires an Infra ticket and
> > > mailing
> > > >>
> > > >> thread according to the asfyaml README
> > > >>
> > > >> <
> > > >>
> > > >>
> > > >>
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> > > >>
> > > >>> .
> > > >>
> > > >> I’ll start with some questions you may have when deciding to vote:
> > > >>
> > > >>
> > > >> *Does this have anything to do with the new website development that
> > is
> > > >>
> > > >> happening on the feature branch HDDS-9225-website-v2
> > > >>
> > > >> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> > > >>
> > > >>
> > > >> No, this has nothing to do with the new website. The change would be
> > > >>
> > > >> effective for the existing website only since it concerns the
> asf-site
> > > and
> > > >>
> > > >> master branches, neither of which the new website uses right now.
> > > >>
> > > >>
> > > >> *What is the difference between asf-site and master?*
> > > >>
> > > >>
> > > >> The master branch contains the code that we modify and commit to
> > change
> > > the
> > > >>
> > > >> website. The asf-site branch contains the already built website. The
> > > >>
> > > >> contents of asf-site are automatically generated from master and
> > > committed
> > > >>
> > > >> by a GitHub Action
> > > >>
> > > >> <
> > > >>
> > > >>
> > > >>
> > >
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > > >>
> > > >>> .
> > > >>
> > > >> From there, existing ASF services read the .asf.yml
> > > >>
> > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file
> > in
> > > the
> > > >>
> > > >> asf-site branch and copy the built contents from that branch to
> > wherever
> > > >>
> > > >> the ASF is hosting the static sites for projects.
> > > >>
> > > >>
> > > >> *Why should we change the default branch from asf-site to master?*
> > > >>
> > > >>
> > > >>   1. (My primary motivation) Pull request templates only work if
> they
> > > >>
> > > >> are committed
> > > >>
> > > >>   to the default branch
> > > >>
> > > >>   <
> > > >>
> > > >>
> > > >>
> > >
> >
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> > > >>
> > > >>>
> > > >>
> > > >>   .
> > > >>
> > > >>   Committing the PR template from HDDS-10267
> > > >>
> > > >>   <https://issues.apache.org/jira/browse/HDDS-10267> to the
> asf-site
> > > >>
> > > >>   branch would be clunky and difficult to modify. It is better to
> > leave
> > > >>
> > > >> that
> > > >>
> > > >>   branch for auto generated content only. That PR template currently
> > > does
> > > >>
> > > >> not
> > > >>
> > > >>   work since it is not on the asf-site (current default) branch.
> > > >>
> > > >>   2. It’s confusing for users who go to the site on GitHub or clone
> > the
> > > >>
> > > >>   repo and expect to see the code they should modify to change the
> > site.
> > > >>
> > > >>   Instead they have to find the branch that actually has the code
> that
> > > the
> > > >>
> > > >>   asf-site build content came from.
> > > >>
> > > >>   3. (Minor) PRs default to using the default branch. When filing a
> PR
> > > for
> > > >>
> > > >>   the website, GitHub suggests using asf-site first, which gives a
> > > message
> > > >>
> > > >>   stating that the changes cannot be merged since there is no common
> > > >>
> > > >> history.
> > > >>
> > > >>
> > > >> *Why is our current default asf-site?*
> > > >>
> > > >>
> > > >> I’m not sure, maybe someone in the community has historical context
> on
> > > >>
> > > >> this. It could be because this is the branch that pre-built docs are
> > > >>
> > > >> committed to when we copy them from the main Ozone repo (a practice
> we
> > > are
> > > >>
> > > >> looking to get rid of in the new website). It also seems there were
> > > >>
> > > >> some changes
> > > >>
> > > >> to branch publishing made around May 2021
> > > >>
> > > >> <
> > > >>
> > > >>
> > > >>
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> > > >>
> > > >>>
> > > >>
> > > >> so perhaps it was required to be this way for publishing before
> those
> > > >>
> > > >> updates.
> > > >>
> > > >>
> > > >> *Is there any standard among other ASF projects for which branch
> > should
> > > be
> > > >>
> > > >> the default?*
> > > >>
> > > >>
> > > >> I’ve looked at a bunch of other project’s websites and have yet to
> > find
> > > one
> > > >>
> > > >> that’s using asf-site as the default. They are all using the
> > development
> > > >>
> > > >> branch (equivalent to our master branch) as the default branch. See
> > > >>
> > > >>
> > > >>   - https://github.com/apache/yunikorn-site
> > > >>
> > > >>   - https://github.com/apache/streampipes-website
> > > >>
> > > >>   - https://github.com/apache/kvrocks-website
> > > >>
> > > >>   - https://github.com/apache/pulsar-site
> > > >>
> > > >>   - https://github.com/apache/doris-website
> > > >>
> > > >>   - https://github.com/apache/rocketmq-site
> > > >>
> > > >>
> > > >> *Will this affect the existing website?*
> > > >>
> > > >>
> > > >> This should not affect the existing website. The branch to use for
> > > >>
> > > >> deployment is hardcoded in .asf.yml
> > > >>
> > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and
> > not
> > > >>
> > > >> implied from the repository’s default branch setting. Deployment
> > should
> > > >>
> > > >> work as usual. I will double check with infra on the ticket to make
> > > sure no
> > > >>
> > > >> changes are required when making this change.
> > > >>
> > > >>
> > > >> Overall a long winded email for a pretty simple change. I’ll start
> > with
> > > my
> > > >>
> > > >> +1 with the hope of incrementally improving the development
> experience
> > > of
> > > >>
> > > >> the current site, and in the future, the new website as well.
> > > >>
> > > >>
> > > >> Ethan
> > > >>
> > > >>
> > > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
> > > For additional commands, e-mail: dev-help@ozone.apache.org
> > >
> > >
> >
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Sadanand Shenoy <ss...@apache.org>.
+1

Thanks,
Sadanand

On Thu, Feb 22, 2024 at 10:34 PM swaminathan balachandran <
swamirishi.sb@gmail.com> wrote:

> +1
> Thanks for explaining the problem.
>
> On Thu, Feb 22, 2024 at 1:17 AM Nandakumar Vadivelu
> <nv...@cloudera.com.invalid> wrote:
>
> > +1
> > Thanks for the detailed description Ethan.
> >
> > > On 21-Feb-2024, at 10:13 PM, Arpit Agarwal
> <aa...@cloudera.com.INVALID>
> > wrote:
> > >
> > > +1
> > >
> > > Thanks for the well-written description Ethan. I missed this thread
> > earlier.
> > >
> > > On Feb 20, 2024 at 10:21:38 PM, Dinesh Chitlangia <di...@apache.org>
> > > wrote:
> > >
> > >> +1
> > >>
> > >> Thanks,
> > >> Dinesh
> > >>
> > >> On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org> wrote:
> > >>
> > >> Hi Ozone devs,
> > >>
> > >>
> > >> I’d like to start a vote thread to change the default branch in the
> > >>
> > >> apache/ozone-site <https://github.com/apache/ozone-site> repo from
> > >>
> > >> asf-site
> > >>
> > >> to master. Changing the default branch requires an Infra ticket and
> > mailing
> > >>
> > >> thread according to the asfyaml README
> > >>
> > >> <
> > >>
> > >>
> > >>
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> > >>
> > >>> .
> > >>
> > >> I’ll start with some questions you may have when deciding to vote:
> > >>
> > >>
> > >> *Does this have anything to do with the new website development that
> is
> > >>
> > >> happening on the feature branch HDDS-9225-website-v2
> > >>
> > >> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> > >>
> > >>
> > >> No, this has nothing to do with the new website. The change would be
> > >>
> > >> effective for the existing website only since it concerns the asf-site
> > and
> > >>
> > >> master branches, neither of which the new website uses right now.
> > >>
> > >>
> > >> *What is the difference between asf-site and master?*
> > >>
> > >>
> > >> The master branch contains the code that we modify and commit to
> change
> > the
> > >>
> > >> website. The asf-site branch contains the already built website. The
> > >>
> > >> contents of asf-site are automatically generated from master and
> > committed
> > >>
> > >> by a GitHub Action
> > >>
> > >> <
> > >>
> > >>
> > >>
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > >>
> > >>> .
> > >>
> > >> From there, existing ASF services read the .asf.yml
> > >>
> > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file
> in
> > the
> > >>
> > >> asf-site branch and copy the built contents from that branch to
> wherever
> > >>
> > >> the ASF is hosting the static sites for projects.
> > >>
> > >>
> > >> *Why should we change the default branch from asf-site to master?*
> > >>
> > >>
> > >>   1. (My primary motivation) Pull request templates only work if they
> > >>
> > >> are committed
> > >>
> > >>   to the default branch
> > >>
> > >>   <
> > >>
> > >>
> > >>
> >
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> > >>
> > >>>
> > >>
> > >>   .
> > >>
> > >>   Committing the PR template from HDDS-10267
> > >>
> > >>   <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
> > >>
> > >>   branch would be clunky and difficult to modify. It is better to
> leave
> > >>
> > >> that
> > >>
> > >>   branch for auto generated content only. That PR template currently
> > does
> > >>
> > >> not
> > >>
> > >>   work since it is not on the asf-site (current default) branch.
> > >>
> > >>   2. It’s confusing for users who go to the site on GitHub or clone
> the
> > >>
> > >>   repo and expect to see the code they should modify to change the
> site.
> > >>
> > >>   Instead they have to find the branch that actually has the code that
> > the
> > >>
> > >>   asf-site build content came from.
> > >>
> > >>   3. (Minor) PRs default to using the default branch. When filing a PR
> > for
> > >>
> > >>   the website, GitHub suggests using asf-site first, which gives a
> > message
> > >>
> > >>   stating that the changes cannot be merged since there is no common
> > >>
> > >> history.
> > >>
> > >>
> > >> *Why is our current default asf-site?*
> > >>
> > >>
> > >> I’m not sure, maybe someone in the community has historical context on
> > >>
> > >> this. It could be because this is the branch that pre-built docs are
> > >>
> > >> committed to when we copy them from the main Ozone repo (a practice we
> > are
> > >>
> > >> looking to get rid of in the new website). It also seems there were
> > >>
> > >> some changes
> > >>
> > >> to branch publishing made around May 2021
> > >>
> > >> <
> > >>
> > >>
> > >>
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> > >>
> > >>>
> > >>
> > >> so perhaps it was required to be this way for publishing before those
> > >>
> > >> updates.
> > >>
> > >>
> > >> *Is there any standard among other ASF projects for which branch
> should
> > be
> > >>
> > >> the default?*
> > >>
> > >>
> > >> I’ve looked at a bunch of other project’s websites and have yet to
> find
> > one
> > >>
> > >> that’s using asf-site as the default. They are all using the
> development
> > >>
> > >> branch (equivalent to our master branch) as the default branch. See
> > >>
> > >>
> > >>   - https://github.com/apache/yunikorn-site
> > >>
> > >>   - https://github.com/apache/streampipes-website
> > >>
> > >>   - https://github.com/apache/kvrocks-website
> > >>
> > >>   - https://github.com/apache/pulsar-site
> > >>
> > >>   - https://github.com/apache/doris-website
> > >>
> > >>   - https://github.com/apache/rocketmq-site
> > >>
> > >>
> > >> *Will this affect the existing website?*
> > >>
> > >>
> > >> This should not affect the existing website. The branch to use for
> > >>
> > >> deployment is hardcoded in .asf.yml
> > >>
> > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and
> not
> > >>
> > >> implied from the repository’s default branch setting. Deployment
> should
> > >>
> > >> work as usual. I will double check with infra on the ticket to make
> > sure no
> > >>
> > >> changes are required when making this change.
> > >>
> > >>
> > >> Overall a long winded email for a pretty simple change. I’ll start
> with
> > my
> > >>
> > >> +1 with the hope of incrementally improving the development experience
> > of
> > >>
> > >> the current site, and in the future, the new website as well.
> > >>
> > >>
> > >> Ethan
> > >>
> > >>
> > >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
> > For additional commands, e-mail: dev-help@ozone.apache.org
> >
> >
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by swaminathan balachandran <sw...@gmail.com>.
+1
Thanks for explaining the problem.

On Thu, Feb 22, 2024 at 1:17 AM Nandakumar Vadivelu
<nv...@cloudera.com.invalid> wrote:

> +1
> Thanks for the detailed description Ethan.
>
> > On 21-Feb-2024, at 10:13 PM, Arpit Agarwal <aa...@cloudera.com.INVALID>
> wrote:
> >
> > +1
> >
> > Thanks for the well-written description Ethan. I missed this thread
> earlier.
> >
> > On Feb 20, 2024 at 10:21:38 PM, Dinesh Chitlangia <di...@apache.org>
> > wrote:
> >
> >> +1
> >>
> >> Thanks,
> >> Dinesh
> >>
> >> On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org> wrote:
> >>
> >> Hi Ozone devs,
> >>
> >>
> >> I’d like to start a vote thread to change the default branch in the
> >>
> >> apache/ozone-site <https://github.com/apache/ozone-site> repo from
> >>
> >> asf-site
> >>
> >> to master. Changing the default branch requires an Infra ticket and
> mailing
> >>
> >> thread according to the asfyaml README
> >>
> >> <
> >>
> >>
> >>
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> >>
> >>> .
> >>
> >> I’ll start with some questions you may have when deciding to vote:
> >>
> >>
> >> *Does this have anything to do with the new website development that is
> >>
> >> happening on the feature branch HDDS-9225-website-v2
> >>
> >> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> >>
> >>
> >> No, this has nothing to do with the new website. The change would be
> >>
> >> effective for the existing website only since it concerns the asf-site
> and
> >>
> >> master branches, neither of which the new website uses right now.
> >>
> >>
> >> *What is the difference between asf-site and master?*
> >>
> >>
> >> The master branch contains the code that we modify and commit to change
> the
> >>
> >> website. The asf-site branch contains the already built website. The
> >>
> >> contents of asf-site are automatically generated from master and
> committed
> >>
> >> by a GitHub Action
> >>
> >> <
> >>
> >>
> >>
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> >>
> >>> .
> >>
> >> From there, existing ASF services read the .asf.yml
> >>
> >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in
> the
> >>
> >> asf-site branch and copy the built contents from that branch to wherever
> >>
> >> the ASF is hosting the static sites for projects.
> >>
> >>
> >> *Why should we change the default branch from asf-site to master?*
> >>
> >>
> >>   1. (My primary motivation) Pull request templates only work if they
> >>
> >> are committed
> >>
> >>   to the default branch
> >>
> >>   <
> >>
> >>
> >>
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> >>
> >>>
> >>
> >>   .
> >>
> >>   Committing the PR template from HDDS-10267
> >>
> >>   <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
> >>
> >>   branch would be clunky and difficult to modify. It is better to leave
> >>
> >> that
> >>
> >>   branch for auto generated content only. That PR template currently
> does
> >>
> >> not
> >>
> >>   work since it is not on the asf-site (current default) branch.
> >>
> >>   2. It’s confusing for users who go to the site on GitHub or clone the
> >>
> >>   repo and expect to see the code they should modify to change the site.
> >>
> >>   Instead they have to find the branch that actually has the code that
> the
> >>
> >>   asf-site build content came from.
> >>
> >>   3. (Minor) PRs default to using the default branch. When filing a PR
> for
> >>
> >>   the website, GitHub suggests using asf-site first, which gives a
> message
> >>
> >>   stating that the changes cannot be merged since there is no common
> >>
> >> history.
> >>
> >>
> >> *Why is our current default asf-site?*
> >>
> >>
> >> I’m not sure, maybe someone in the community has historical context on
> >>
> >> this. It could be because this is the branch that pre-built docs are
> >>
> >> committed to when we copy them from the main Ozone repo (a practice we
> are
> >>
> >> looking to get rid of in the new website). It also seems there were
> >>
> >> some changes
> >>
> >> to branch publishing made around May 2021
> >>
> >> <
> >>
> >>
> >>
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> >>
> >>>
> >>
> >> so perhaps it was required to be this way for publishing before those
> >>
> >> updates.
> >>
> >>
> >> *Is there any standard among other ASF projects for which branch should
> be
> >>
> >> the default?*
> >>
> >>
> >> I’ve looked at a bunch of other project’s websites and have yet to find
> one
> >>
> >> that’s using asf-site as the default. They are all using the development
> >>
> >> branch (equivalent to our master branch) as the default branch. See
> >>
> >>
> >>   - https://github.com/apache/yunikorn-site
> >>
> >>   - https://github.com/apache/streampipes-website
> >>
> >>   - https://github.com/apache/kvrocks-website
> >>
> >>   - https://github.com/apache/pulsar-site
> >>
> >>   - https://github.com/apache/doris-website
> >>
> >>   - https://github.com/apache/rocketmq-site
> >>
> >>
> >> *Will this affect the existing website?*
> >>
> >>
> >> This should not affect the existing website. The branch to use for
> >>
> >> deployment is hardcoded in .asf.yml
> >>
> >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
> >>
> >> implied from the repository’s default branch setting. Deployment should
> >>
> >> work as usual. I will double check with infra on the ticket to make
> sure no
> >>
> >> changes are required when making this change.
> >>
> >>
> >> Overall a long winded email for a pretty simple change. I’ll start with
> my
> >>
> >> +1 with the hope of incrementally improving the development experience
> of
> >>
> >> the current site, and in the future, the new website as well.
> >>
> >>
> >> Ethan
> >>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
> For additional commands, e-mail: dev-help@ozone.apache.org
>
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Nandakumar Vadivelu <nv...@cloudera.com.INVALID>.
+1
Thanks for the detailed description Ethan.

> On 21-Feb-2024, at 10:13 PM, Arpit Agarwal <aa...@cloudera.com.INVALID> wrote:
> 
> +1
> 
> Thanks for the well-written description Ethan. I missed this thread earlier.
> 
> On Feb 20, 2024 at 10:21:38 PM, Dinesh Chitlangia <di...@apache.org>
> wrote:
> 
>> +1
>> 
>> Thanks,
>> Dinesh
>> 
>> On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org> wrote:
>> 
>> Hi Ozone devs,
>> 
>> 
>> I’d like to start a vote thread to change the default branch in the
>> 
>> apache/ozone-site <https://github.com/apache/ozone-site> repo from
>> 
>> asf-site
>> 
>> to master. Changing the default branch requires an Infra ticket and mailing
>> 
>> thread according to the asfyaml README
>> 
>> <
>> 
>> 
>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
>> 
>>> .
>> 
>> I’ll start with some questions you may have when deciding to vote:
>> 
>> 
>> *Does this have anything to do with the new website development that is
>> 
>> happening on the feature branch HDDS-9225-website-v2
>> 
>> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
>> 
>> 
>> No, this has nothing to do with the new website. The change would be
>> 
>> effective for the existing website only since it concerns the asf-site and
>> 
>> master branches, neither of which the new website uses right now.
>> 
>> 
>> *What is the difference between asf-site and master?*
>> 
>> 
>> The master branch contains the code that we modify and commit to change the
>> 
>> website. The asf-site branch contains the already built website. The
>> 
>> contents of asf-site are automatically generated from master and committed
>> 
>> by a GitHub Action
>> 
>> <
>> 
>> 
>> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
>> 
>>> .
>> 
>> From there, existing ASF services read the .asf.yml
>> 
>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in the
>> 
>> asf-site branch and copy the built contents from that branch to wherever
>> 
>> the ASF is hosting the static sites for projects.
>> 
>> 
>> *Why should we change the default branch from asf-site to master?*
>> 
>> 
>>   1. (My primary motivation) Pull request templates only work if they
>> 
>> are committed
>> 
>>   to the default branch
>> 
>>   <
>> 
>> 
>> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
>> 
>>> 
>> 
>>   .
>> 
>>   Committing the PR template from HDDS-10267
>> 
>>   <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
>> 
>>   branch would be clunky and difficult to modify. It is better to leave
>> 
>> that
>> 
>>   branch for auto generated content only. That PR template currently does
>> 
>> not
>> 
>>   work since it is not on the asf-site (current default) branch.
>> 
>>   2. It’s confusing for users who go to the site on GitHub or clone the
>> 
>>   repo and expect to see the code they should modify to change the site.
>> 
>>   Instead they have to find the branch that actually has the code that the
>> 
>>   asf-site build content came from.
>> 
>>   3. (Minor) PRs default to using the default branch. When filing a PR for
>> 
>>   the website, GitHub suggests using asf-site first, which gives a message
>> 
>>   stating that the changes cannot be merged since there is no common
>> 
>> history.
>> 
>> 
>> *Why is our current default asf-site?*
>> 
>> 
>> I’m not sure, maybe someone in the community has historical context on
>> 
>> this. It could be because this is the branch that pre-built docs are
>> 
>> committed to when we copy them from the main Ozone repo (a practice we are
>> 
>> looking to get rid of in the new website). It also seems there were
>> 
>> some changes
>> 
>> to branch publishing made around May 2021
>> 
>> <
>> 
>> 
>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
>> 
>>> 
>> 
>> so perhaps it was required to be this way for publishing before those
>> 
>> updates.
>> 
>> 
>> *Is there any standard among other ASF projects for which branch should be
>> 
>> the default?*
>> 
>> 
>> I’ve looked at a bunch of other project’s websites and have yet to find one
>> 
>> that’s using asf-site as the default. They are all using the development
>> 
>> branch (equivalent to our master branch) as the default branch. See
>> 
>> 
>>   - https://github.com/apache/yunikorn-site
>> 
>>   - https://github.com/apache/streampipes-website
>> 
>>   - https://github.com/apache/kvrocks-website
>> 
>>   - https://github.com/apache/pulsar-site
>> 
>>   - https://github.com/apache/doris-website
>> 
>>   - https://github.com/apache/rocketmq-site
>> 
>> 
>> *Will this affect the existing website?*
>> 
>> 
>> This should not affect the existing website. The branch to use for
>> 
>> deployment is hardcoded in .asf.yml
>> 
>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
>> 
>> implied from the repository’s default branch setting. Deployment should
>> 
>> work as usual. I will double check with infra on the ticket to make sure no
>> 
>> changes are required when making this change.
>> 
>> 
>> Overall a long winded email for a pretty simple change. I’ll start with my
>> 
>> +1 with the hope of incrementally improving the development experience of
>> 
>> the current site, and in the future, the new website as well.
>> 
>> 
>> Ethan
>> 
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
For additional commands, e-mail: dev-help@ozone.apache.org


Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Arpit Agarwal <aa...@cloudera.com.INVALID>.
 +1

Thanks for the well-written description Ethan. I missed this thread earlier.

On Feb 20, 2024 at 10:21:38 PM, Dinesh Chitlangia <di...@apache.org>
wrote:

> +1
>
> Thanks,
> Dinesh
>
> On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org> wrote:
>
> Hi Ozone devs,
>
>
> I’d like to start a vote thread to change the default branch in the
>
> apache/ozone-site <https://github.com/apache/ozone-site> repo from
>
> asf-site
>
> to master. Changing the default branch requires an Infra ticket and mailing
>
> thread according to the asfyaml README
>
> <
>
>
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
>
> >.
>
> I’ll start with some questions you may have when deciding to vote:
>
>
> *Does this have anything to do with the new website development that is
>
> happening on the feature branch HDDS-9225-website-v2
>
> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
>
>
> No, this has nothing to do with the new website. The change would be
>
> effective for the existing website only since it concerns the asf-site and
>
> master branches, neither of which the new website uses right now.
>
>
> *What is the difference between asf-site and master?*
>
>
> The master branch contains the code that we modify and commit to change the
>
> website. The asf-site branch contains the already built website. The
>
> contents of asf-site are automatically generated from master and committed
>
> by a GitHub Action
>
> <
>
>
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
>
> >.
>
> From there, existing ASF services read the .asf.yml
>
> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in the
>
> asf-site branch and copy the built contents from that branch to wherever
>
> the ASF is hosting the static sites for projects.
>
>
> *Why should we change the default branch from asf-site to master?*
>
>
>    1. (My primary motivation) Pull request templates only work if they
>
> are committed
>
>    to the default branch
>
>    <
>
>
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
>
> >
>
>    .
>
>    Committing the PR template from HDDS-10267
>
>    <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
>
>    branch would be clunky and difficult to modify. It is better to leave
>
> that
>
>    branch for auto generated content only. That PR template currently does
>
> not
>
>    work since it is not on the asf-site (current default) branch.
>
>    2. It’s confusing for users who go to the site on GitHub or clone the
>
>    repo and expect to see the code they should modify to change the site.
>
>    Instead they have to find the branch that actually has the code that the
>
>    asf-site build content came from.
>
>    3. (Minor) PRs default to using the default branch. When filing a PR for
>
>    the website, GitHub suggests using asf-site first, which gives a message
>
>    stating that the changes cannot be merged since there is no common
>
> history.
>
>
> *Why is our current default asf-site?*
>
>
> I’m not sure, maybe someone in the community has historical context on
>
> this. It could be because this is the branch that pre-built docs are
>
> committed to when we copy them from the main Ozone repo (a practice we are
>
> looking to get rid of in the new website). It also seems there were
>
> some changes
>
> to branch publishing made around May 2021
>
> <
>
>
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
>
> >
>
> so perhaps it was required to be this way for publishing before those
>
> updates.
>
>
> *Is there any standard among other ASF projects for which branch should be
>
> the default?*
>
>
> I’ve looked at a bunch of other project’s websites and have yet to find one
>
> that’s using asf-site as the default. They are all using the development
>
> branch (equivalent to our master branch) as the default branch. See
>
>
>    - https://github.com/apache/yunikorn-site
>
>    - https://github.com/apache/streampipes-website
>
>    - https://github.com/apache/kvrocks-website
>
>    - https://github.com/apache/pulsar-site
>
>    - https://github.com/apache/doris-website
>
>    - https://github.com/apache/rocketmq-site
>
>
> *Will this affect the existing website?*
>
>
> This should not affect the existing website. The branch to use for
>
> deployment is hardcoded in .asf.yml
>
> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
>
> implied from the repository’s default branch setting. Deployment should
>
> work as usual. I will double check with infra on the ticket to make sure no
>
> changes are required when making this change.
>
>
> Overall a long winded email for a pretty simple change. I’ll start with my
>
> +1 with the hope of incrementally improving the development experience of
>
> the current site, and in the future, the new website as well.
>
>
> Ethan
>
>
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Dinesh Chitlangia <di...@apache.org>.
+1

Thanks,
Dinesh

On Thu, Feb 8, 2024 at 7:14 PM Ethan Rose <er...@apache.org> wrote:

> Hi Ozone devs,
>
> I’d like to start a vote thread to change the default branch in the
> apache/ozone-site <https://github.com/apache/ozone-site> repo from
> asf-site
> to master. Changing the default branch requires an Infra ticket and mailing
> thread according to the asfyaml README
> <
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> >.
> I’ll start with some questions you may have when deciding to vote:
>
> *Does this have anything to do with the new website development that is
> happening on the feature branch HDDS-9225-website-v2
> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
>
> No, this has nothing to do with the new website. The change would be
> effective for the existing website only since it concerns the asf-site and
> master branches, neither of which the new website uses right now.
>
> *What is the difference between asf-site and master?*
>
> The master branch contains the code that we modify and commit to change the
> website. The asf-site branch contains the already built website. The
> contents of asf-site are automatically generated from master and committed
> by a GitHub Action
> <
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> >.
> From there, existing ASF services read the .asf.yml
> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in the
> asf-site branch and copy the built contents from that branch to wherever
> the ASF is hosting the static sites for projects.
>
> *Why should we change the default branch from asf-site to master?*
>
>    1. (My primary motivation) Pull request templates only work if they
> are committed
>    to the default branch
>    <
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> >
>    .
>    Committing the PR template from HDDS-10267
>    <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
>    branch would be clunky and difficult to modify. It is better to leave
> that
>    branch for auto generated content only. That PR template currently does
> not
>    work since it is not on the asf-site (current default) branch.
>    2. It’s confusing for users who go to the site on GitHub or clone the
>    repo and expect to see the code they should modify to change the site.
>    Instead they have to find the branch that actually has the code that the
>    asf-site build content came from.
>    3. (Minor) PRs default to using the default branch. When filing a PR for
>    the website, GitHub suggests using asf-site first, which gives a message
>    stating that the changes cannot be merged since there is no common
> history.
>
> *Why is our current default asf-site?*
>
> I’m not sure, maybe someone in the community has historical context on
> this. It could be because this is the branch that pre-built docs are
> committed to when we copy them from the main Ozone repo (a practice we are
> looking to get rid of in the new website). It also seems there were
> some changes
> to branch publishing made around May 2021
> <
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> >
> so perhaps it was required to be this way for publishing before those
> updates.
>
> *Is there any standard among other ASF projects for which branch should be
> the default?*
>
> I’ve looked at a bunch of other project’s websites and have yet to find one
> that’s using asf-site as the default. They are all using the development
> branch (equivalent to our master branch) as the default branch. See
>
>    - https://github.com/apache/yunikorn-site
>    - https://github.com/apache/streampipes-website
>    - https://github.com/apache/kvrocks-website
>    - https://github.com/apache/pulsar-site
>    - https://github.com/apache/doris-website
>    - https://github.com/apache/rocketmq-site
>
> *Will this affect the existing website?*
>
> This should not affect the existing website. The branch to use for
> deployment is hardcoded in .asf.yml
> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
> implied from the repository’s default branch setting. Deployment should
> work as usual. I will double check with infra on the ticket to make sure no
> changes are required when making this change.
>
> Overall a long winded email for a pretty simple change. I’ll start with my
> +1 with the hope of incrementally improving the development experience of
> the current site, and in the future, the new website as well.
>
> Ethan
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Tejaskriya Madan <te...@cloudera.com.INVALID>.
Hi,
Thank you Ethan for bringing this up.
I remember facing the same issues you have mentioned
when I had to make changes in the ozone-site repo for the first time.
I'm +1 for this change.

Tejaskriya


On Mon, Feb 12, 2024 at 9:46 PM Zita Dombi <zi...@apache.org> wrote:

> Hi,
>
> Thanks Ethan for bringing this up, I'm +1 for this change.
>
> Zita
>
> Abhishek Pal <pa...@gmail.com> ezt írta (időpont: 2024.
> febr. 10., Szo, 22:43):
>
> > Hi Ethan,
> > Thanks for taking up this initiative.
> > While this is not a problem for existing committers, I do believe people
> > who are new to the repo might have some confusion with the current
> > branching and how GitHub actions builds the site.
> > I give a +1 vote for this change.
> > Though we are eventually shifting to a new website, that might take time,
> > and in the meantime this change will help reduce confusion for any new
> > contributors as well as address the templating issues.
> >
> > On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:
> >
> > > Hi Ozone devs,
> > >
> > > I’d like to start a vote thread to change the default branch in the
> > > apache/ozone-site <https://github.com/apache/ozone-site> repo from
> > > asf-site
> > > to master. Changing the default branch requires an Infra ticket and
> > mailing
> > > thread according to the asfyaml README
> > > <
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> > > >.
> > > I’ll start with some questions you may have when deciding to vote:
> > >
> > > *Does this have anything to do with the new website development that is
> > > happening on the feature branch HDDS-9225-website-v2
> > > <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> > >
> > > No, this has nothing to do with the new website. The change would be
> > > effective for the existing website only since it concerns the asf-site
> > and
> > > master branches, neither of which the new website uses right now.
> > >
> > > *What is the difference between asf-site and master?*
> > >
> > > The master branch contains the code that we modify and commit to change
> > the
> > > website. The asf-site branch contains the already built website. The
> > > contents of asf-site are automatically generated from master and
> > committed
> > > by a GitHub Action
> > > <
> > >
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > > >.
> > > From there, existing ASF services read the .asf.yml
> > > <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in
> > the
> > > asf-site branch and copy the built contents from that branch to
> wherever
> > > the ASF is hosting the static sites for projects.
> > >
> > > *Why should we change the default branch from asf-site to master?*
> > >
> > >    1. (My primary motivation) Pull request templates only work if they
> > > are committed
> > >    to the default branch
> > >    <
> > >
> >
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> > > >
> > >    .
> > >    Committing the PR template from HDDS-10267
> > >    <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
> > >    branch would be clunky and difficult to modify. It is better to
> leave
> > > that
> > >    branch for auto generated content only. That PR template currently
> > does
> > > not
> > >    work since it is not on the asf-site (current default) branch.
> > >    2. It’s confusing for users who go to the site on GitHub or clone
> the
> > >    repo and expect to see the code they should modify to change the
> site.
> > >    Instead they have to find the branch that actually has the code that
> > the
> > >    asf-site build content came from.
> > >    3. (Minor) PRs default to using the default branch. When filing a PR
> > for
> > >    the website, GitHub suggests using asf-site first, which gives a
> > message
> > >    stating that the changes cannot be merged since there is no common
> > > history.
> > >
> > > *Why is our current default asf-site?*
> > >
> > > I’m not sure, maybe someone in the community has historical context on
> > > this. It could be because this is the branch that pre-built docs are
> > > committed to when we copy them from the main Ozone repo (a practice we
> > are
> > > looking to get rid of in the new website). It also seems there were
> > > some changes
> > > to branch publishing made around May 2021
> > > <
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> > > >
> > > so perhaps it was required to be this way for publishing before those
> > > updates.
> > >
> > > *Is there any standard among other ASF projects for which branch should
> > be
> > > the default?*
> > >
> > > I’ve looked at a bunch of other project’s websites and have yet to find
> > one
> > > that’s using asf-site as the default. They are all using the
> development
> > > branch (equivalent to our master branch) as the default branch. See
> > >
> > >    - https://github.com/apache/yunikorn-site
> > >    - https://github.com/apache/streampipes-website
> > >    - https://github.com/apache/kvrocks-website
> > >    - https://github.com/apache/pulsar-site
> > >    - https://github.com/apache/doris-website
> > >    - https://github.com/apache/rocketmq-site
> > >
> > > *Will this affect the existing website?*
> > >
> > > This should not affect the existing website. The branch to use for
> > > deployment is hardcoded in .asf.yml
> > > <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
> > > implied from the repository’s default branch setting. Deployment should
> > > work as usual. I will double check with infra on the ticket to make
> sure
> > no
> > > changes are required when making this change.
> > >
> > > Overall a long winded email for a pretty simple change. I’ll start with
> > my
> > > +1 with the hope of incrementally improving the development experience
> of
> > > the current site, and in the future, the new website as well.
> > >
> > > Ethan
> > >
> >
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Kaijie Chen <ck...@apache.org>.
        

        
            +1Best,Kaijie Chen    ---- On Sun, 18 Feb 2024 17:14:06 +0800  Szabolcs Gál<sg...@cloudera.com.invalid> wrote ---- +1 Szabolcs Gál  On Sat, Feb 17, 2024 at 5:57 AM Siyao Meng <si...@apache.org> wrote:  > +1 > > *Is there any standard among other ASF projects for which branch should be > > the default?* > > > btw hadoop-site <https://github.com/apache/hadoop-site> does have asf-site > as its default branch. but that is its only branch and is effectively being > used as the dev branch afaict. > > -Siyao > > On Wed, Feb 14, 2024 at 1:52 PM Ethan Rose <er...@apache.org> wrote: > > > Does changing default to master still need some generation and commit to > > master? > > > > Hi Sumit. The process to generate the website from master and commit it > to > > asf-site will not be affected by this change. The Github workflow copies > > the build from master > > < > > > https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L19 > > > > > to asf-site > > < > > > https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31 > > >, > > and the .asf.yaml file in the asf-site branch indicates that the asf-site > > < > > > https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31 > > > > > branch is the one to publish. Both files have the branch to work with > > hardcoded in them, I’ve linked directly to those lines here. They do not > > read GitHub’s default branch, so the publishing process should work > without > > changes if the default branch is updated in GitHub. > > > > The source code used to build the website will continue to be committed > to > > master. > > > > Ethan > > > > On Tue, Feb 13, 2024 at 9:00 PM Ayush Saxena <ay...@gmail.com> wrote: > > > > > +1 > > > > > > -Ayush > > > > > > > On 14-Feb-2024, at 10:12 AM, Sumit Agrawal < > sumitagrawal@cloudera.com > > .invalid> > > > wrote: > > > > > > > > Hi, > > > > > > > > The contents of asf-site are automatically *generated from master and > > > >> committed* > > > >> by a GitHub Action > > > >> < > > > >> > > > > > > https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml > > > >>> . > > > >> From there, existing ASF services read the .asf.yml > > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file > > in > > > the > > > >> asf-site branch and copy the built contents from that branch to > > wherever > > > >> the ASF is hosting the static sites for projects. > > > > > > > > > > > > Does changing default to master still need some generation and commit > > to > > > > master? > > > > > > > > If the above has no impact, I'm +1 for this change. > > > > > > > > > > > >> On Mon, Feb 12, 2024 at 9:47 PM Zita Dombi <zi...@apache.org> > > > wrote: > > > >> > > > >> Hi, > > > >> > > > >> Thanks Ethan for bringing this up, I'm +1 for this change. > > > >> > > > >> Zita > > > >> > > > >> Abhishek Pal <pa...@gmail.com> ezt írta (időpont: > > 2024. > > > >> febr. 10., Szo, 22:43): > > > >> > > > >>> Hi Ethan, > > > >>> Thanks for taking up this initiative. > > > >>> While this is not a problem for existing committers, I do believe > > > people > > > >>> who are new to the repo might have some confusion with the current > > > >>> branching and how GitHub actions builds the site. > > > >>> I give a +1 vote for this change. > > > >>> Though we are eventually shifting to a new website, that might take > > > time, > > > >>> and in the meantime this change will help reduce confusion for any > > new > > > >>> contributors as well as address the templating issues. > > > >>> > > > >>>> On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote: > > > >>> > > > >>>> Hi Ozone devs, > > > >>>> > > > >>>> I’d like to start a vote thread to change the default branch in > the > > > >>>> apache/ozone-site <https://github.com/apache/ozone-site> repo > from > > > >>>> asf-site > > > >>>> to master. Changing the default branch requires an Infra ticket > and > > > >>> mailing > > > >>>> thread according to the asfyaml README > > > >>>> < > > > >>>> > > > >>> > > > >> > > > > > > https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch > > > >>>>> . > > > >>>> I’ll start with some questions you may have when deciding to vote: > > > >>>> > > > >>>> *Does this have anything to do with the new website development > that > > > is > > > >>>> happening on the feature branch HDDS-9225-website-v2 > > > >>>> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2 > >?* > > > >>>> > > > >>>> No, this has nothing to do with the new website. The change would > be > > > >>>> effective for the existing website only since it concerns the > > asf-site > > > >>> and > > > >>>> master branches, neither of which the new website uses right now. > > > >>>> > > > >>>> *What is the difference between asf-site and master?* > > > >>>> > > > >>>> The master branch contains the code that we modify and commit to > > > change > > > >>> the > > > >>>> website. The asf-site branch contains the already built website. > The > > > >>>> contents of asf-site are automatically generated from master and > > > >>> committed > > > >>>> by a GitHub Action > > > >>>> < > > > >>>> > > > >>> > > > >> > > > > > > https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml > > > >>>>> . > > > >>>> From there, existing ASF services read the .asf.yml > > > >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> > file > > > in > > > >>> the > > > >>>> asf-site branch and copy the built contents from that branch to > > > >> wherever > > > >>>> the ASF is hosting the static sites for projects. > > > >>>> > > > >>>> *Why should we change the default branch from asf-site to master?* > > > >>>> > > > >>>>   1. (My primary motivation) Pull request templates only work if > > they > > > >>>> are committed > > > >>>>   to the default branch > > > >>>>   < > > > >>>> > > > >>> > > > >> > > > > > > https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates > > > >>>>> > > > >>>>   . > > > >>>>   Committing the PR template from HDDS-10267 > > > >>>>   <https://issues.apache.org/jira/browse/HDDS-10267> to the > > asf-site > > > >>>>   branch would be clunky and difficult to modify. It is better to > > > >> leave > > > >>>> that > > > >>>>   branch for auto generated content only. That PR template > currently > > > >>> does > > > >>>> not > > > >>>>   work since it is not on the asf-site (current default) branch. > > > >>>>   2. It’s confusing for users who go to the site on GitHub or > clone > > > >> the > > > >>>>   repo and expect to see the code they should modify to change the > > > >> site. > > > >>>>   Instead they have to find the branch that actually has the code > > that > > > >>> the > > > >>>>   asf-site build content came from. > > > >>>>   3. (Minor) PRs default to using the default branch. When filing > a > > PR > > > >>> for > > > >>>>   the website, GitHub suggests using asf-site first, which gives a > > > >>> message > > > >>>>   stating that the changes cannot be merged since there is no > common > > > >>>> history. > > > >>>> > > > >>>> *Why is our current default asf-site?* > > > >>>> > > > >>>> I’m not sure, maybe someone in the community has historical > context > > on > > > >>>> this. It could be because this is the branch that pre-built docs > are > > > >>>> committed to when we copy them from the main Ozone repo (a > practice > > we > > > >>> are > > > >>>> looking to get rid of in the new website). It also seems there > were > > > >>>> some changes > > > >>>> to branch publishing made around May 2021 > > > >>>> < > > > >>>> > > > >>> > > > >> > > > > > > https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site > > > >>>>> > > > >>>> so perhaps it was required to be this way for publishing before > > those > > > >>>> updates. > > > >>>> > > > >>>> *Is there any standard among other ASF projects for which branch > > > should > > > >>> be > > > >>>> the default?* > > > >>>> > > > >>>> I’ve looked at a bunch of other project’s websites and have yet to > > > find > > > >>> one > > > >>>> that’s using asf-site as the default. They are all using the > > > >> development > > > >>>> branch (equivalent to our master branch) as the default branch. > See > > > >>>> > > > >>>>   - https://github.com/apache/yunikorn-site > > > >>>>   - https://github.com/apache/streampipes-website > > > >>>>   - https://github.com/apache/kvrocks-website > > > >>>>   - https://github.com/apache/pulsar-site > > > >>>>   - https://github.com/apache/doris-website > > > >>>>   - https://github.com/apache/rocketmq-site > > > >>>> > > > >>>> *Will this affect the existing website?* > > > >>>> > > > >>>> This should not affect the existing website. The branch to use for > > > >>>> deployment is hardcoded in .asf.yml > > > >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> > and > > > not > > > >>>> implied from the repository’s default branch setting. Deployment > > > should > > > >>>> work as usual. I will double check with infra on the ticket to > make > > > >> sure > > > >>> no > > > >>>> changes are required when making this change. > > > >>>> > > > >>>> Overall a long winded email for a pretty simple change. I’ll start > > > with > > > >>> my > > > >>>> +1 with the hope of incrementally improving the development > > experience > > > >> of > > > >>>> the current site, and in the future, the new website as well. > > > >>>> > > > >>>> Ethan > > > >>>> > > > >>> > > > >> > > > > > > > > > > > > -- > > > > *Sumit Agrawal* | Senior Staff Engineer > > > > cloudera.com <https://www.cloudera.com> > > > > [image: Cloudera] <https://www.cloudera.com/> > > > > [image: Cloudera on Twitter] <https://twitter.com/cloudera> [image: > > > > Cloudera on Facebook] <https://www.facebook.com/cloudera> [image: > > > Cloudera > > > > on LinkedIn] <https://www.linkedin.com/company/cloudera> > > > > ------------------------------ > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org > > > For additional commands, e-mail: dev-help@ozone.apache.org > > > > > > > > >  
        
        

    
    


Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Szabolcs Gál <sg...@cloudera.com.INVALID>.
+1
Szabolcs Gál

On Sat, Feb 17, 2024 at 5:57 AM Siyao Meng <si...@apache.org> wrote:

> +1
>
> *Is there any standard among other ASF projects for which branch should be
> > the default?*
>
>
> btw hadoop-site <https://github.com/apache/hadoop-site> does have asf-site
> as its default branch. but that is its only branch and is effectively being
> used as the dev branch afaict.
>
> -Siyao
>
> On Wed, Feb 14, 2024 at 1:52 PM Ethan Rose <er...@apache.org> wrote:
>
> > Does changing default to master still need some generation and commit to
> > master?
> >
> > Hi Sumit. The process to generate the website from master and commit it
> to
> > asf-site will not be affected by this change. The Github workflow copies
> > the build from master
> > <
> >
> https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L19
> > >
> > to asf-site
> > <
> >
> https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31
> > >,
> > and the .asf.yaml file in the asf-site branch indicates that the asf-site
> > <
> >
> https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31
> > >
> > branch is the one to publish. Both files have the branch to work with
> > hardcoded in them, I’ve linked directly to those lines here. They do not
> > read GitHub’s default branch, so the publishing process should work
> without
> > changes if the default branch is updated in GitHub.
> >
> > The source code used to build the website will continue to be committed
> to
> > master.
> >
> > Ethan
> >
> > On Tue, Feb 13, 2024 at 9:00 PM Ayush Saxena <ay...@gmail.com> wrote:
> >
> > > +1
> > >
> > > -Ayush
> > >
> > > > On 14-Feb-2024, at 10:12 AM, Sumit Agrawal <
> sumitagrawal@cloudera.com
> > .invalid>
> > > wrote:
> > > >
> > > > Hi,
> > > >
> > > > The contents of asf-site are automatically *generated from master and
> > > >> committed*
> > > >> by a GitHub Action
> > > >> <
> > > >>
> > >
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > > >>> .
> > > >> From there, existing ASF services read the .asf.yml
> > > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file
> > in
> > > the
> > > >> asf-site branch and copy the built contents from that branch to
> > wherever
> > > >> the ASF is hosting the static sites for projects.
> > > >
> > > >
> > > > Does changing default to master still need some generation and commit
> > to
> > > > master?
> > > >
> > > > If the above has no impact, I'm +1 for this change.
> > > >
> > > >
> > > >> On Mon, Feb 12, 2024 at 9:47 PM Zita Dombi <zi...@apache.org>
> > > wrote:
> > > >>
> > > >> Hi,
> > > >>
> > > >> Thanks Ethan for bringing this up, I'm +1 for this change.
> > > >>
> > > >> Zita
> > > >>
> > > >> Abhishek Pal <pa...@gmail.com> ezt írta (időpont:
> > 2024.
> > > >> febr. 10., Szo, 22:43):
> > > >>
> > > >>> Hi Ethan,
> > > >>> Thanks for taking up this initiative.
> > > >>> While this is not a problem for existing committers, I do believe
> > > people
> > > >>> who are new to the repo might have some confusion with the current
> > > >>> branching and how GitHub actions builds the site.
> > > >>> I give a +1 vote for this change.
> > > >>> Though we are eventually shifting to a new website, that might take
> > > time,
> > > >>> and in the meantime this change will help reduce confusion for any
> > new
> > > >>> contributors as well as address the templating issues.
> > > >>>
> > > >>>> On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:
> > > >>>
> > > >>>> Hi Ozone devs,
> > > >>>>
> > > >>>> I’d like to start a vote thread to change the default branch in
> the
> > > >>>> apache/ozone-site <https://github.com/apache/ozone-site> repo
> from
> > > >>>> asf-site
> > > >>>> to master. Changing the default branch requires an Infra ticket
> and
> > > >>> mailing
> > > >>>> thread according to the asfyaml README
> > > >>>> <
> > > >>>>
> > > >>>
> > > >>
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> > > >>>>> .
> > > >>>> I’ll start with some questions you may have when deciding to vote:
> > > >>>>
> > > >>>> *Does this have anything to do with the new website development
> that
> > > is
> > > >>>> happening on the feature branch HDDS-9225-website-v2
> > > >>>> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2
> >?*
> > > >>>>
> > > >>>> No, this has nothing to do with the new website. The change would
> be
> > > >>>> effective for the existing website only since it concerns the
> > asf-site
> > > >>> and
> > > >>>> master branches, neither of which the new website uses right now.
> > > >>>>
> > > >>>> *What is the difference between asf-site and master?*
> > > >>>>
> > > >>>> The master branch contains the code that we modify and commit to
> > > change
> > > >>> the
> > > >>>> website. The asf-site branch contains the already built website.
> The
> > > >>>> contents of asf-site are automatically generated from master and
> > > >>> committed
> > > >>>> by a GitHub Action
> > > >>>> <
> > > >>>>
> > > >>>
> > > >>
> > >
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > > >>>>> .
> > > >>>> From there, existing ASF services read the .asf.yml
> > > >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml>
> file
> > > in
> > > >>> the
> > > >>>> asf-site branch and copy the built contents from that branch to
> > > >> wherever
> > > >>>> the ASF is hosting the static sites for projects.
> > > >>>>
> > > >>>> *Why should we change the default branch from asf-site to master?*
> > > >>>>
> > > >>>>   1. (My primary motivation) Pull request templates only work if
> > they
> > > >>>> are committed
> > > >>>>   to the default branch
> > > >>>>   <
> > > >>>>
> > > >>>
> > > >>
> > >
> >
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> > > >>>>>
> > > >>>>   .
> > > >>>>   Committing the PR template from HDDS-10267
> > > >>>>   <https://issues.apache.org/jira/browse/HDDS-10267> to the
> > asf-site
> > > >>>>   branch would be clunky and difficult to modify. It is better to
> > > >> leave
> > > >>>> that
> > > >>>>   branch for auto generated content only. That PR template
> currently
> > > >>> does
> > > >>>> not
> > > >>>>   work since it is not on the asf-site (current default) branch.
> > > >>>>   2. It’s confusing for users who go to the site on GitHub or
> clone
> > > >> the
> > > >>>>   repo and expect to see the code they should modify to change the
> > > >> site.
> > > >>>>   Instead they have to find the branch that actually has the code
> > that
> > > >>> the
> > > >>>>   asf-site build content came from.
> > > >>>>   3. (Minor) PRs default to using the default branch. When filing
> a
> > PR
> > > >>> for
> > > >>>>   the website, GitHub suggests using asf-site first, which gives a
> > > >>> message
> > > >>>>   stating that the changes cannot be merged since there is no
> common
> > > >>>> history.
> > > >>>>
> > > >>>> *Why is our current default asf-site?*
> > > >>>>
> > > >>>> I’m not sure, maybe someone in the community has historical
> context
> > on
> > > >>>> this. It could be because this is the branch that pre-built docs
> are
> > > >>>> committed to when we copy them from the main Ozone repo (a
> practice
> > we
> > > >>> are
> > > >>>> looking to get rid of in the new website). It also seems there
> were
> > > >>>> some changes
> > > >>>> to branch publishing made around May 2021
> > > >>>> <
> > > >>>>
> > > >>>
> > > >>
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> > > >>>>>
> > > >>>> so perhaps it was required to be this way for publishing before
> > those
> > > >>>> updates.
> > > >>>>
> > > >>>> *Is there any standard among other ASF projects for which branch
> > > should
> > > >>> be
> > > >>>> the default?*
> > > >>>>
> > > >>>> I’ve looked at a bunch of other project’s websites and have yet to
> > > find
> > > >>> one
> > > >>>> that’s using asf-site as the default. They are all using the
> > > >> development
> > > >>>> branch (equivalent to our master branch) as the default branch.
> See
> > > >>>>
> > > >>>>   - https://github.com/apache/yunikorn-site
> > > >>>>   - https://github.com/apache/streampipes-website
> > > >>>>   - https://github.com/apache/kvrocks-website
> > > >>>>   - https://github.com/apache/pulsar-site
> > > >>>>   - https://github.com/apache/doris-website
> > > >>>>   - https://github.com/apache/rocketmq-site
> > > >>>>
> > > >>>> *Will this affect the existing website?*
> > > >>>>
> > > >>>> This should not affect the existing website. The branch to use for
> > > >>>> deployment is hardcoded in .asf.yml
> > > >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml>
> and
> > > not
> > > >>>> implied from the repository’s default branch setting. Deployment
> > > should
> > > >>>> work as usual. I will double check with infra on the ticket to
> make
> > > >> sure
> > > >>> no
> > > >>>> changes are required when making this change.
> > > >>>>
> > > >>>> Overall a long winded email for a pretty simple change. I’ll start
> > > with
> > > >>> my
> > > >>>> +1 with the hope of incrementally improving the development
> > experience
> > > >> of
> > > >>>> the current site, and in the future, the new website as well.
> > > >>>>
> > > >>>> Ethan
> > > >>>>
> > > >>>
> > > >>
> > > >
> > > >
> > > > --
> > > > *Sumit Agrawal* | Senior Staff Engineer
> > > > cloudera.com <https://www.cloudera.com>
> > > > [image: Cloudera] <https://www.cloudera.com/>
> > > > [image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
> > > > Cloudera on Facebook] <https://www.facebook.com/cloudera> [image:
> > > Cloudera
> > > > on LinkedIn] <https://www.linkedin.com/company/cloudera>
> > > > ------------------------------
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
> > > For additional commands, e-mail: dev-help@ozone.apache.org
> > >
> > >
> >
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Siyao Meng <si...@apache.org>.
+1

*Is there any standard among other ASF projects for which branch should be
> the default?*


btw hadoop-site <https://github.com/apache/hadoop-site> does have asf-site
as its default branch. but that is its only branch and is effectively being
used as the dev branch afaict.

-Siyao

On Wed, Feb 14, 2024 at 1:52 PM Ethan Rose <er...@apache.org> wrote:

> Does changing default to master still need some generation and commit to
> master?
>
> Hi Sumit. The process to generate the website from master and commit it to
> asf-site will not be affected by this change. The Github workflow copies
> the build from master
> <
> https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L19
> >
> to asf-site
> <
> https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31
> >,
> and the .asf.yaml file in the asf-site branch indicates that the asf-site
> <
> https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31
> >
> branch is the one to publish. Both files have the branch to work with
> hardcoded in them, I’ve linked directly to those lines here. They do not
> read GitHub’s default branch, so the publishing process should work without
> changes if the default branch is updated in GitHub.
>
> The source code used to build the website will continue to be committed to
> master.
>
> Ethan
>
> On Tue, Feb 13, 2024 at 9:00 PM Ayush Saxena <ay...@gmail.com> wrote:
>
> > +1
> >
> > -Ayush
> >
> > > On 14-Feb-2024, at 10:12 AM, Sumit Agrawal <sumitagrawal@cloudera.com
> .invalid>
> > wrote:
> > >
> > > Hi,
> > >
> > > The contents of asf-site are automatically *generated from master and
> > >> committed*
> > >> by a GitHub Action
> > >> <
> > >>
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > >>> .
> > >> From there, existing ASF services read the .asf.yml
> > >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file
> in
> > the
> > >> asf-site branch and copy the built contents from that branch to
> wherever
> > >> the ASF is hosting the static sites for projects.
> > >
> > >
> > > Does changing default to master still need some generation and commit
> to
> > > master?
> > >
> > > If the above has no impact, I'm +1 for this change.
> > >
> > >
> > >> On Mon, Feb 12, 2024 at 9:47 PM Zita Dombi <zi...@apache.org>
> > wrote:
> > >>
> > >> Hi,
> > >>
> > >> Thanks Ethan for bringing this up, I'm +1 for this change.
> > >>
> > >> Zita
> > >>
> > >> Abhishek Pal <pa...@gmail.com> ezt írta (időpont:
> 2024.
> > >> febr. 10., Szo, 22:43):
> > >>
> > >>> Hi Ethan,
> > >>> Thanks for taking up this initiative.
> > >>> While this is not a problem for existing committers, I do believe
> > people
> > >>> who are new to the repo might have some confusion with the current
> > >>> branching and how GitHub actions builds the site.
> > >>> I give a +1 vote for this change.
> > >>> Though we are eventually shifting to a new website, that might take
> > time,
> > >>> and in the meantime this change will help reduce confusion for any
> new
> > >>> contributors as well as address the templating issues.
> > >>>
> > >>>> On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:
> > >>>
> > >>>> Hi Ozone devs,
> > >>>>
> > >>>> I’d like to start a vote thread to change the default branch in the
> > >>>> apache/ozone-site <https://github.com/apache/ozone-site> repo from
> > >>>> asf-site
> > >>>> to master. Changing the default branch requires an Infra ticket and
> > >>> mailing
> > >>>> thread according to the asfyaml README
> > >>>> <
> > >>>>
> > >>>
> > >>
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> > >>>>> .
> > >>>> I’ll start with some questions you may have when deciding to vote:
> > >>>>
> > >>>> *Does this have anything to do with the new website development that
> > is
> > >>>> happening on the feature branch HDDS-9225-website-v2
> > >>>> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> > >>>>
> > >>>> No, this has nothing to do with the new website. The change would be
> > >>>> effective for the existing website only since it concerns the
> asf-site
> > >>> and
> > >>>> master branches, neither of which the new website uses right now.
> > >>>>
> > >>>> *What is the difference between asf-site and master?*
> > >>>>
> > >>>> The master branch contains the code that we modify and commit to
> > change
> > >>> the
> > >>>> website. The asf-site branch contains the already built website. The
> > >>>> contents of asf-site are automatically generated from master and
> > >>> committed
> > >>>> by a GitHub Action
> > >>>> <
> > >>>>
> > >>>
> > >>
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > >>>>> .
> > >>>> From there, existing ASF services read the .asf.yml
> > >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file
> > in
> > >>> the
> > >>>> asf-site branch and copy the built contents from that branch to
> > >> wherever
> > >>>> the ASF is hosting the static sites for projects.
> > >>>>
> > >>>> *Why should we change the default branch from asf-site to master?*
> > >>>>
> > >>>>   1. (My primary motivation) Pull request templates only work if
> they
> > >>>> are committed
> > >>>>   to the default branch
> > >>>>   <
> > >>>>
> > >>>
> > >>
> >
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> > >>>>>
> > >>>>   .
> > >>>>   Committing the PR template from HDDS-10267
> > >>>>   <https://issues.apache.org/jira/browse/HDDS-10267> to the
> asf-site
> > >>>>   branch would be clunky and difficult to modify. It is better to
> > >> leave
> > >>>> that
> > >>>>   branch for auto generated content only. That PR template currently
> > >>> does
> > >>>> not
> > >>>>   work since it is not on the asf-site (current default) branch.
> > >>>>   2. It’s confusing for users who go to the site on GitHub or clone
> > >> the
> > >>>>   repo and expect to see the code they should modify to change the
> > >> site.
> > >>>>   Instead they have to find the branch that actually has the code
> that
> > >>> the
> > >>>>   asf-site build content came from.
> > >>>>   3. (Minor) PRs default to using the default branch. When filing a
> PR
> > >>> for
> > >>>>   the website, GitHub suggests using asf-site first, which gives a
> > >>> message
> > >>>>   stating that the changes cannot be merged since there is no common
> > >>>> history.
> > >>>>
> > >>>> *Why is our current default asf-site?*
> > >>>>
> > >>>> I’m not sure, maybe someone in the community has historical context
> on
> > >>>> this. It could be because this is the branch that pre-built docs are
> > >>>> committed to when we copy them from the main Ozone repo (a practice
> we
> > >>> are
> > >>>> looking to get rid of in the new website). It also seems there were
> > >>>> some changes
> > >>>> to branch publishing made around May 2021
> > >>>> <
> > >>>>
> > >>>
> > >>
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> > >>>>>
> > >>>> so perhaps it was required to be this way for publishing before
> those
> > >>>> updates.
> > >>>>
> > >>>> *Is there any standard among other ASF projects for which branch
> > should
> > >>> be
> > >>>> the default?*
> > >>>>
> > >>>> I’ve looked at a bunch of other project’s websites and have yet to
> > find
> > >>> one
> > >>>> that’s using asf-site as the default. They are all using the
> > >> development
> > >>>> branch (equivalent to our master branch) as the default branch. See
> > >>>>
> > >>>>   - https://github.com/apache/yunikorn-site
> > >>>>   - https://github.com/apache/streampipes-website
> > >>>>   - https://github.com/apache/kvrocks-website
> > >>>>   - https://github.com/apache/pulsar-site
> > >>>>   - https://github.com/apache/doris-website
> > >>>>   - https://github.com/apache/rocketmq-site
> > >>>>
> > >>>> *Will this affect the existing website?*
> > >>>>
> > >>>> This should not affect the existing website. The branch to use for
> > >>>> deployment is hardcoded in .asf.yml
> > >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and
> > not
> > >>>> implied from the repository’s default branch setting. Deployment
> > should
> > >>>> work as usual. I will double check with infra on the ticket to make
> > >> sure
> > >>> no
> > >>>> changes are required when making this change.
> > >>>>
> > >>>> Overall a long winded email for a pretty simple change. I’ll start
> > with
> > >>> my
> > >>>> +1 with the hope of incrementally improving the development
> experience
> > >> of
> > >>>> the current site, and in the future, the new website as well.
> > >>>>
> > >>>> Ethan
> > >>>>
> > >>>
> > >>
> > >
> > >
> > > --
> > > *Sumit Agrawal* | Senior Staff Engineer
> > > cloudera.com <https://www.cloudera.com>
> > > [image: Cloudera] <https://www.cloudera.com/>
> > > [image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
> > > Cloudera on Facebook] <https://www.facebook.com/cloudera> [image:
> > Cloudera
> > > on LinkedIn] <https://www.linkedin.com/company/cloudera>
> > > ------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
> > For additional commands, e-mail: dev-help@ozone.apache.org
> >
> >
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Ethan Rose <er...@apache.org>.
Does changing default to master still need some generation and commit to
master?

Hi Sumit. The process to generate the website from master and commit it to
asf-site will not be affected by this change. The Github workflow copies
the build from master
<https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L19>
to asf-site
<https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31>,
and the .asf.yaml file in the asf-site branch indicates that the asf-site
<https://github.com/apache/ozone-site/blob/2a519d63500e52b8ebeb20ebe4fb88afaea8c96b/.github/workflows/regenerate.yml#L31>
branch is the one to publish. Both files have the branch to work with
hardcoded in them, I’ve linked directly to those lines here. They do not
read GitHub’s default branch, so the publishing process should work without
changes if the default branch is updated in GitHub.

The source code used to build the website will continue to be committed to
master.

Ethan

On Tue, Feb 13, 2024 at 9:00 PM Ayush Saxena <ay...@gmail.com> wrote:

> +1
>
> -Ayush
>
> > On 14-Feb-2024, at 10:12 AM, Sumit Agrawal <su...@cloudera.com.invalid>
> wrote:
> >
> > Hi,
> >
> > The contents of asf-site are automatically *generated from master and
> >> committed*
> >> by a GitHub Action
> >> <
> >>
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> >>> .
> >> From there, existing ASF services read the .asf.yml
> >> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in
> the
> >> asf-site branch and copy the built contents from that branch to wherever
> >> the ASF is hosting the static sites for projects.
> >
> >
> > Does changing default to master still need some generation and commit to
> > master?
> >
> > If the above has no impact, I'm +1 for this change.
> >
> >
> >> On Mon, Feb 12, 2024 at 9:47 PM Zita Dombi <zi...@apache.org>
> wrote:
> >>
> >> Hi,
> >>
> >> Thanks Ethan for bringing this up, I'm +1 for this change.
> >>
> >> Zita
> >>
> >> Abhishek Pal <pa...@gmail.com> ezt írta (időpont: 2024.
> >> febr. 10., Szo, 22:43):
> >>
> >>> Hi Ethan,
> >>> Thanks for taking up this initiative.
> >>> While this is not a problem for existing committers, I do believe
> people
> >>> who are new to the repo might have some confusion with the current
> >>> branching and how GitHub actions builds the site.
> >>> I give a +1 vote for this change.
> >>> Though we are eventually shifting to a new website, that might take
> time,
> >>> and in the meantime this change will help reduce confusion for any new
> >>> contributors as well as address the templating issues.
> >>>
> >>>> On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:
> >>>
> >>>> Hi Ozone devs,
> >>>>
> >>>> I’d like to start a vote thread to change the default branch in the
> >>>> apache/ozone-site <https://github.com/apache/ozone-site> repo from
> >>>> asf-site
> >>>> to master. Changing the default branch requires an Infra ticket and
> >>> mailing
> >>>> thread according to the asfyaml README
> >>>> <
> >>>>
> >>>
> >>
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> >>>>> .
> >>>> I’ll start with some questions you may have when deciding to vote:
> >>>>
> >>>> *Does this have anything to do with the new website development that
> is
> >>>> happening on the feature branch HDDS-9225-website-v2
> >>>> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> >>>>
> >>>> No, this has nothing to do with the new website. The change would be
> >>>> effective for the existing website only since it concerns the asf-site
> >>> and
> >>>> master branches, neither of which the new website uses right now.
> >>>>
> >>>> *What is the difference between asf-site and master?*
> >>>>
> >>>> The master branch contains the code that we modify and commit to
> change
> >>> the
> >>>> website. The asf-site branch contains the already built website. The
> >>>> contents of asf-site are automatically generated from master and
> >>> committed
> >>>> by a GitHub Action
> >>>> <
> >>>>
> >>>
> >>
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> >>>>> .
> >>>> From there, existing ASF services read the .asf.yml
> >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file
> in
> >>> the
> >>>> asf-site branch and copy the built contents from that branch to
> >> wherever
> >>>> the ASF is hosting the static sites for projects.
> >>>>
> >>>> *Why should we change the default branch from asf-site to master?*
> >>>>
> >>>>   1. (My primary motivation) Pull request templates only work if they
> >>>> are committed
> >>>>   to the default branch
> >>>>   <
> >>>>
> >>>
> >>
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> >>>>>
> >>>>   .
> >>>>   Committing the PR template from HDDS-10267
> >>>>   <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
> >>>>   branch would be clunky and difficult to modify. It is better to
> >> leave
> >>>> that
> >>>>   branch for auto generated content only. That PR template currently
> >>> does
> >>>> not
> >>>>   work since it is not on the asf-site (current default) branch.
> >>>>   2. It’s confusing for users who go to the site on GitHub or clone
> >> the
> >>>>   repo and expect to see the code they should modify to change the
> >> site.
> >>>>   Instead they have to find the branch that actually has the code that
> >>> the
> >>>>   asf-site build content came from.
> >>>>   3. (Minor) PRs default to using the default branch. When filing a PR
> >>> for
> >>>>   the website, GitHub suggests using asf-site first, which gives a
> >>> message
> >>>>   stating that the changes cannot be merged since there is no common
> >>>> history.
> >>>>
> >>>> *Why is our current default asf-site?*
> >>>>
> >>>> I’m not sure, maybe someone in the community has historical context on
> >>>> this. It could be because this is the branch that pre-built docs are
> >>>> committed to when we copy them from the main Ozone repo (a practice we
> >>> are
> >>>> looking to get rid of in the new website). It also seems there were
> >>>> some changes
> >>>> to branch publishing made around May 2021
> >>>> <
> >>>>
> >>>
> >>
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> >>>>>
> >>>> so perhaps it was required to be this way for publishing before those
> >>>> updates.
> >>>>
> >>>> *Is there any standard among other ASF projects for which branch
> should
> >>> be
> >>>> the default?*
> >>>>
> >>>> I’ve looked at a bunch of other project’s websites and have yet to
> find
> >>> one
> >>>> that’s using asf-site as the default. They are all using the
> >> development
> >>>> branch (equivalent to our master branch) as the default branch. See
> >>>>
> >>>>   - https://github.com/apache/yunikorn-site
> >>>>   - https://github.com/apache/streampipes-website
> >>>>   - https://github.com/apache/kvrocks-website
> >>>>   - https://github.com/apache/pulsar-site
> >>>>   - https://github.com/apache/doris-website
> >>>>   - https://github.com/apache/rocketmq-site
> >>>>
> >>>> *Will this affect the existing website?*
> >>>>
> >>>> This should not affect the existing website. The branch to use for
> >>>> deployment is hardcoded in .asf.yml
> >>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and
> not
> >>>> implied from the repository’s default branch setting. Deployment
> should
> >>>> work as usual. I will double check with infra on the ticket to make
> >> sure
> >>> no
> >>>> changes are required when making this change.
> >>>>
> >>>> Overall a long winded email for a pretty simple change. I’ll start
> with
> >>> my
> >>>> +1 with the hope of incrementally improving the development experience
> >> of
> >>>> the current site, and in the future, the new website as well.
> >>>>
> >>>> Ethan
> >>>>
> >>>
> >>
> >
> >
> > --
> > *Sumit Agrawal* | Senior Staff Engineer
> > cloudera.com <https://www.cloudera.com>
> > [image: Cloudera] <https://www.cloudera.com/>
> > [image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
> > Cloudera on Facebook] <https://www.facebook.com/cloudera> [image:
> Cloudera
> > on LinkedIn] <https://www.linkedin.com/company/cloudera>
> > ------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
> For additional commands, e-mail: dev-help@ozone.apache.org
>
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Ayush Saxena <ay...@gmail.com>.
+1

-Ayush 

> On 14-Feb-2024, at 10:12 AM, Sumit Agrawal <su...@cloudera.com.invalid> wrote:
> 
> Hi,
> 
> The contents of asf-site are automatically *generated from master and
>> committed*
>> by a GitHub Action
>> <
>> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
>>> .
>> From there, existing ASF services read the .asf.yml
>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in the
>> asf-site branch and copy the built contents from that branch to wherever
>> the ASF is hosting the static sites for projects.
> 
> 
> Does changing default to master still need some generation and commit to
> master?
> 
> If the above has no impact, I'm +1 for this change.
> 
> 
>> On Mon, Feb 12, 2024 at 9:47 PM Zita Dombi <zi...@apache.org> wrote:
>> 
>> Hi,
>> 
>> Thanks Ethan for bringing this up, I'm +1 for this change.
>> 
>> Zita
>> 
>> Abhishek Pal <pa...@gmail.com> ezt írta (időpont: 2024.
>> febr. 10., Szo, 22:43):
>> 
>>> Hi Ethan,
>>> Thanks for taking up this initiative.
>>> While this is not a problem for existing committers, I do believe people
>>> who are new to the repo might have some confusion with the current
>>> branching and how GitHub actions builds the site.
>>> I give a +1 vote for this change.
>>> Though we are eventually shifting to a new website, that might take time,
>>> and in the meantime this change will help reduce confusion for any new
>>> contributors as well as address the templating issues.
>>> 
>>>> On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:
>>> 
>>>> Hi Ozone devs,
>>>> 
>>>> I’d like to start a vote thread to change the default branch in the
>>>> apache/ozone-site <https://github.com/apache/ozone-site> repo from
>>>> asf-site
>>>> to master. Changing the default branch requires an Infra ticket and
>>> mailing
>>>> thread according to the asfyaml README
>>>> <
>>>> 
>>> 
>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
>>>>> .
>>>> I’ll start with some questions you may have when deciding to vote:
>>>> 
>>>> *Does this have anything to do with the new website development that is
>>>> happening on the feature branch HDDS-9225-website-v2
>>>> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
>>>> 
>>>> No, this has nothing to do with the new website. The change would be
>>>> effective for the existing website only since it concerns the asf-site
>>> and
>>>> master branches, neither of which the new website uses right now.
>>>> 
>>>> *What is the difference between asf-site and master?*
>>>> 
>>>> The master branch contains the code that we modify and commit to change
>>> the
>>>> website. The asf-site branch contains the already built website. The
>>>> contents of asf-site are automatically generated from master and
>>> committed
>>>> by a GitHub Action
>>>> <
>>>> 
>>> 
>> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
>>>>> .
>>>> From there, existing ASF services read the .asf.yml
>>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in
>>> the
>>>> asf-site branch and copy the built contents from that branch to
>> wherever
>>>> the ASF is hosting the static sites for projects.
>>>> 
>>>> *Why should we change the default branch from asf-site to master?*
>>>> 
>>>>   1. (My primary motivation) Pull request templates only work if they
>>>> are committed
>>>>   to the default branch
>>>>   <
>>>> 
>>> 
>> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
>>>>> 
>>>>   .
>>>>   Committing the PR template from HDDS-10267
>>>>   <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
>>>>   branch would be clunky and difficult to modify. It is better to
>> leave
>>>> that
>>>>   branch for auto generated content only. That PR template currently
>>> does
>>>> not
>>>>   work since it is not on the asf-site (current default) branch.
>>>>   2. It’s confusing for users who go to the site on GitHub or clone
>> the
>>>>   repo and expect to see the code they should modify to change the
>> site.
>>>>   Instead they have to find the branch that actually has the code that
>>> the
>>>>   asf-site build content came from.
>>>>   3. (Minor) PRs default to using the default branch. When filing a PR
>>> for
>>>>   the website, GitHub suggests using asf-site first, which gives a
>>> message
>>>>   stating that the changes cannot be merged since there is no common
>>>> history.
>>>> 
>>>> *Why is our current default asf-site?*
>>>> 
>>>> I’m not sure, maybe someone in the community has historical context on
>>>> this. It could be because this is the branch that pre-built docs are
>>>> committed to when we copy them from the main Ozone repo (a practice we
>>> are
>>>> looking to get rid of in the new website). It also seems there were
>>>> some changes
>>>> to branch publishing made around May 2021
>>>> <
>>>> 
>>> 
>> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
>>>>> 
>>>> so perhaps it was required to be this way for publishing before those
>>>> updates.
>>>> 
>>>> *Is there any standard among other ASF projects for which branch should
>>> be
>>>> the default?*
>>>> 
>>>> I’ve looked at a bunch of other project’s websites and have yet to find
>>> one
>>>> that’s using asf-site as the default. They are all using the
>> development
>>>> branch (equivalent to our master branch) as the default branch. See
>>>> 
>>>>   - https://github.com/apache/yunikorn-site
>>>>   - https://github.com/apache/streampipes-website
>>>>   - https://github.com/apache/kvrocks-website
>>>>   - https://github.com/apache/pulsar-site
>>>>   - https://github.com/apache/doris-website
>>>>   - https://github.com/apache/rocketmq-site
>>>> 
>>>> *Will this affect the existing website?*
>>>> 
>>>> This should not affect the existing website. The branch to use for
>>>> deployment is hardcoded in .asf.yml
>>>> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
>>>> implied from the repository’s default branch setting. Deployment should
>>>> work as usual. I will double check with infra on the ticket to make
>> sure
>>> no
>>>> changes are required when making this change.
>>>> 
>>>> Overall a long winded email for a pretty simple change. I’ll start with
>>> my
>>>> +1 with the hope of incrementally improving the development experience
>> of
>>>> the current site, and in the future, the new website as well.
>>>> 
>>>> Ethan
>>>> 
>>> 
>> 
> 
> 
> --
> *Sumit Agrawal* | Senior Staff Engineer
> cloudera.com <https://www.cloudera.com>
> [image: Cloudera] <https://www.cloudera.com/>
> [image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
> Cloudera on Facebook] <https://www.facebook.com/cloudera> [image: Cloudera
> on LinkedIn] <https://www.linkedin.com/company/cloudera>
> ------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
For additional commands, e-mail: dev-help@ozone.apache.org


Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Sumit Agrawal <su...@cloudera.com.INVALID>.
Hi,

The contents of asf-site are automatically *generated from master and
> committed*
> by a GitHub Action
> <
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> >.
> From there, existing ASF services read the .asf.yml
> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in the
> asf-site branch and copy the built contents from that branch to wherever
> the ASF is hosting the static sites for projects.


Does changing default to master still need some generation and commit to
master?

If the above has no impact, I'm +1 for this change.


On Mon, Feb 12, 2024 at 9:47 PM Zita Dombi <zi...@apache.org> wrote:

> Hi,
>
> Thanks Ethan for bringing this up, I'm +1 for this change.
>
> Zita
>
> Abhishek Pal <pa...@gmail.com> ezt írta (időpont: 2024.
> febr. 10., Szo, 22:43):
>
> > Hi Ethan,
> > Thanks for taking up this initiative.
> > While this is not a problem for existing committers, I do believe people
> > who are new to the repo might have some confusion with the current
> > branching and how GitHub actions builds the site.
> > I give a +1 vote for this change.
> > Though we are eventually shifting to a new website, that might take time,
> > and in the meantime this change will help reduce confusion for any new
> > contributors as well as address the templating issues.
> >
> > On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:
> >
> > > Hi Ozone devs,
> > >
> > > I’d like to start a vote thread to change the default branch in the
> > > apache/ozone-site <https://github.com/apache/ozone-site> repo from
> > > asf-site
> > > to master. Changing the default branch requires an Infra ticket and
> > mailing
> > > thread according to the asfyaml README
> > > <
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> > > >.
> > > I’ll start with some questions you may have when deciding to vote:
> > >
> > > *Does this have anything to do with the new website development that is
> > > happening on the feature branch HDDS-9225-website-v2
> > > <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> > >
> > > No, this has nothing to do with the new website. The change would be
> > > effective for the existing website only since it concerns the asf-site
> > and
> > > master branches, neither of which the new website uses right now.
> > >
> > > *What is the difference between asf-site and master?*
> > >
> > > The master branch contains the code that we modify and commit to change
> > the
> > > website. The asf-site branch contains the already built website. The
> > > contents of asf-site are automatically generated from master and
> > committed
> > > by a GitHub Action
> > > <
> > >
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > > >.
> > > From there, existing ASF services read the .asf.yml
> > > <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in
> > the
> > > asf-site branch and copy the built contents from that branch to
> wherever
> > > the ASF is hosting the static sites for projects.
> > >
> > > *Why should we change the default branch from asf-site to master?*
> > >
> > >    1. (My primary motivation) Pull request templates only work if they
> > > are committed
> > >    to the default branch
> > >    <
> > >
> >
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> > > >
> > >    .
> > >    Committing the PR template from HDDS-10267
> > >    <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
> > >    branch would be clunky and difficult to modify. It is better to
> leave
> > > that
> > >    branch for auto generated content only. That PR template currently
> > does
> > > not
> > >    work since it is not on the asf-site (current default) branch.
> > >    2. It’s confusing for users who go to the site on GitHub or clone
> the
> > >    repo and expect to see the code they should modify to change the
> site.
> > >    Instead they have to find the branch that actually has the code that
> > the
> > >    asf-site build content came from.
> > >    3. (Minor) PRs default to using the default branch. When filing a PR
> > for
> > >    the website, GitHub suggests using asf-site first, which gives a
> > message
> > >    stating that the changes cannot be merged since there is no common
> > > history.
> > >
> > > *Why is our current default asf-site?*
> > >
> > > I’m not sure, maybe someone in the community has historical context on
> > > this. It could be because this is the branch that pre-built docs are
> > > committed to when we copy them from the main Ozone repo (a practice we
> > are
> > > looking to get rid of in the new website). It also seems there were
> > > some changes
> > > to branch publishing made around May 2021
> > > <
> > >
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> > > >
> > > so perhaps it was required to be this way for publishing before those
> > > updates.
> > >
> > > *Is there any standard among other ASF projects for which branch should
> > be
> > > the default?*
> > >
> > > I’ve looked at a bunch of other project’s websites and have yet to find
> > one
> > > that’s using asf-site as the default. They are all using the
> development
> > > branch (equivalent to our master branch) as the default branch. See
> > >
> > >    - https://github.com/apache/yunikorn-site
> > >    - https://github.com/apache/streampipes-website
> > >    - https://github.com/apache/kvrocks-website
> > >    - https://github.com/apache/pulsar-site
> > >    - https://github.com/apache/doris-website
> > >    - https://github.com/apache/rocketmq-site
> > >
> > > *Will this affect the existing website?*
> > >
> > > This should not affect the existing website. The branch to use for
> > > deployment is hardcoded in .asf.yml
> > > <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
> > > implied from the repository’s default branch setting. Deployment should
> > > work as usual. I will double check with infra on the ticket to make
> sure
> > no
> > > changes are required when making this change.
> > >
> > > Overall a long winded email for a pretty simple change. I’ll start with
> > my
> > > +1 with the hope of incrementally improving the development experience
> of
> > > the current site, and in the future, the new website as well.
> > >
> > > Ethan
> > >
> >
>


-- 
*Sumit Agrawal* | Senior Staff Engineer
cloudera.com <https://www.cloudera.com>
[image: Cloudera] <https://www.cloudera.com/>
[image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
Cloudera on Facebook] <https://www.facebook.com/cloudera> [image: Cloudera
on LinkedIn] <https://www.linkedin.com/company/cloudera>
------------------------------

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Zita Dombi <zi...@apache.org>.
Hi,

Thanks Ethan for bringing this up, I'm +1 for this change.

Zita

Abhishek Pal <pa...@gmail.com> ezt írta (időpont: 2024.
febr. 10., Szo, 22:43):

> Hi Ethan,
> Thanks for taking up this initiative.
> While this is not a problem for existing committers, I do believe people
> who are new to the repo might have some confusion with the current
> branching and how GitHub actions builds the site.
> I give a +1 vote for this change.
> Though we are eventually shifting to a new website, that might take time,
> and in the meantime this change will help reduce confusion for any new
> contributors as well as address the templating issues.
>
> On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:
>
> > Hi Ozone devs,
> >
> > I’d like to start a vote thread to change the default branch in the
> > apache/ozone-site <https://github.com/apache/ozone-site> repo from
> > asf-site
> > to master. Changing the default branch requires an Infra ticket and
> mailing
> > thread according to the asfyaml README
> > <
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> > >.
> > I’ll start with some questions you may have when deciding to vote:
> >
> > *Does this have anything to do with the new website development that is
> > happening on the feature branch HDDS-9225-website-v2
> > <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
> >
> > No, this has nothing to do with the new website. The change would be
> > effective for the existing website only since it concerns the asf-site
> and
> > master branches, neither of which the new website uses right now.
> >
> > *What is the difference between asf-site and master?*
> >
> > The master branch contains the code that we modify and commit to change
> the
> > website. The asf-site branch contains the already built website. The
> > contents of asf-site are automatically generated from master and
> committed
> > by a GitHub Action
> > <
> >
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> > >.
> > From there, existing ASF services read the .asf.yml
> > <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in
> the
> > asf-site branch and copy the built contents from that branch to wherever
> > the ASF is hosting the static sites for projects.
> >
> > *Why should we change the default branch from asf-site to master?*
> >
> >    1. (My primary motivation) Pull request templates only work if they
> > are committed
> >    to the default branch
> >    <
> >
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> > >
> >    .
> >    Committing the PR template from HDDS-10267
> >    <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
> >    branch would be clunky and difficult to modify. It is better to leave
> > that
> >    branch for auto generated content only. That PR template currently
> does
> > not
> >    work since it is not on the asf-site (current default) branch.
> >    2. It’s confusing for users who go to the site on GitHub or clone the
> >    repo and expect to see the code they should modify to change the site.
> >    Instead they have to find the branch that actually has the code that
> the
> >    asf-site build content came from.
> >    3. (Minor) PRs default to using the default branch. When filing a PR
> for
> >    the website, GitHub suggests using asf-site first, which gives a
> message
> >    stating that the changes cannot be merged since there is no common
> > history.
> >
> > *Why is our current default asf-site?*
> >
> > I’m not sure, maybe someone in the community has historical context on
> > this. It could be because this is the branch that pre-built docs are
> > committed to when we copy them from the main Ozone repo (a practice we
> are
> > looking to get rid of in the new website). It also seems there were
> > some changes
> > to branch publishing made around May 2021
> > <
> >
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> > >
> > so perhaps it was required to be this way for publishing before those
> > updates.
> >
> > *Is there any standard among other ASF projects for which branch should
> be
> > the default?*
> >
> > I’ve looked at a bunch of other project’s websites and have yet to find
> one
> > that’s using asf-site as the default. They are all using the development
> > branch (equivalent to our master branch) as the default branch. See
> >
> >    - https://github.com/apache/yunikorn-site
> >    - https://github.com/apache/streampipes-website
> >    - https://github.com/apache/kvrocks-website
> >    - https://github.com/apache/pulsar-site
> >    - https://github.com/apache/doris-website
> >    - https://github.com/apache/rocketmq-site
> >
> > *Will this affect the existing website?*
> >
> > This should not affect the existing website. The branch to use for
> > deployment is hardcoded in .asf.yml
> > <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
> > implied from the repository’s default branch setting. Deployment should
> > work as usual. I will double check with infra on the ticket to make sure
> no
> > changes are required when making this change.
> >
> > Overall a long winded email for a pretty simple change. I’ll start with
> my
> > +1 with the hope of incrementally improving the development experience of
> > the current site, and in the future, the new website as well.
> >
> > Ethan
> >
>

Re: [VOTE] Change the default branch for ozone-site from asf-site to master

Posted by Abhishek Pal <pa...@gmail.com>.
Hi Ethan,
Thanks for taking up this initiative.
While this is not a problem for existing committers, I do believe people
who are new to the repo might have some confusion with the current
branching and how GitHub actions builds the site.
I give a +1 vote for this change.
Though we are eventually shifting to a new website, that might take time,
and in the meantime this change will help reduce confusion for any new
contributors as well as address the templating issues.

On Fri, 9 Feb 2024 at 05:44, Ethan Rose <er...@apache.org> wrote:

> Hi Ozone devs,
>
> I’d like to start a vote thread to change the default branch in the
> apache/ozone-site <https://github.com/apache/ozone-site> repo from
> asf-site
> to master. Changing the default branch requires an Infra ticket and mailing
> thread according to the asfyaml README
> <
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#default-branch
> >.
> I’ll start with some questions you may have when deciding to vote:
>
> *Does this have anything to do with the new website development that is
> happening on the feature branch HDDS-9225-website-v2
> <https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2>?*
>
> No, this has nothing to do with the new website. The change would be
> effective for the existing website only since it concerns the asf-site and
> master branches, neither of which the new website uses right now.
>
> *What is the difference between asf-site and master?*
>
> The master branch contains the code that we modify and commit to change the
> website. The asf-site branch contains the already built website. The
> contents of asf-site are automatically generated from master and committed
> by a GitHub Action
> <
> https://github.com/apache/ozone-site/blob/master/.github/workflows/regenerate.yml
> >.
> From there, existing ASF services read the .asf.yml
> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> file in the
> asf-site branch and copy the built contents from that branch to wherever
> the ASF is hosting the static sites for projects.
>
> *Why should we change the default branch from asf-site to master?*
>
>    1. (My primary motivation) Pull request templates only work if they
> are committed
>    to the default branch
>    <
> https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates#pull-request-templates
> >
>    .
>    Committing the PR template from HDDS-10267
>    <https://issues.apache.org/jira/browse/HDDS-10267> to the asf-site
>    branch would be clunky and difficult to modify. It is better to leave
> that
>    branch for auto generated content only. That PR template currently does
> not
>    work since it is not on the asf-site (current default) branch.
>    2. It’s confusing for users who go to the site on GitHub or clone the
>    repo and expect to see the code they should modify to change the site.
>    Instead they have to find the branch that actually has the code that the
>    asf-site build content came from.
>    3. (Minor) PRs default to using the default branch. When filing a PR for
>    the website, GitHub suggests using asf-site first, which gives a message
>    stating that the changes cannot be merged since there is no common
> history.
>
> *Why is our current default asf-site?*
>
> I’m not sure, maybe someone in the community has historical context on
> this. It could be because this is the branch that pre-built docs are
> committed to when we copy them from the main Ozone repo (a practice we are
> looking to get rid of in the new website). It also seems there were
> some changes
> to branch publishing made around May 2021
> <
> https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#publishing-a-branch-to-your-project-web-site
> >
> so perhaps it was required to be this way for publishing before those
> updates.
>
> *Is there any standard among other ASF projects for which branch should be
> the default?*
>
> I’ve looked at a bunch of other project’s websites and have yet to find one
> that’s using asf-site as the default. They are all using the development
> branch (equivalent to our master branch) as the default branch. See
>
>    - https://github.com/apache/yunikorn-site
>    - https://github.com/apache/streampipes-website
>    - https://github.com/apache/kvrocks-website
>    - https://github.com/apache/pulsar-site
>    - https://github.com/apache/doris-website
>    - https://github.com/apache/rocketmq-site
>
> *Will this affect the existing website?*
>
> This should not affect the existing website. The branch to use for
> deployment is hardcoded in .asf.yml
> <https://github.com/apache/ozone-site/blob/asf-site/.asf.yaml> and not
> implied from the repository’s default branch setting. Deployment should
> work as usual. I will double check with infra on the ticket to make sure no
> changes are required when making this change.
>
> Overall a long winded email for a pretty simple change. I’ll start with my
> +1 with the hope of incrementally improving the development experience of
> the current site, and in the future, the new website as well.
>
> Ethan
>