Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Release process: Difference between revisions

From MoodleDocs
Line 732: Line 732:
| style="text-align:center" | ✓
| style="text-align:center" | ✓
|  
|  
| Ensure Language pack for master is available and remove $CFG->skiplangupgrade = 1; for master on nightly (apache01 and phantom01)
| Ensure Language pack for master is available and remove $CFG->skiplangupgrade = 1; for on nightly (tip. nightlyscripts, f431c524)
| Testing Maintainer
| Testing Maintainer
|-
|-

Revision as of 09:03, 13 November 2017

8 weeks prior

# Major Minor Task Responsibility
1. Create an issue to review latest stable version of all third party libraries and add to sprint. The issue should refer to the list at Moodle libraries credits. The issue can be based on MDL-52393. Development Manager
2. Ensure we are running latest/good behat, phpunit and nodejs (npm) versions. Testing Maintainer
3. - Move QA tests for new features in old release with automated tests from MDLQA-1 to MDLQA-5249.

- Remind devs

  • To label issues qa_test_required when a new feature/improvement is landing without automated tests.
  • The best possible lang strings land at first attempt. Given the proximity of the major release and to facilitate the work of translators and others... the sooner, the better, instead of relying on (late) en_fixes too much.
Testing Maintainer
4. Create a "Must fix for X.Y" version in the Tracker and adjust the "Tracker - CI - Set integration priority to one" and "Tracker - CI - Move reopened out from current" jobs in all CI servers to point to it. Also edit the Detect "must fix" filter to get wrong uses of the version detected. Integration Lead

7 weeks prior

# Major Minor Task Responsibility
1. Full demo of new code and sign-off for internal HQ projects. Decide which projects will be completed by the code freeze. Lead Developer
2. Check closed qa_test_required-labelled issues and create new QA tests as required. Testing Maintainer

6 weeks prior

# Major Minor Task Responsibility
1. Create the next "X.Y+1" (next dev) version in the Tracker (MDL and CONTRIB), so people can move delayed stuff to next major release if needed. Integration Lead
2. Warn external developers about the impending code freeze in a post to the General developer forum. (example) Development Manager
3. Modify and rename filters (1, 2 and 3) used in the Release urgent dashboard and rename the dashboard itself (QA part of the dashboard will not work yet) Development Manager

5 weeks prior

# Major Minor Task Responsibility
1. Confirm the code freeze by replying to the previous warning in the General developer forum. Development manager
2. Once the integration server has ended with Monday's job Move awaiting issues to current integration it will be disabled and, issues will be manually picked for integration until the post-release "On Sync" period ends (usually 3 weeks after release). Integration Lead
3. Prepare a fresh installation of the QA site based on the beta code to make sure the site is not affected by incremental upgrade steps during the development cycle. QA Master Site Maintainer
4. Write documentation on new features in the dev docs, adding a link to it from the tracker issue, together with the label docs_required. The documentation will then be transferred to the new en version wiki when it is set up (3 weeks prior) and polished, with screenshots added. Developers, Development manager to remind
5. Begin reviewing new and changed English language strings ready for en_fix to be merged 2 weeks prior. English fixes lang pack maintainer

4 weeks prior

# Major Minor Task Responsibility
1. Start working on the release notes (template) of the upcoming version. Development Manager
1.5 Create issues for adding User tours for new features in the upcoming version. Review existing tours and remove very old ones Development Manager
2. Release normal weeklies but with these changes in the master branch being considered continuously (can happen @ -4w - ideally - but also later):
  • version.php: Move to $maturity = MATURITY_BETA and $release = 'X.Ybeta (Build:xxxxxxxx)'
  • tag git repo with: "vX.Y.0-beta" (and MOODLE_XY_BETA as description and CVS tag)
  • Automatic: Confirm packages are available under download.moodle.org (and windows).
  • Once the beta is available create the "testing matrix for X.Y.0" and share it @ HQ & Dev. chat.
