Commit Graph

1993 Commits

Author SHA1 Message Date
Julien Legros
10c3e87579 [IMP] runbot: optimize new branch detection 2016-09-02 13:05:22 +02:00
Christophe Simonis
a835d1e800 [IMP] runbot: add link to original build for duplicate builds 2016-09-02 13:02:56 +02:00
Christophe Simonis
287c466637 [FIX] runbot: hide bad link to github for messages from runbot itself 2016-09-02 13:02:11 +02:00
Christophe Simonis
b46980ab91 [FIX] runbot: export git tree at current time
When doing a `git archive`, all the files in the tar archive are set to
the commit date. Ignore this date during extraction.

Having the files with dates in future will make some tests about assets
to fail. These tests force the asset regeneration by `touch`ing one
js/css file. If other bundle files are still older that the one we touch,
the asset is not regenerated and the test fail.
2016-09-01 12:36:36 +02:00
Alexandre Fayolle
920c3edcee [FIX] runbot: avoid 404 errors in fast_launch url for odoo >= 9
Closes https://github.com/odoo/odoo-extra/pull/104
2016-07-27 17:49:29 +02:00
Christophe Simonis
97001fbf72 [FIX] runbot: remove useless commit()
This commit() is the root cause of the famous false-positive error
`_check_module_names invalid module names, ignored: False`.

