Skip to content

Commit 8c07954

Browse files
committed
Initial commit of converted rst to MyST and inserted MyST empty html_meta headers
1 parent 0d08450 commit 8c07954

34 files changed

+5770
-0
lines changed

coredev/agreement.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
myst:
3+
html_meta:
4+
"description": ""
5+
"property=og:description": ""
6+
"property=og:title": ""
7+
"keywords": ""
8+
---
9+
10+
# Contributing to Plone core
11+
12+
There are many people and companies who rely on Plone on a day-to-day basis, so we must enforce some level of code quality control.
13+
14+
Plone's source code is hosted in git repositories at <https://github.com/plone>, but only members of the developer team have commit rights.
15+
16+
Sending in a contributors agreement does not guarantee your commit access to the repositories, but once you send it in we will always have it on file for when you are ready to contribute.
17+
18+
We ask that before requesting core access you familiarize yourself a little with the community since they will help you get ramped up:
19+
20+
- Ask and (especially) answer questions on [the Plone forum](https://community.plone.org/) and in {doc}`Plone chat <culture>` with a focus on getting to know the active developers a bit.
21+
22+
- Attend a [conference](https://plone.org/events/conferences) / [symposium](http://plone.org/events/regional) or participate in a [sprint](https://plone.org/events/sprints).
23+
24+
There are plenty of opportunities to meet the community and start contributing through various coding sessions,
25+
either in person or on the web.
26+
27+
You may even be able to get immediate core access at a conference if you are flexing your mad coding skills and the right people are attending.
28+
29+
- Get your feet wet by contributing to the [collective](https://collective.github.io/).
30+
Don't worry about getting it perfect or asking for help;
31+
this way you get to know us and we improve our code together as a community.
32+
33+
- **Patches:** Historically we encouraged people to submit patches to the ticket collector.
34+
These tickets are usually ignored forever.
35+
Technically,
36+
in order for us to accept your patch you must sign the contributors agreement.
37+
If you want to contribute fixes,
38+
please just sign the agreement and go through the standard GitHub pull request process described below until you feel comfortable to bypass review.
39+
If the ticket is trivial,
40+
or you're fixing documentation,
41+
you do not need to sign a contributor's agreement.
42+
43+
Once you have familiarized yourself with the community and you are excited to contribute to the core:
44+
45+
- Sign the contributor agreement at <https://plone.org/foundation/contributors-agreement/agreement.pdf>,
46+
then either snail mail it to the address provided or scan and email it to <mailto:[email protected]>.
47+
This offers both copyright protection and ensures that the Plone Foundation is able to exercise some control over the codebase,
48+
ensuring it is not appropriated for someone's unethical purposes.
49+
For questions about why the agreement is required,
50+
please see {doc}`Contributor’s Agreement for Plone Explained <contributors_agreement_explained>`.
51+
52+
If you aren't sure where to start or just want more direction, feel free to get in the forum or in chat,
53+
and ask for help.
54+
While there is no official mentoring process, there are plenty of people willing to act in that role and
55+
guide you through the steps of getting involved in the community.
56+
A common way to start contributing is to participate in a [Plone sprint](ttps://plone.org/events/sprints).
57+
58+
**Welcome to the Plone community!**
59+
60+
## Dealing with pull requests on GitHub
61+
62+
Before we can merge a pull request, we have to check that the author has signed the contributor's agreement.
63+
64+
If they're listed in <https://github.com/plone?tab=members>, the author has signed so we can go ahead and merge.
65+
66+
If they aren't listed there, there's still a chance they have signed the contributor's agreement.
67+
68+
If they have signed before the move to GitHub, you can ask <mailto:[email protected]> to check.
69+
70+
Pull requests without contributor's agreement can only be merged in trivial cases,
71+
and only by the release manager.

coredev/agreement.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
.. -*- coding: utf-8 -*-
2+
3+
==========================
4+
Contributing to Plone Core
5+
==========================
6+
7+
There are many people and companies who rely on Plone on a day-to-day basis so we have to enforce some level of code quality control.
8+
9+
Plone's source code is hosted in git repositories at https://github.com/plone, but only members of the developer team have commit rights.
10+
11+
Sending in a contributors agreement does not guarantee your commit access to the repositories,
12+
but once you send it in we will always have it on file for when you are ready to contribute.
13+
14+
We ask that before requesting core access you familiarize yourself a little with the community since they will help you get ramped up:
15+
16+
* Ask and (especially) answer questions on `the Plone forum <https://community.plone.org/>`_ and in :doc:`Plone chat <culture>` with a focus on getting to know the active developers a bit.
17+
18+
* Attend a `conference <https://plone.org/events/conferences>`_ / `symposium <http://plone.org/events/regional>`_ or participate in a `sprint <https://plone.org/events/sprints>`_.
19+
20+
There are plenty of opportunities to meet the community and start contributing through various coding sessions,
21+
either in person or on the web.
22+
23+
You may even be able to get immediate core access at a conference if you are flexing your mad coding skills and the right people are attending.
24+
25+
* Get your feet wet by contributing to the `collective <https://collective.github.io/>`_.
26+
Don't worry about getting it perfect or asking for help;
27+
this way you get to know us and we improve our code together as a community.
28+
29+
* **Patches:** Historically we encouraged people to submit patches to the ticket collector.
30+
These tickets are usually ignored forever.
31+
Technically,
32+
in order for us to accept your patch you must sign the contributors agreement.
33+
If you want to contribute fixes,
34+
please just sign the agreement and go through the standard GitHub pull request process described below until you feel comfortable to bypass review.
35+
If the ticket is trivial,
36+
or you're fixing documentation,
37+
you do not need to sign a contributor's agreement.
38+
39+
Once you have familiarized yourself with the community and you are excited to contribute to the core:
40+
41+
* Sign the contributor agreement at https://plone.org/foundation/contributors-agreement/agreement.pdf,
42+
then either snail mail it to the address provided or scan and email it to [email protected].
43+
This offers both copyright protection and ensures that the Plone Foundation is able to exercise some control over the codebase,
44+
ensuring it is not appropriated for someone's unethical purposes.
45+
For questions about why the agreement is required,
46+
please see :doc:`Contributor’s Agreement for Plone Explained <contributors_agreement_explained>`.
47+
48+
If you aren't sure where to start or just want more direction, feel free to get in the forum or in chat,
49+
and ask for help.
50+
While there is no official mentoring process, there are plenty of people willing to act in that role and
51+
guide you through the steps of getting involved in the community.
52+
A common way to start contributing is to participate in a `Plone sprint <ttps://plone.org/events/sprints>`_.
53+
54+
55+
**Welcome to the Plone community!**
56+
57+
58+
Dealing with pull requests on GitHub
59+
====================================
60+
61+
Before we can merge a pull request, we have to check that the author has signed the contributor's agreement.
62+
63+
If they're listed in https://github.com/plone?tab=members, the author has signed so we can go ahead and merge.
64+
65+
If they aren't listed there, there's still a chance they have signed the contributor's agreement.
66+
67+
If they have signed before the move to GitHub, you can ask [email protected] to check.
68+
69+
Pull requests without contributor's agreement can only be merged in trivial cases,
70+
and only by the release manager.

coredev/continous-integration.md

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
myst:
3+
html_meta:
4+
"description": ""
5+
"property=og:description": ""
6+
"property=og:title": ""
7+
"keywords": ""
8+
---
9+
10+
% -*- coding: utf-8 -*-
11+
12+
# Essential Continuous Integration Practices
13+
14+
The CI system at [jenkins.plone.org](http://jenkins.plone.org) is a shared resource for Plone core developers
15+
to notify them of regressions in Plone core code.
16+
17+
Build breakages are a normal and expected part of the development process.
18+
Our aim is to find errors and eliminate them as quickly as possible, without expecting perfection and zero errors.
19+
Though, there are some essential rules that needs to be followed in order to achieve a stable build.
20+
21+
## 1) Don’t Check In on a Broken Build
22+
23+
Do not make things more complicated for the developer who is responsible for breaking the build.
24+
25+
If the build breaks, the developer has to identify the cause of the breakage as soon as possible and should fix it.
26+
27+
If we adopt this strategy, we will always be in the best position to find out what caused the breakage and fix it immediately.
28+
29+
If one of the developers has made a check-in and broken the build as a result, we have the best chance of fixing
30+
the build if we have a clear look at the problem.
31+
32+
Checking in further changes and triggering new builds will just lead to more problems.
33+
34+
If the build is broken over a longer period of time (more than a couple of hours)
35+
you should either notify the developer who is responsible for the breakage, fix the problem yourself,
36+
or just revert the commit in order to be able to continue to work.
37+
38+
:::{note}
39+
There is one exception to this rule.
40+
Sometimes there are changes or tests that depend on changes in other packages.
41+
If this is the case,
42+
there is no way around breaking a single build for a certain period of time.
43+
In this case run the all tests locally with all the changes and commit them within a time frame of 10 minutes.
44+
:::
45+
46+
## 2) Always Run All Commit Tests Locally before Committing
47+
48+
Following this practice ensures the build stays green and other developers can continue to work without breaking the first rule.
49+
50+
There might be changes that have been checked in before your last update from the version control that might
51+
lead to a build failure in Jenkins in combination with your changes.
52+
53+
Therefore it is essential that you check out ({command}`git pull`) and run the tests again before you push your changes to GitHub.
54+
55+
Furthermore, a common source of errors on check-in is to forget to add some files to the repository.
56+
57+
If you follow this rule and your local build passes, you can be sure that this is because someone else checked in in the meantime,
58+
or because you forgot to add a new class or configuration file that you have been working on into the version control system.
59+
60+
## 3) Wait for Commit Tests to Pass before Moving On
61+
62+
Always monitor the build’s progress and fix the problem right away if it fails.
63+
64+
You have a far better chance of fixing the build, if you just introduced a regression than later.
65+
Also another developer might have committed in the meantime (by breaking rule 1)
66+
making things more complicated for your.
67+
68+
## 4) Never Go Home on a Broken Build
69+
70+
Taking into account the first rule of CI ("Don't check in on a broken build"), breaking the build essentially
71+
stops all other developers from working on it.
72+
73+
Therefore going home on a broken build (or even on a build that has not finished yet) is **not** acceptable.
74+
It will prevent all the other developers to stop working on the build or fixing the errors that you introduced.
75+
76+
## 5) Always Be Prepared to Revert to the Previous Revision
77+
78+
In order for the other developers to be able to work on the build, you should always be prepared to revert
79+
to the previous (passing) revision.
80+
81+
## 6) Time-Box Fixing before Reverting
82+
83+
When the build breaks on check-in, try to fix it for ten minutes.
84+
If, after ten minutes, you aren’t finished with the solution, revert to the previous version from your version control system.
85+
This way you will allow other developers to continue to work.
86+
87+
## 7) Don’t Comment Out Failing Tests
88+
89+
Once you begin to enforce the previous rule, the result is often that developers start commenting out
90+
failing tests in order to get the build passing again as quick as possible.
91+
92+
While this impulse is understandable, it is **wrong**.
93+
94+
The tests have been passing for a while and then start to fail.
95+
This means that we either caused a regression, made assumptions that are no longer valid,
96+
or the application has changed the functionality being tested for a valid reason.
97+
98+
You should always either fix the code (if a regression has been found), modify the test
99+
(if one of the assumptions has changed), or delete it (if the functionality under test no longer exists).
100+
101+
## 8) Take Responsibility for All Breakages That Result from Your Changes
102+
103+
If you commit a change and all the tests you wrote pass, but others break, the build is still broken.
104+
This also applies to tests that fail in `buildout.coredev` and don't belong directly to the package you worked on.
105+
106+
This means that you have introduced a regression bug into the application.
107+
108+
It is **your responsibility** — because you made the change — to fix all tests that are not passing as a result of your changes.
109+
110+
There are some tests in Plone that fail randomly, we are always working on fixing those.
111+
If you think you hit such a test, try to fix it (better) or re-run the Jenkins job to see if it passes again.
112+
113+
In any case the developer who made the commit is responsible to make it pass.
114+
115+
## Further Reading
116+
117+
Those rules were taken from the excellent book "Continuous Delivery" by Jez Humble and David Farley (Addison Wesley),
118+
and have been adopted and rewritten for the Plone community.
119+
120+
If you want to learn more about Continuous Integration and Continuous Delivery, I'd recommend that you buy this book.

coredev/continous-integration.rst

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
.. -*- coding: utf-8 -*-
2+
3+
==========================================
4+
Essential Continuous Integration Practices
5+
==========================================
6+
7+
The CI system at `jenkins.plone.org <http://jenkins.plone.org>`_ is a shared resource for Plone core developers
8+
to notify them of regressions in Plone core code.
9+
10+
Build breakages are a normal and expected part of the development process.
11+
Our aim is to find errors and eliminate them as quickly as possible, without expecting perfection and zero errors.
12+
Though, there are some essential rules that needs to be followed in order to achieve a stable build.
13+
14+
1) Don’t Check In on a Broken Build
15+
===================================
16+
17+
Do not make things more complicated for the developer who is responsible for breaking the build.
18+
19+
If the build breaks, the developer has to identify the cause of the breakage as soon as possible and should fix it.
20+
21+
If we adopt this strategy, we will always be in the best position to find out what caused the breakage and fix it immediately.
22+
23+
If one of the developers has made a check-in and broken the build as a result, we have the best chance of fixing
24+
the build if we have a clear look at the problem.
25+
26+
Checking in further changes and triggering new builds will just lead to more problems.
27+
28+
If the build is broken over a longer period of time (more than a couple of hours)
29+
you should either notify the developer who is responsible for the breakage, fix the problem yourself,
30+
or just revert the commit in order to be able to continue to work.
31+
32+
.. note::
33+
34+
There is one exception to this rule.
35+
Sometimes there are changes or tests that depend on changes in other packages.
36+
If this is the case,
37+
there is no way around breaking a single build for a certain period of time.
38+
In this case run the all tests locally with all the changes and commit them within a time frame of 10 minutes.
39+
40+
41+
2) Always Run All Commit Tests Locally before Committing
42+
========================================================
43+
44+
Following this practice ensures the build stays green and other developers can continue to work without breaking the first rule.
45+
46+
There might be changes that have been checked in before your last update from the version control that might
47+
lead to a build failure in Jenkins in combination with your changes.
48+
49+
Therefore it is essential that you check out (:command:`git pull`) and run the tests again before you push your changes to GitHub.
50+
51+
Furthermore, a common source of errors on check-in is to forget to add some files to the repository.
52+
53+
If you follow this rule and your local build passes, you can be sure that this is because someone else checked in in the meantime,
54+
or because you forgot to add a new class or configuration file that you have been working on into the version control system.
55+
56+
57+
3) Wait for Commit Tests to Pass before Moving On
58+
=================================================
59+
60+
Always monitor the build’s progress and fix the problem right away if it fails.
61+
62+
You have a far better chance of fixing the build, if you just introduced a regression than later.
63+
Also another developer might have committed in the meantime (by breaking rule 1)
64+
making things more complicated for your.
65+
66+
67+
4) Never Go Home on a Broken Build
68+
==================================
69+
70+
Taking into account the first rule of CI ("Don't check in on a broken build"), breaking the build essentially
71+
stops all other developers from working on it.
72+
73+
Therefore going home on a broken build (or even on a build that has not finished yet) is **not** acceptable.
74+
It will prevent all the other developers to stop working on the build or fixing the errors that you introduced.
75+
76+
77+
5) Always Be Prepared to Revert to the Previous Revision
78+
========================================================
79+
80+
In order for the other developers to be able to work on the build, you should always be prepared to revert
81+
to the previous (passing) revision.
82+
83+
84+
6) Time-Box Fixing before Reverting
85+
===================================
86+
87+
When the build breaks on check-in, try to fix it for ten minutes.
88+
If, after ten minutes, you aren’t finished with the solution, revert to the previous version from your version control system.
89+
This way you will allow other developers to continue to work.
90+
91+
92+
7) Don’t Comment Out Failing Tests
93+
==================================
94+
95+
Once you begin to enforce the previous rule, the result is often that developers start commenting out
96+
failing tests in order to get the build passing again as quick as possible.
97+
98+
While this impulse is understandable, it is **wrong**.
99+
100+
The tests have been passing for a while and then start to fail.
101+
This means that we either caused a regression, made assumptions that are no longer valid,
102+
or the application has changed the functionality being tested for a valid reason.
103+
104+
You should always either fix the code (if a regression has been found), modify the test
105+
(if one of the assumptions has changed), or delete it (if the functionality under test no longer exists).
106+
107+
108+
8) Take Responsibility for All Breakages That Result from Your Changes
109+
======================================================================
110+
111+
If you commit a change and all the tests you wrote pass, but others break, the build is still broken.
112+
This also applies to tests that fail in ``buildout.coredev`` and don't belong directly to the package you worked on.
113+
114+
This means that you have introduced a regression bug into the application.
115+
116+
It is **your responsibility** — because you made the change — to fix all tests that are not passing as a result of your changes.
117+
118+
There are some tests in Plone that fail randomly, we are always working on fixing those.
119+
If you think you hit such a test, try to fix it (better) or re-run the Jenkins job to see if it passes again.
120+
121+
In any case the developer who made the commit is responsible to make it pass.
122+
123+
124+
Further Reading
125+
===============
126+
127+
Those rules were taken from the excellent book "Continuous Delivery" by Jez Humble and David Farley (Addison Wesley),
128+
and have been adopted and rewritten for the Plone community.
129+
130+
If you want to learn more about Continuous Integration and Continuous Delivery, I'd recommend that you buy this book.

0 commit comments

Comments
 (0)