Integration Lead
3. (Optionally) Announce Beta release in forums (ideally once packages are available). Integration Lead
4. During the QA weeks integration becomes continuous; roll (on demand, beta, rc...) happens often (Tuesday & Friday are the usual days). All the team is on integration 100% since this week and until the end of continuous.

Dev leaders promptly vote on held issues labelled with unhold_requested label and decide whether they can be allowed to break the freeze

Integration Lead
5. At some points (from beta to final release) produce release candidates (Z = 1, 2, 3..), which are normal builds with:
  • version.php: Move to $maturity = MATURITY_RC and $release = 'X.YrcZ (Build:xxxxxxxx)'
  • tag git repo with: "vX.Y.0-rcZ" (and MOODLE_XY_RCZ as description and CVS tag)
  • Automatic: Confirm packages are available under download.moodle.org (and windows).
  • Upgrade all the Moodle CI sites to recent release candidate by configuring the "Moodle CI Auto Upgrade" job in all them.
Integration Lead
6. Add a new version in the Plugins Directory with the version's name and the beta release version build number (https://moodle.org/plugins/admin/softwareversions.php). Plugins Liaison
7. Push any plugins to the plugins database which were previously a part of core. Plugins Liaison
8. Tidy up current latest en version of Moodle Docs prior to copying it to create new version wiki as described in New docs version process. Community Manager
9. Create new QA test cycle and post in development forum about QA testing. Testing Manager
10. Invite community volunteers to start QA testing. Community Manager
11. Modify Current QA cycle filter to link to the new QA test cycle Development Manager
12. Monitor QA fails. Check each fail is real and if so ensure an MDL issue has been created and correctly linked and labelled. Testing Maintainer
13. Monitor MDL issues created for QA fails. Add them to the "Must fix for X.Y" list and get a developer to work on the issue immediately. Development Manager

3 weeks prior

# Major Minor Task Responsibility
1. Prompt developers to begin QA tests marked test_server_required and credentials_required. Development Manager
2. Create new en and de Moodle Docs version wikis. Moodle Docs Maintainer
3. Check docs_required-labelled issues and write new documentation, removing the label and commenting in the issue when the work is done. Community Manager
4. Go through all points listed under 3 weeks prior in New docs version process. Community Manager
5. Review issues with labelled with dev_docs_required, prompting assigned developers to create/update this documentation and remove this label when relevant docs are updated. Development Manager

2 weeks prior

# Major Minor Task Responsibility
1.

Check the number of open QA tests. Depending on the amount of work involved, encourage HQ developers to assist from the start of the week or later in the week in order to achieve the target of 100% pass rate by the end of the week.

Development Manager
2.

Create MDLSITE issue to ensure all prototype.moodle.net sites which are no longer relevant (part of release) are removed from prototype.moodle.net

Development Manager
3. Merge fixes from en_fix pack and then integrate them. AMOS Maintainer
4. Give Partners complete brandable Marketing pack for release including list and description of major new features. Marketing Manager
5. Label (ui_change) in the Tracker all pending issues having noticeable UI modifications and track them in the "Late landing UI changes" sheet, in order to have all the associated docs, screenshots, videos under control. The Integration and Documentation people will try to keep the sheet updated until release. Integration Lead

1 week prior

# Major Minor Task Responsibility
1. Clone as many filters as needed in the Tracker, modifying them to point to the new, upcoming, branch (keeping same perms, title...). Integration Lead
2. Create new minor version X.Y.Z+1 in the Tracker (MDL and CONTRIB). Archive any version > 6 months old, verifying that there aren't open issues using that version. Integration Lead
3. Clone MDL-60764 and bump all versions, requires and dependencies along all plugins in codebase to planned release dates. Integration Lead
4. Post a "Heads-up" message on the Partners forum and General Developer forum. Development Manager
5. Post a "Heads-up" message on Twitter and other outlets. Marketing Officer
6. Identify security issues that need to be integrated using the security_held label.
  • Integrate from provided patches into supported branches (including branches supported only for security issues).
  • Ensure security issues are given priority in weekly integration and testing. Note that the --weekly releases to be performed this week are 100% normal and cover the standard (supported) branches. security branches will come as part of the release process later in the week.
