31,040
edits
m (→Beta period) Tag: 2017 source edit |
Tag: 2017 source edit |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
[[Category:RoadMap]] | [[Category:RoadMap]] | ||
= Introduction= | =Introduction= | ||
This page describe what is the build and release process of a new stable version of Dolibarr ERP CRM (manufacturing process or chaine de fabrication in french). | This page describe what is the build and release process of a new stable version of Dolibarr ERP CRM (manufacturing process or chaine de fabrication in french). | ||
| Line 17: | Line 17: | ||
This is description of the 3 steps. | This is description of the 3 steps. | ||
= Development = | =Development= | ||
== Development == | ==Development== | ||
First step is development of software. Sources can be download from GitHub at https://github.com/Dolibarr/dolibarr | First step is development of software. Sources can be download from GitHub at https://github.com/Dolibarr/dolibarr | ||
| Line 27: | Line 27: | ||
See the [[FAQ_Get,update_GIT_project_sources|FAQ Get or update project with GIT]] for more information on how to do this. | See the [[FAQ_Get,update_GIT_project_sources|FAQ Get or update project with GIT]] for more information on how to do this. | ||
== Continuous interation == | ==Continuous interation== | ||
Each time a new request to include a change is submitted, Continuous Integration Tests are done before the change is validated. | Each time a new request to include a change is submitted, Continuous Integration Tests are done before the change is validated. | ||
| Line 35: | Line 35: | ||
If a test fails, it will not be validated (see next step). | If a test fails, it will not be validated (see next step). | ||
== Validation of new changes == | ==Validation of new changes== | ||
Only people with the grade '''Dolibarr Yoda''' can accept to include changes into official development sources. Permissions for this are granted on GitHub | Only people with the grade '''Dolibarr Yoda''' can accept to include changes into official development sources. Permissions for this are granted on GitHub | ||
| Line 41: | Line 41: | ||
See [[Dolibarr_Project#Developers_roles|Dolibarr roles]] for the list of people with this grade. | See [[Dolibarr_Project#Developers_roles|Dolibarr roles]] for the list of people with this grade. | ||
= Beta period = | =Beta period= | ||
When enough changes are included into version, and according to planning, the Dolibarr Yoda decide to start the beta. | When enough changes are included into version, and according to planning, the Dolibarr Yoda decide to start the beta. | ||
| Line 50: | Line 50: | ||
The minimal and maximal version of PHP, MySQL are also defined at the start of the beta. The policy to decide if a minimal version of PHP is as follow: | The minimal and maximal version of PHP, MySQL are also defined at the start of the beta. The policy to decide if a minimal version of PHP is as follow: | ||
* The minimal version of PHP is increased if the number of user using the current minimal version of Dolibarr is lower than 2% | |||
* OR if a new external library (that Dolibarr depends on) is no more compatible with the current minimal version of PHP and need a higher version. | *The minimal version of PHP is increased if the number of user using the current minimal version of Dolibarr is lower than 2% | ||
*OR if a new external library (that Dolibarr depends on) is no more compatible with the current minimal version of PHP and need a higher version. | |||
If there is no reason to increase the minimal version of PHP, it should not be done: Project rule is that end users must be encouraged to use the highest compatible PHP version but they must not be forced to upgrade their infrastructure if we can avoid it. So, end users can upgrade their system according to security concerns only for example, and not according to a pace imposed by an unfounded decision (with no mandatory reason). | If there is no reason to increase the minimal version of PHP, it should not be done: Project rule is that end users must be encouraged to use the highest compatible PHP version but they must not be forced to upgrade their infrastructure if we can avoid it. So, end users can upgrade their system according to security concerns only for example, and not according to a pace imposed by an unfounded decision (with no mandatory reason). | ||
| Line 57: | Line 58: | ||
Generating the packages is done using the packaging tool '''makepack_dolibarr.pl'''. See next chapter for detailed operation done by this tool. | Generating the packages is done using the packaging tool '''makepack_dolibarr.pl'''. See the next chapter for detailed operation done by this tool. | ||
=The packaging of final releases= | |||
When beta period end (no more serious bugs are reported and opened), the Dolibarr Yoda decide to start the freeze of final version. The name of the version is defined to a value X.0.Z. | |||
When a version is a major version, X is increased. | |||
When the version is a minor version, Z is increased. | |||
Note that some countries law expects to have the version being a major release as soon as some part of code are released. People responsibles of the validity of the version name according to law in its country may create an issu with the status "Priority Blocking" to alert the releaser of this point if they detect a change in code that need such a change so the releaser will know he can't make a minor release without removing the code change to move it into a major release. | |||
Note: Only a Dolibarr Yoda can make this process. | Note: Only a Dolibarr Yoda can make this process. | ||
* | <u>The process:</u> | ||
*The first step done is to check that there is no issue that block the release: | |||
https://github.com/Dolibarr/dolibarr/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Priority%20-%20High%20%2F%20Blocking%22 | |||
*The next step is to check that there is no open critical security issue: | |||
https://github.com/Dolibarr/dolibarr/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Priority%20-%20Critical%20or%20Security%22 | |||
*Then, a final complete Unit Tests are run. If 1 test is wrong, process is stopped here and go back to beta phase. | |||
Once all tests are ok, the following steps are done automatically using the packaging tool '''makepack_dolibarr.pl''' : | Once all tests are ok, the following steps are done automatically using the packaging tool '''makepack_dolibarr.pl''' : | ||
* The tool generate (or suggest the command to generate) the '''ChangeLog''' file. This file is commited with sources. | *The tool generate (or suggest the command to generate) the '''ChangeLog''' file. This file is commited with sources. | ||
* The tool generates the file '''filelist-X.Y.Z.xml''' than contains the list of files of the version with a MD5 signature and value of version. This file is commited with sources. | *The tool generates the file '''filelist-X.Y.Z.xml''' than contains the list of files of the version with a MD5 signature and value of version. This file is commited with sources. | ||
* The tool add a '''Tag''' that is the name of version (so X.Y.Z) on all files of the official source repository. So starting from now, all files for the dedicated version are known and won't change anymore. | *The tool add a '''Tag''' that is the name of version (so X.Y.Z) on all files of the official source repository. So starting from now, all files for the dedicated version are known and won't change anymore. | ||
* The tool build all '''official distribution packages'''. Content of such packages match the content of the signature file since it is build during same process. The following packages are built: | *The tool build all '''official distribution packages'''. Content of such packages match the content of the signature file since it is build during same process. The following packages are built: | ||
** Package '''.zip''' (the main package) | **Package '''.zip''' (the main package) | ||
** Package '''.tgz''' | **Package '''.tgz''' | ||
** Autoinstaller Doliwamp '''.exe''' | **Autoinstaller Doliwamp '''.exe''' | ||
** Autoinstaller for Debian/Ubuntu DoliDeb '''.deb''' | **Autoinstaller for Debian/Ubuntu DoliDeb '''.deb''' | ||
** Autoinstaller for Redhat, linuxmint, mandriva DoliRpm '''.rpm''' | **Autoinstaller for Redhat, linuxmint, mandriva DoliRpm '''.rpm''' | ||
* The tool upload the generated signature file '''filelist-X.Y.Z.xml''' on the official Dolibarr server. This file can be read by any installed application to check the integrity of the version (even one byte modified will change the signature). | *The tool upload the generated signature file '''filelist-X.Y.Z.xml''' on the official Dolibarr server. This file can be read by any installed application to check the integrity of the version (even one byte modified will change the signature). | ||
* The tool upload the generated packaged into the '''official Dolibarr archive server''' to have them archived also in a binary form. This archives can be read from page https://www.dolibarr.org/files/stable/ | *The tool upload the generated packaged into the '''official Dolibarr archive server''' to have them archived also in a binary form. This archives can be read from page https://www.dolibarr.org/files/stable/ | ||
* The tool upload the generated packaged into the '''mirror archive servers''' hosted at https://www.sourceforge.net. This is a mirror hosting, official references remain the Dolibarr archive area and are hosted by the Dolibarr team so at https://www.dolibarr.org/files/stable/. | *The tool upload the generated packaged into the '''mirror archive servers''' hosted at https://www.sourceforge.net. This is a mirror hosting, official references remain the Dolibarr archive area and are hosted by the Dolibarr team so at https://www.dolibarr.org/files/stable/. | ||
* The release is also created on https:// | *The release is also created on https://github.com/Dolibarr/dolibarr | ||
* Then people of the Dolibarr community send announcements on different channels (www.dolibarr.org, forums, social networks...). | *Then people of the Dolibarr community send announcements on different channels (www.dolibarr.org, forums, social networks...). | ||
* Starting from now, a new cycle can start. A new development period start from sources of the version. | *Starting from now, a new cycle can start. A new development period start from sources of the version. | ||
Then a Dolibarr Yoda add 1 page (one page per version) onto the https://wiki.dolibarr.org to describe content of new version. This is the Release announcement. You can look at the page [[:Category:RoadMap]] for list of past announcements. | Then a Dolibarr Yoda add 1 page (one page per version) onto the https://wiki.dolibarr.org to describe content of new version. This is the Release announcement. You can look at the page [[:Category:RoadMap]] for list of past announcements. | ||
| Line 91: | Line 107: | ||
'''Important''' | '''Important''' | ||
* At any time, a developer can get all the files of any stable version from Github and using the '''Tag''' created at first step of release process. | *At any time, a developer can get all the files of any stable version from Github and using the '''Tag''' created at first step of release process. | ||
* And at any time, a developer can get all the latest files of a branch (major version including all patches) from Github using the '''Branch name''' created at first step of beta process. | *And at any time, a developer can get all the latest files of a branch (major version including all patches) from Github using the '''Branch name''' created at first step of beta process. | ||