Skip to content

Commit 75c0c32

Browse files
committed
Add more information about core team processes
1 parent 3e2d36b commit 75c0c32

File tree

1 file changed

+117
-13
lines changed

1 file changed

+117
-13
lines changed

contributing/core_team.rst

+117-13
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,24 @@ Core Team Member Responsibilities
2727

2828
Core Team members are unpaid volunteers and as such, they are not expected to
2929
dedicate any specific amount of time on Symfony. They are expected to help the
30-
project in any way they can, from reviewing pull requests, writing documentation
31-
to participating in discussions and helping the community in general, but their
32-
involvement is completely voluntary and can be as much or as little as they
33-
want.
30+
project in any way they can. From reviewing pull requests and writing documentation,
31+
to participating in discussions and helping the community in general. However,
32+
their involvement is completely voluntary and can be as much or as little as
33+
they want.
34+
35+
Core Team Communication
36+
~~~~~~~~~~~~~~~~~~~~~~~
37+
38+
As an open source project, public discussions and documentation is favored
39+
over private ones. All communication in the Symfony community conforms to
40+
the :doc:`/contributing/code_of_conduct/code_of_conduct`. Request
41+
assistance from other Core and CARE team members when getting in situations
42+
not following the Code of Conduct.
43+
44+
Core Team members are invited in a private Slack channel, for quick
45+
interactions and private processes (e.g. security issues). Each member
46+
should feel free to ask for assistance for anything they may encounter.
47+
Expect no judgement from other team members.
3448

3549
Core Organization
3650
-----------------
@@ -145,6 +159,14 @@ A Symfony Core membership can be revoked for any of the following reasons:
145159
* Willful negligence or intent to harm the Symfony project;
146160
* Upon decision of the **Project Leader**.
147161

162+
Core Membership Compensation
163+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164+
165+
Core Team members work on Symfony on a purely voluntary basis. In return
166+
for their work for the Symfony project, members can get free access to
167+
Symfony conferences. Personal vouchers for Symfony conferences are handed out
168+
on request by the **Project Leader**.
169+
148170
Code Development Rules
149171
----------------------
150172

@@ -169,7 +191,7 @@ Pull Request Merging Policy
169191

170192
A pull request **can be merged** if:
171193

172-
* It is a :ref:`minor change <core-team_minor-changes>`;
194+
* It is a :ref:`peripheral change <core-team_peripheral-changes>`;
173195
* Enough time was given for peer reviews;
174196
* It is a bug fix and at least two **Mergers Team** members voted ``+1``
175197
(only one if the submitter is part of the Mergers team) and no Core
@@ -178,11 +200,19 @@ A pull request **can be merged** if:
178200
``+1`` (if the submitter is part of the Mergers team, two *other* members)
179201
and no Core member voted ``-1`` (via GitHub reviews or as comments).
180202

203+
.. _core-team_peripheral-changes:
204+
205+
.. note::
206+
207+
Peripheral changes comprise typos, DocBlock fixes, code standards
208+
fixes, comment, exception message tweaks, and minor CSS, JavaScript and
209+
HTML modifications.
210+
181211
Pull Request Merging Process
182212
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
183213

184214
All code must be committed to the repository through pull requests, except for
185-
:ref:`minor change <core-team_minor-changes>` which can be committed directly
215+
:ref:`peripheral change <core-team_peripheral-changes>` which can be committed directly
186216
to the repository.
187217

188218
**Mergers** must always use the command-line ``gh`` tool provided by the
@@ -205,6 +235,86 @@ following these rules:
205235
Getting the right category is important as it is used by automated tools to
206236
generate the CHANGELOG files when releasing new versions.
207237

238+
.. tip::
239+
240+
Core team members are part of the ``mergers`` group on the ``symfony``
241+
Github organization. This gives them write-access to many repositories,
242+
including the main ``symfony/symfony`` mono-repository.
243+
244+
To avoid unintentional pushes to the main project (which in turn creates
245+
new versions on Packagist), Core team members are encouraged to have
246+
two clones of the project locally:
247+
248+
#. A clone for their own contributions, which they use to push to their
249+
fork on GitHub. Clear out the push URL for the main repository using
250+
``git remote set-url --push origin dev://null``;
251+
#. A clone for merging, which they use in combination with ``gh`` and
252+
allows them to push to the main repository.
253+
254+
Upmerging Version Branches
255+
~~~~~~~~~~~~~~~~~~~~~~~~~~
256+
257+
To synchronize changes in all versions, version branches are regularly
258+
merged from oldest to latest, called 'upmerging'. This is a manual process.
259+
There is no strict policy on when this occurs, but usually not more than
260+
once a day and at least once before monthly releases.
261+
262+
Before starting the upmerge, Git must be configured to provide a merge
263+
summary by running:
264+
265+
.. code-block:: terminal
266+
267+
$ git config --global merge.stat true
268+
269+
The upmerge should always be done on all maintained versions at the same
270+
time. Refer to `the releases page`_ to find all actively maintained
271+
versions (indicated by a green color).
272+
273+
The process follows these steps:
274+
275+
#. Start on the oldest version and make sure it's up to date with the
276+
upstream repository;
277+
#. Check-out the second oldest version, update from upstream and merge the
278+
previous version from the local branch;
279+
#. Continue this process until you reached the latest version.
280+
281+
.. code-block:: terminal
282+
283+
# 'origin' is refered to as the main upstream project
284+
$ git fetch origin
285+
286+
# update the local branches
287+
$ git checkout 6.4
288+
$ git reset --hard origin/6.4
289+
$ git checkout 7.2
290+
$ git reset --hard origin/7.2
291+
$ git checkout 7.3
292+
$ git reset --hard origin/7.3
293+
294+
# upmerge 6.4 into 7.2
295+
$ git checkout 7.2
296+
$ git merge --no-ff 6.4
297+
# ... resolve conflicts
298+
$ git commit
299+
300+
# upmerge 7.2 into 7.3
301+
$ git checkout 7.3
302+
$ git merge --no-ff 7.2
303+
# ... resolve conflicts
304+
$ git commit
305+
306+
$ git push origin 7.3 7.2 6.4
307+
308+
.. warning::
309+
310+
Upmerges must be explicit, i.e. no fast-forward merges.
311+
312+
.. tip::
313+
314+
Solving merge conflicts can be challenging. You can always ping other
315+
Core team members to help you in the process (e.g. members that merged
316+
a specific conflicting change).
317+
208318
Release Policy
209319
~~~~~~~~~~~~~~
210320

@@ -216,13 +326,6 @@ Symfony Core Rules and Protocol Amendments
216326
The rules described in this document may be amended at any time at the
217327
discretion of the **Project Leader**.
218328

219-
.. _core-team_minor-changes:
220-
221-
.. note::
222-
223-
Minor changes comprise typos, DocBlock fixes, code standards
224-
violations, and minor CSS, JavaScript and HTML modifications.
225-
226329
.. _`symfony-docs repository`: https://github.com/symfony/symfony-docs
227330
.. _`UX repositories`: https://github.com/symfony/ux
228331
.. _`fabpot`: https://github.com/fabpot/
@@ -263,3 +366,4 @@ discretion of the **Project Leader**.
263366
.. _`mtarld`: https://github.com/mtarld/
264367
.. _`spomky`: https://github.com/spomky/
265368
.. _`alexandre-daubois`: https://github.com/alexandre-daubois/
369+
.. _`the releases page`: https://symfony.com/releases

0 commit comments

Comments
 (0)