Loading...
 
Skip to main content

How to release: Branching

Create a branch, if you are releasing a major version

This is done only once per major version (4.x, 5.x, 6.x, etc.) about 4-6 weeks before the planned official release of x.0. For minor versions, the work is done in current branch.

Since the branching of 22.x we use Git for the branching process, so there's no need for a branching script. Instead, From a trunk/master checkout

  1. Create a new branch (in your IDE or using git in command line).
  2. Push that new branch.


After that, you need to change a few details in lib/setup/twversion.class.php, in the New Branch:

In the new branch, e.g. 30.x, change $this-branch to 'stable'. If already chosen, change $this-star from 'TBA' to the new star name
Copy to clipboard
// Set the development branch. Valid are: // stable : Represents stable releases. // unstable : Represents candidate and test/development releases. // trunk : Represents next generation development version. $this->branch = 'stable'; (...) $this->star = 'Corona Borealis'; // 'TBA' if not chosen

Commit the above changes with a message such as "[REL] New stable branch $this->branch and Star Name"

Update trunk/master string version to the next major version
Copy to clipboard
- $this->version = '30.0vcs'; // needs to have no spaces for releases + $this->version = '31.0vcs'; // needs to have no spaces for releases

Commit the above changes with a message such as "[REL] 30.x branching : Update version string from 30.0vcs to 31.0vcs "

1.1.1. Post-branching operations

1.1.1.1. Make sure the star name picking process is almost over

This star name is needed for the alpha because it is in the path: https://sourceforge.net/projects/tikiwiki/files/

Make sure that in both the new branch and Master/Trunk $profilesLink points to the newly-created branch

  • In lib/setup/wiki.php, update $profilesLink to the new branch

1.1.1.3. Update the list of LTS

This depends on if the new branch is an LTS or not.
If the new branch is an LTS, checkout the newely created branch and open lib/setup/twversion.class.php, then in the function getLtsEolDates(), update the returned array adding the new version and the end of life date.
Also take care to remove branches/versions that are no longer supported(EoL) if they exist in that array.

This allows to display an appropriate message in the control panel to sites admins about version upgrade.

1.1.1.4. Update requirements

1.1.1.5. Update profiles.t.o site

  • Create a new category for the new branch. To do so, login to profiles.tiki.org -> categories -> admin categories -> create new category -> choose profiles::tikiversions as parent category->enter the name of the category (e.g. 30.x ->save)
  • Add the category of the new branch to the wiki pages holding the profiles listed in the Profiles Wizard, unless you know that they shouldn't work with the new tiki branch for some reason (deprecated features involved, etc). To do so, access the created category->add objets->in pages->enter the name of the objects (profiles) and click on add. To know the name of objects/profiles to search for, you can access the previous version's category in another tab and see objects in that category then search for the same name in the other tab and add them. Do not add profiles to a category unless you have tested it and have confirmed it works well. If some profiles are not maintained and checked once per 8 months by their author, we should not keep them around. They should just die off.Most profiles in the wizard were broken so we had to remove them and this made Tiki look bad to new users.
  • Add a new section to Profiles_in_Wizard page so that profiles categorized with the previously created category are dynamically listed in place below the new branch name
  • Contact the Profiles Team to report if any profile needs an update for some reason, or if you want to contribute a new profile for the new branch.

1.1.1.6. Update Tiki Profiles Tester

1.1.1.7. dev.tiki.org

  • Create the new branch page (if not there yet), i.e.: Tiki30
    • Move the current alias from the old branch current to the new created one
  • Categories relevant to the Tiki Version field in the Bugs & Wish list tracker:
    • Under category Tiki version, Add a new category, e.g. 31x (future, currently trunk)
    • Rename the the previous trunk version as such: 30.x (future, currently trunk) to 30.x
    • Categorize all items 30.x also with the new category 31.x (future, currently trunk)
  • Update Daily Build (You need to ask Oliver Hertel to add new versions or do it your self if you have right to edit pages)
  • Update Get code
  • Update Where to Commit

1.1.2. packages.tiki.org


See: packages-tiki-org

Note: The assets (img and css) supports up to 8 versions (trunk, 28.x, etc.).

Update versions list (not appending more versions), example change to "trunk, 28.x and 27.x":

  • Checkout the repository git@gitlab.com:tikiwiki/tiki-packages-build.git
  • In .gitlab-ci.yml update the VERSIONS variable to VERSIONS: "trunk 28.x 27.x"
  • Commit to git master branch and wait for the build to complete.


