Skip to main content
License: AGPL-3

Buildout for runbot

This module was written to make it convenient to use buildout based builds on runbot.

Configuration

To configure this module, you need to:

  1. turn on Use buildouts on a repository

  2. fill in a regex that allows to differentiate a normal branch name: For runbot, branches should be named $version-$sometext anyways, so this module’s suggestion is to call buildout branches buildout-$version-$sometext

  3. check the value of the field Buildout section, this must be the name you use in your buildouts

  4. if you use multiple buildouts for the same version to implement some kind of DTAP scenario (you should), you can mark some buildout branch as the one to be used for tests by navigating to the branch and checking Default for this version

  5. when converting a repository to use buildouts, be sure to remove all dependency branches first. Otherwise, runbot will copy all of them unnecessarily. Then, rebuild some buildout branch, and when it is green, rebuild another branch that is supposed to use the buildout

Background

This module will cause buildout branches to be treated radically differently: For buildout branches, the buildout will be run, and any failures reported in the build results. For normal branches, it will search for a buildout branch with a matching version, copy this buildout to a temporary directory, manipulate buildout.cfg to use the branch to be tested and the ports assigned for this instance, then rerun the buildout, then run tests within the buildout environment.

For this to work, your buildout.cfg needs to contain one addons line:

git $the_exact_repo_url_as_configured_in_runbot parts/$repo_name $version

or if you use pinned branches:

git $the_exact_repo_url_as_configured_in_runbot parts/$repo_name $commit_hash branch=$version

Which then will be replaced by:

git $the_exact_repo_url_as_configured_in_runbot parts/$repo_name $commit_hash branch=$current_branchname

Known issues / Roadmap

  • none currently

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Do not contact contributors directly about help with questions or problems concerning this addon, but use the community mailing list or the appropriate specialized mailinglist for help, and the bug tracker linked in Bug Tracker above for technical issues.

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Release files for odoo11-addon-runbot-buildout 11.0.1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo11-addon-runbot-buildout 11.0.1.0.0
File Interpreter ABI Platform
odoo11_addon_runbot_buildout-11.0.1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / odoo11_addon_runbot_buildout-11.0.1.0.0-py2.py3-none-any.whl

Download URL odoo11_addon_runbot_buildout-11.0.1.0.0-py2.py3-none-any.whl
Size 26.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
29aea2aad73ada7b0a76493077ac1d293a2ae2f3fe35f9c93c2cf7dd39709810
BLAKE2b-256 checksum
How to use checksums
29eb57dc3437da0e998475113d648f56c8590fbd531d8c9f9b96da042b330218
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/30.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page