Integration Lead
7. Collect security issues into a clone of the last advisory in the list to prepare for release of Security Advisories.
  • Determine which security issues will be integrated.
  • Request CVE Identifiers by emailing issue descriptions to secalert@redhat.com with a message like... The following security issues have been discovered in Moodle. We request CVE Identifiers for these issues. We will be releasing the security announcements for these on moodle.org on XXX at 12noon AWST which is 04:00 UTC. The email subject should include the characters [vs]. The format needs to be plain text or encrypted. When granted CVE Identifiers, our issues should appear in the CVE list. More instructions are available (since 2015 we request identifiers from redhat and not from distros).
  • Post security issues as a reply to the "Heads-up" message on the Partners forum.
Development Manager
8. Review and complete the release notes for the upcoming minor versions.
  • Ensure all issues labelled with "ui_change", "api_change" and "release_notes" are listed as UI changes, functional changed and fixes/improvements respectively in the release notes.
Development Manager
9. Check on the "Must fix for X.Y version". Filter out unrealistic issues. Development Manager
10. Upgrade moodle.org to beta release
11. Upgrade moodle.org and all other Moodle community sites (next sites first, then production) - Friday before release if not before

Releasing

Packaging

This should happen immediately before the next integration cycle begins on Monday (i.e., some days after last weekly, 2 days prior to official release).

# Major Minor Task Responsibility
1. Check list:
  • Make sure there are no real blockers introduced in the last weekly (install / upgrade ...).
  • Confirm that the latest en_fix changeshave been generated and integrated.
  • Verify that all security issues have been integrated and there are not leftovers in the security area (but for delayed majors, where some security issues may have been introduced along the delay and they will be postponed to next minors).
Integration Lead
2. Verify all unit tests and integration tests have passed. Integration Lead
3. Verify QA tests have passed. Integration Lead
4. Follow the "mdlrelease" steps:
  • Run the prerelease.sh script to generate the target minor (--type minor) and major (--type major) releases and their corresponding tags. Pay attention to the complete output (.travis.yml...). Follow the on-screen instructions. Triple verify all changes are correct!
  • Push changes to integration.git (but tags).

For major releases only:

  • Run the prerelease.sh script (--type back-to-dev) to move master to next X.Y+1 development version/branch.
  • Push changes to integration.git - note this will lead to the "versions checker" failing for master, no problem, it will be fixed by the 1st cloned issue at #12 below).
  • Configure "mdlrelease" (config.sh) to know about the new MOODLE_XY stable branch.
  • Update the CI server(s) by cloning all the "master" jobs to a new "MXY" view (trick: do it down-top, way easier). Adjust "master" compare DB jobs to check for upgrade from MOODLE_XY_STABLE. Don't forget to re-chain the jobs properly. Run them.
   Important note: don't forget to disable memcached application store for unit tests in stable branches. (more info).

Continue with the "mdlrelease" steps:

  • Once CI servers have ended and all jobs have passed, push tags and run the release.sh script to apply the changes to moodle.git.
  • If needed configure "mdlrelease" (config.sh) to get rid of any unsupported version and adjust stable and security branches. Make a pull request with the changes.
Integration Lead
5. Post a "git repos updated & tagged" message on the Partner forum Integration Lead
6. Create a new MOODLE_XY_STABLE branch in https://github.com/moodlehq/moodle-performance-comparison and set the new release commit hash as $basecommit Testing Maintainer
7. Wait for the automated (every 2 hours) moodle-package to finish building for all versions. Verify the process has ended successfully (email). Integration Lead
8.
  • Create new windows packager script (cloning the current master one and configuring it).
  • Create new windows_wpiXY dir by cloning the previous one (HEAD based), configuring build-latest-XY.sh.
  • Edit the stats.php script (in the moodle-local_downloadmoodleorg repository), adding the new branch to the versions. Deploy it.
