mirror of
https://github.com/odoo/runbot.git
synced 2025-03-16 07:55:45 +07:00
![]() When a build exceeds the cpu limit, it is simply killed by the kernel. As a safeguard the "Initiating shutdown." sentence should be searched in the log file, and the build marked as "ko" if not found. Unfortunateley, there is no period (.) at the end of the sentence in the Odoo logs (see: https://github.com/odoo/odoo/blob/12.0/odoo/service/server.py#L444) Thus, this condition is never fulfilled. On top of that, this was masked by the first part of the condition, checking that the 'test/common.py' has no "post_install" string. The "test" directory does not exists in Odoo ( but "tests" exists) , so the condition was always falsy. Finally, a build can be marked as "ok" when he is killed and no errors are found until the kill. With this commit: * The legacy grep for post_install is removed as it now exists in all Odoo supported versions. * The period typo is fixed. * A log is inserted when the final sentence is not found. * The cpu_limit is set as the same as the runbot_timeout parameter for better consitency. * The time exceeded log message is now logged in the build instead of the runbot log. Co-authored-by: @Xavier-Do |
||
---|---|---|
runbot | ||
runbot_cla | ||
runbot_merge | ||
.gitignore | ||
README.md |
Odoo Runbot Repository
This repository contains the source code of Odoo testing bot runbot.odoo.com and related addons.
Runbot
The runbot/
directory holds the main runbot Odoo addon.
Runbot CLA addon
The runbot_cla/
directory contains an Odoo addon that checks CLA.