The first step (pull code) is a long one. if a push-hook request
happen during this step, the current transaction wont be able to be
commited (the list of module to test is written on the build). Due to
this early commit(), the build is left in an intermediate state with
the module list unpopulated (=False).
2016-07-26 18:28:24 +02:00
Christophe Simonis
40e502ecd5 [FIX] runbot: track and log prefix match of closest branch 2016-04-27 16:09:04 +02:00
Christophe Simonis
fd8e7f269b [FIX] runbot: check if branch exists when matching 2016-04-04 19:24:02 +02:00
Christophe Simonis
f7b2a40f43 [FIX] runbot: favor sticky branches during matching 2016-02-23 11:48:18 +01:00
Olivier Dony
d9c9642675 [FIX] runbot: workaround for nginx bug leaving orphan worker, blocking port 2016-02-12 15:24:32 +01:00
Christophe Simonis
72bfc504cc [IMP] runbot: hide stopped hosts from dashboard page 2016-02-09 14:48:38 +01:00
Christophe Simonis
f77c52119e [IMP] runbot: log matching closest branches 2016-02-09 14:38:38 +01:00
Christophe Simonis
7e9ddee6ea [IMP] runbot: cleanup builds after 7 days.
By cleaning job only after 7 days, we ensure we keep logs of killed
jobs (or jobs that doesn't even start) for easier debuging.
2016-02-09 14:11:49 +01:00
Olivier Dony
0535f99616 [FIX] runbot_cla: avoid unicode errors when reading CLA files 2016-02-03 15:50:07 +01:00
Jeremy Kersten
5ef0b2ee6d [FIX] runbot: avoid traceback when build_ids was empty (eg: filter by search) or not declared.
equivalent to max(build_ids, default=0) in python 3
2016-01-27 17:29:09 +01:00
Jeremy Kersten
fccd90f755 [IMP] runbot: keep search when we switch of repo from shorcut at top right 2016-01-26 16:59:45 +01:00
Olivier Dony
93dd0f5ee0 [FIX] runbot: do not use remote cursor for dropping local dbs
To find out the list of manually created dbs,
rev. 4d94f45 used the cursor that is connected to the
master `runbot` database, which may reside on a different
cluster/host.

- Add a helper to run commands on the local PG cluster
instead ("postgres" database).
- Modify other commands for local cluster (create/drop db)
to use the same cursor. Rename those methods to _local_*
to better indicate their local effect.
2016-01-18 18:47:17 +01:00
Olivier Dony
be34ac72c9 [FIX] runbot: reduce serialization failures (TransactionRollbackError)
Both the cron and the tests themselves need to write to the builds,
which triggers the update of the `repo_id` field, as it is a stored
related.
2016-01-18 18:09:05 +01:00
Olivier Dony
431a3f6d5b [IMP] runbot: do not display hosts with no recent builds (considered stopped) 2016-01-18 18:09:05 +01:00
Joren Van Onder
fa68c54477 [IMP] runbot: blacklist a couple of POS related modules
- pos_blackbox_be: because it makes the POS unuseable without a blackbox
- pos_cache: because it's too confusing for runbot users, everytime they
             update a product they have to also update the cache, but
             most people don't realise that.
2015-12-10 09:26:59 +01:00
Moises Lopez
7a842e5e45 [FIX] runbot: Fix csrf error in rebuild method
Runbot is intended to be run on a 8.0 instance but if runs on a 9.0, CSRF needs
to be disabled. Will not break on 8.0 code.

Closes #84
2015-10-22 12:20:37 +02:00
moylop260
3b5669bd01 [FIX] runbot: Fix no such file FETCH_HEAD
Closes #80
2015-10-09 14:47:43 +02:00
Olivier Dony
d1cff975be [IMP] runbot: exclude l10n_ modules unless explicit
As of Odoo 9 the first l10n module installed will automatically
install its chart of account on the main company, so installing
the first one (l10n_ae) is surprising/strange.

Branches that want to build l10n_* modules should list
them explicitly in the "modules to install" field (modules).

In addition, having demo data to set the country of the
main company will automatically installe the relevant
l10n module if it exists. This is the default in Odoo 9
with l10n_us.
2015-10-09 14:41:46 +02:00
Olivier Dony
19f6c36156 [IMP] runbot: detect and warn for builds where server branch cannot be properly determined
More useful recently for enterprise builds where an
appropriate server branch is always required
2015-09-23 16:06:35 +02:00
Olivier Dony
42ae78f647 [FIX] runbot: typo, branch is a dict from search_read() 2015-09-11 12:24:21 +02:00
Odoo Online
d40460d9f1 [IMP] runbot: ir.cron frequency from 0.016 Hz to 0.1 Hz
Monkey patch ir.cron to increase frequency to 0.1 Hz.

In a setup with 6 workers every worker should have the lock every minute.
2015-09-09 01:16:37 +02:00
Odoo Online
44771039ce [FIX] runbot: repo hook 2015-09-09 00:35:45 +02:00
Antony Lesuisse
b9c2a1f9e1 [IMP] runbot add github hook support 2015-09-08 17:04:30 +02:00
Olivier Dony
544bbe5a10 [FIX] runbot: typo s/local/repo 2015-08-24 10:40:13 +02:00
Christophe Simonis
abce301ed1 [IMP] runbot: search of closest branch
When searching the closest branch, search through all duplicated
repositories.
2015-08-21 14:48:21 +02:00
Christophe Simonis
bab6221882 [IMP] runbot: drop all db with build prefix on cleanup 2015-08-19 19:36:49 +02:00
Christophe Simonis
b15a66dd16 [FIX] runbot: keep logs for killed builds 2015-08-19 19:16:36 +02:00
Christophe Simonis
b8d06e7fa0 [IMP] runbot: add links to sticky-dashboard 2015-08-05 16:57:50 +02:00
Christophe Simonis
238d6c6fab [IMP] runbot: move job_timeout field to branch 2015-08-05 16:26:50 +02:00
Christophe Simonis
8b5e0263bd [IMP] runbot: better sticky-dashboard view 2015-08-04 18:23:50 +02:00
Christophe Simonis
aeada94df9 [ADD] runbot: sticky-dashboard page 2015-08-04 15:23:09 +02:00
Christophe Simonis
9ebc8d6447 [IMP] runbot: timeout per repo 2015-08-03 18:07:19 +02:00
Christophe Simonis
231e456e3b [FIX] runbot: ensure every arguments is a string when spawning processes 2015-07-31 16:48:40 +02:00
Christophe Simonis
edf5712fb3 [FIX] runbot: better handling of github API errors 2015-07-31 16:47:12 +02:00
Christophe Simonis
491151d251 [FIX] runbot: install explictly set modules, even if they are blacklisted 2015-07-24 19:18:08 +02:00
Christophe Simonis
2e01744b0d [IMP] runbot: better search of closest branch.
Can now search for matching PR
2015-07-15 16:57:56 +02:00
Olivier Dony
2e2c7f0c21 [IMP] runbot: ignore missing modules in list of modules to install
This allows configuring an explicit list of modules to install
on a repository without having orange builds (with warnings)
whenever a branch does not have one of these modules for some
reason.
2015-07-14 14:50:37 +02:00
Christophe Simonis
6486cf49be [FIX] runbot: better search of closest_branch for saas branches 2015-07-13 17:20:01 +02:00
Olivier Dony
df1d0f81b3 [FIX] runbot: proper join of modules from {build,branch,repo} 2015-07-13 10:20:20 +02:00
Christophe Simonis
97ad5e7746 [FIX] runbot: '' is not a valid module name 2015-07-13 10:15:27 +02:00
Olivier Dony
0bea276f48 [IMP] runbot: support finer-grained selection of modules to test 2015-07-10 20:01:32 +02:00
Olivier Dony
d12b1914d0 [FIX] runbot: /runbot/badge route should work also for private repositories
This lets us use them in README files
on GitHub, which uses an image proxy
that does not have access to private
repositories.

This is an acceptable disclosure of
information about private repos.
2015-07-10 20:00:21 +02:00
Christophe Simonis
ed3d82be51 [FIX] runbot: do not install hw_* and theme_* modules 2015-06-18 18:24:35 +02:00
ged-odoo
c3e2a6f72d [FIX] runbot: overwrite duplicate addons
The web addon is supposed to be duplicate, and needs to be installed
(in the enterprise version) over the community edition.

A better fix would be to keep the folder and use the --addons-path key
to start the server with the correct addon, but this is an urgent
change.

closes #69
2015-06-17 13:02:43 +02:00
Nicolas Seinlet
d7edc2b0d5 [IMP] runbot: deprecate unused fields
testing and running in repository are not used anymore since they are now
two ir.config_parameter:
- runbot.workers
- runbot.running_max
2015-05-21 10:50:58 +02:00