Workflow for pull requests to CMSSW
This page is a short summary of the process we use for accepting code changes from CMS developers into CMSSW. It assumes knowledge of the CMSSW software and computing environment.
Questions or problems? You can
Before making your pull request
Confirm that you have checked out all dependencies, have a clean build, and all unit tests succeed
scram b distclean
git cms-checkdeps -a
scram b -j 8
scram b runtests
Run a basic battery of tests
runTheMatrix.py -l limited -i all
If these tests are successful, your code changes should also pass the basic checks done during the pull request testing procedure. Some tests, in particular the runTheMatrix.py tests require data available at sites such as CERN.
Initial pull request
- This tutorial provides instructions for making a pull request to CMSSW
- New developments should be always submitted to the development release of CMSSW. The default branch in the CMSSW repository is always the development release, so the default branch is the correct one when you make your pull request.
- Pull requests including new packages require an extra check in order to review the code organization in CMSSW [Too be filled in]
- Once your pull request is submitted, it is assigned a set of categories (e.g., “reconsturction”) based on which packages have been changed. The mapping of code package to group is here. Here is an example showing a new pull request with labels added and its milestone release (e.g., “CMSSW_8_0_X”)
- The category managers for those categories get an automatic email asking them to review the proposed changes. Until their review is complete, your pull request has a label that indicates it is waiting for their signature (e.g., “reconstruction-pending”)
- In addition, your PR will get labels for “tests-pending”, “comparisons-pending” and “orp-pending”. These are explained in the following steps.
- Category managers can trigger a set of standard pull request tests by responding to the pull request issue in github with “please test”
- After a few hours, the results of these tests are available (“tests-approved” label), including some low statistics physics comparisons (“comparisons-available” label). You might find it useful to check these results in case of problems. Sometimes these tests are affected by problems in the underlying integration build or computing infrastructure. If the errors do not appear to be from your pull request, do not worry.
- Code review can come via comments on the proposed changes or other discussion (typically in your github issue). Once each category manager is satisfied, they will sign your pull request (“+1”), and the corresponding label changes from “pending” to “approved” (e.g., “reconstruction-approved”)
- In case of no answers or slow answers from groups, it is useful to follow up either in your github issue, via mail or via the groups regular meeting
- The last approval is from the release management team (“orp-approved”), after which your pull request will enter the CMSSW repository.
Check the Integration Build
- Twice per day, we run a more complete set of tests. The main web page for these results is here. You can check this page a day after your pull request is accepted to check for issues with your pull request.
- As with the IB tests, there can be existing problems in the integration builds that will not be related to your pull request or other recently accepted pull requests. You can look at how the test results have changed from day to day to help decide if there are problems created by your pull request.
- After your pull request has been accepted into the development release, it may be considered for use in older releases if there is a production or analysis use case for it. If this is the case, you can start the process by making a new pull request in the release cycle where your changes are required. Be sure to check if you have rebased your changes properly before submitting the pull request (easiest way is to check the differences that gitHub identifies before submitting your pull request.
- For simple pull requests, a successful set of tests in the integration build system may be sufficient. However, most often your pull request should be tested in a full release and through the release validation system (“relvals”).
- Backporting requests are discussed weekly in the release operations meeting (Tuesdays at 1700 CERN time). To have your request added to the agenda, simply bring it to the attention of the appropriate category managers.