Integration Lead
9. In the Tracker...
  • Visit the versions page and make the release, bumping all remaining open bugs to the next point release. If there is not next (end of support), clean that version from all the issues having it as "Fix for". This must be done both for the Moodle Project and the Plugins project. Archive any version > 6 months old, verifying that there aren't open issues using that version.
  • Remove from all screens the custom fields belonging to 100% unsupported branches.

For major releases only:

  • Release and archive the "Must fix for X.Y" versions, it must be empty to do so.
Integration Lead
10. * Create the new "Pull X.Y Branch" and "Pull X.Y Diff URL" custom fields and spread them to all the screens needing them (copy from previous ones). Order them properly on each screen. Re-index Tracker.
  • In the CI servers (1, 2), edit the "Bulk precheck issues" job to make it meet the new "Pull X.Y Branch" field created.
  • Edit the "Tracker - CI - Check marked as integrated" jobs in both servers (1, 2) to configure the master version to point to XY+1.
Integration Lead
11. In the Tracker...
  • Verify how the "X.Y regressions" versions are going and ping Development Managers about. Package and archive them once empty.

For major releases only:

  • Create the new "X.Y regressions" version to be applied to every issue found to be a recent problem introduced by the major release. These issues should get priority after release.

Adjust the filters Latest regressions and High Priority Bugs.

Integration Lead
12. Clone MDL-60783 and MDL-60784, to be resolved ASAP. Integration Lead
13.
  • Create the new MOODLE_XY_STABLE and lastbased-MOODLE_XY_STABLE branches in the security repo (branching from the just created upstream MOODLE_XY_STABLE branch).
  • Cherry pick any security commit present in the security repository's master branch to the new MOODLE_XY_STABLE branch (note that normally there should not be any, see point #1 check list above).
  • Verify the new security jobs exist for the new branch and check it's working in all servers, keeping only enabled the public one.
Integration Lead
14. Protect the MOODLE_XY_STABLE branches in github interface to prevent non-FF accidents ( MDLSITE-4183 ) Integration Lead
15. The "integration_held" label will be removed only from bug issues awaiting integration; they correspond to last-week bugs that were held because of them being unrelated with the release. Now they can be processed, under on-sync rules.

Release day

Usually on Monday

# Major Minor Task Responsibility
1. The execution of "moodle-package-extract-and-postprocess X" script may be needed if the releases *are not going to be published on Monday* but another weekday (X is the weekday, (1-7) starting in Monday). By default it happens automatically around 09:00 AM Perth/Australia time. Integration Lead
2. Verify release status, download pages and windows packages. Integration Lead
3. If needed, modify the downloads cfg script (serverscripts) to decide about branches status, master visibility and windows availability. Push changes, will be autodeployed in a few minutes. Integration Lead
4. Add/update the release date, build number and link on the Releases page and date in new version pages. Integration Lead
5. Notify all registered sys admins, including security notes with CVE identifiers, using the mailing list server. Development Manager
6. Post about the Major release on the moodle.org News forum Lead Developer
7. Post about minor releases on the moodle.org News forum Development Manager
8. Post about the release on Twitter and other outlets. Update no. of releases on moodle.com 'Fact Sheet' page: http://moodle.com/news/moodle-fact-sheet/ Digital Marketing Specialist
9. New "X.Y+1dev" branch to be created in AMOS, to have master changes performed there. New install_XY_STABLE processing set up. These needs to be done anytime during the on-sync period. AMOS Maintainer
10. Verify, 24h after tagging, that https://moodle.org/dev/ has been updated with new versions. If not, file an urgent mdlsite issue, crons must be running! Integration Lead
11. For en and de Moodle Docs, update default redirects and enable email notifications. Moodle Docs Maintainer
12. Go through all points listed under Day of release in New docs version process. Community Manager
13.
  • Decide the "Full demo", "Code freeze" and "QA begins" dates for the next X.(Y+1) major release and put them in the Moodle development calendar. They will be -7w, -5w and -4w before release date respectively.
  • Update the "Full demo", "Code freeze", "QA begins" and Release dates on the Roadmap page.
  • Add events to the HQ calendar for next Major release 6-months cycle according to the cycle plan: ~4 weeks planning and regression fixing, 2 sprints, 1 personal project week, 2 sprints, 1 personal project week, 1 sprint (which should lead up to code freeze).
  • Notify the Community Manager of new dates to be added to the moodle.org calendar.