Update to add a new version, example change to include 29.x version, "trunk 29.x 28.x 27.x 26.x 24.x"

  • Checkout the repository git@gitlab.com:tikiwiki/tiki-packages-build.git
  • In .gitlab-ci.yml update the VERSIONS variable to "VERSIONS: "trunk 29.x 28.x 27.x 26.x 24.x"
  • Commit to git master branch and wait for the build to complete.


Tiki Packages in GitLab: https://gitlab.com/tikiwiki/tiki-packages-build
Tiki Packages website: https://packages.tiki.org

1.1.3. show.tiki.org

Note: There is currently no infrastructure for creating show*.t.o instances for Tiki 26 and above. This needs to be discussed with Marc.
Some refs: https://avan.tech/item138114 and https://dev.tiki.org/item8491-Show2-instance-server-doesn-t-easily-support-Tiki26
Contact @Jean-Marc Libs to achieve this.
First on the server:

  • On the show server checkout the new branch into usr/local/src/tiki
  • On the show server add the branch to /usr/local/sbin/tim-common BRANCHES="trunk 12.x 13.x"
  • Refresh the instances by calling right away the cron: /usr/local/sbin/tim-cron
  • Once dev.tiki.org updates, it should then work.


Then on the ShowTikiOrg tracker field options:

  • Go to the tracker field admin (as a tracker administrator)
  • Add the new branch in the "Supported Versions" option
  • Clear the caches

1.1.3.1. demo.tiki.org

1.1.3.2. Pre-dogfood servers

  • Each Pre-Dogfood Server should be moved from trunk to the next branch and each site should go through at least 30 minutes of manual testing of the most common operations.
    Ex.: on http://trunkdev.tiki.org, someone should try to report a bug, or on http://trunkdoc.tiki.org try and add a new page to a structure (even though it all will be overwritten the next day).
    • the instances need to git and refreshed immediately, e.g.
      +git switch 29.x // 29.x represent latest major release
      +bash setup.sh -n fix
      +php console.php database:update
    • After branching switch back the branch to master.


(I removed some old operations in this step and the remaining ones need to be reviewed and updated as per the current situation. To be discussed with Marc, Rodriguez and Bienvenu)

1.1.3.3. Dogfood release policy

See dogfood for general background info on this policy. The general principle is that most of *.tiki.org sites should be running supported versions before they are released while others will keep running with previous version (LTS).

Goals:

  • Reduce the number of issues and collective time spent on these. Issues can be bugs, data corruption, upgrade bugs (that you don't see in a fresh install), etc. in released versions.
  • There is also a promotional goal for this policy as it reassures users that releases have sufficient testing, and it differentiates us from extension-based systems, where the official sites are upgraded to the latest versions a long time after dot zero.
  • Improve the quality / reliability of .0 releases so we can eventually be in a position to shorten the release cycle. Historically, .0 releases have been shaky and too many people where waiting for .1 and that delays everything.
  • Keeping some website running old LTS version is useful in case we need to produce and test security patch or any other correction necessary.


The various *.tiki.org sites collectively have a lot of users & data and cover quite a few features. Power users of these sites are usually quite familiar and can spot a bug or regression (something that stopped working) and report it efficiently.

Some sites are kept at the latest stable version (ex.: doc.tiki.org), while others are kept on the Long Term Support (LTS) versions (ex.: profiles.tiki.org). The list is maintained at Domains.

All sites are generally updated daily with minor revisions in each branch. So if a site is running 9.x LTS, it has the latest pre-released 9.x code. Exception: some legacy sites are kept for historical purposes in old unsupported versions, normally in read-only mode.

When a new major version is coming out, each of the sites identified as latest stable are progressively updated to the new version.

Start with the less critical one (ex.: themes.tiki.org)

  1. Do a thorough check on the Pre-Dogfood Server version (each site should go through at least 30 minutes of manual testing of the most common operations. Ex.: on dev.tiki.org, someone should try to report a bug.)
    • The pre-dogfood servers generally run trunk, but during the pre-upgrade period, they should be switched to the branch
  2. Fix all the bugs and check they are indeed fixed there
  3. Proceed to upgrade (git switch)
    • Keep previous version available as a snapshot so users can compare and efficiently report any upgrade issues (ex.: legacydev11.tiki.org)
  4. Give a few days to get feedback for newly uncovered issues
  5. And start over the cycle for each sites.


This whole process typically takes 3-5 weeks because of discovery of new issues and the understandable delay to resolve them. Because of this incompressible time factor, it is important to start the dogfood process as soon as possible in the release process (as soon as all bugs are resolved on the pre-dogfood server)

Finding & fixing an issue while in pre-dogfood avoids wasted time and corrupted data on the real sites. Trying to save time by rushing a release just creates more work down the line.

Show PHP error messages