User Tools

Site Tools


dev:committing

Guide to committing

This is a guide for core committers of Evergreen.

Committing patches with database upgrade scripts

  1. Confirm that there are no unintended side effects to the upgrade script (data loss, performance issues, etc.)
  2. Figure out the next number in the upgrade script sequence.
  3. Announce on IRC that you are "claiming" that number.
  4. Edit the upgrade script to make sure there is an uncommented evergreen.upgrade_deps_block_check line with the upgrade script number.
  5. Change the file name of the upgrade script to start with the number.
  6. In 002.schema.config.sql, update the config.upgrade_log value to match the upgrade script number. Update the comment at the end to include the nicknames of the people involved in the patch (this is around line 95).
  7. Commit the upgrade script and 002.schema.config.sql changes, using a commit message like "Stamp upgrade script"

If backporting the upgrade script to a release branch, use the same sequence number as you did in the main branch. For example, if you commit an upgrade script number 1234 to main, it should also be numbered 1234 in release branches.

dev/committing.txt · Last modified: 2023/11/09 18:30 by sandbergja

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.