Development Manager
14. Add calendar events in the moodle.org calendar for coming Major and Minor releases up to the next Major release. Community Manager
15. Add $CFG->skiplangupgrade = 1; to acceptance test on nightly, as language pack is not available during on-sync for master. (tip. nightlyscripts, e6afa686) Testing Maintainer
16. Update release schedule image on Releases page Development Manager

1 week after

# Major Minor Task Responsibility
1. Publish the X.Y+ packages for download.moodle.org (should be automatic once weeklies are packaged).

For major releases, within the on-sync period, master packages will be generated using the prerelease.sh script (--type on-sync). That guarantees XY_STABLE and master versions are kept the same. The last week, when leaving the on-sync period, master package will be generated normally (implicit --type weekly), so versions will diverge and dev can continue separately from that point.

Integration Lead
2. Update the version.php in git to be X.Y.Z+ during the next weekly integration process Integration Lead
3. Create a new release notes page for the next minor versions (using the release notes template.) Add note to top of relevant version page about security support. Development Manager
4. Add all security advisories to Security news and release notes with links to security advisories Development Manager
5. Notify about publications of CVE using form: https://cveform.mitre.org/ Development Manager
6. Upgrade moodle.org and all other Moodle community sites (next sites first, then production)
7. Cloning MDLSITE-5091, create nightly jobs for the XY branch and disable it after running jobs for day or two, so as to conserve resources on nightly Testing Maintainer
8. Create the next deprecation epic similar to MDL-52091 and add standard issues to it about final deprecation of lib/deprecatedlib.php and removal of strings Development Manager

3 weeks after

# Major Minor Task Responsibility
1. Once the "On Sync" period ends:
  • Confirm that versions (XY_STABLE and master) diverged properly the last on-sync week. If not, proceed to it by manually bumping master version to currentdate @ integration.git.
  • The "integration_held" label will be removed from all issues awaiting integration, so they will be, automatically (see next point), be moved to current integration. Send a "unholding + rebase" message to all those issues.
  • The "Move awaiting issues to current integration" job will be re-enabled in the public CI server.
  • The discussion about environmental requirements for next X.Y+1 major release (MDL-57432) will end and the issue will be resolved immediately. A new issue, about the requirements for next-next X.Y+2 major release will be created at the same time by cloning the previous one and dragging any non-resolved detail.
Integration Lead
2. In https://github.com/moodlehq/moodle-behat-extension project:
  • For the new stable version:
    1. Create a MOODLE_XY_STABLE branch from master
  • For master:
    1. Add a 1.X(Y+1).0 tag for the new release in the master branch
    2. Clone MDL-59075, implement, and send it to integration.
Testing Maintainer
3. Ensure Language pack for master is available and remove $CFG->skiplangupgrade = 1; for on nightly (tip. nightlyscripts, f431c524) Testing Maintainer
4. Enable nightly jobs for the XY. Testing Maintainer

1 month after

# Major Minor Task Responsibility
1. Publish the X.(Y+1)dev packages for download.moodle.org Integration Lead
2. Disable, in CI servers, all the jobs and views corresponding to branches which support has ended completely. Integration Lead
3. Upgrade all the Moodle CI sites to recent major release by configuring the "Moodle CI Auto Upgrade" job in all them. Integration Lead
4. Confirm that there isn't any remaining integration_held issue from latest release, proceeding to uhhold them immediately. Note that there may exist others "held" issues, unrelated with latest release. This process step does not affect them. Integration Lead

See also