Go to file
Xavier Morel 4bdf7e5eda [FIX] runbot_merge: stagings involving repos w/o required statuses
PRs transitioning to 'ready' had been checked and tested but turns out
I had completely forgotten to test that stagings would validate
properly therefore of course they didn't.

The issue here was I'd forgotten `''.split(',')` returns `['']` rather
than `[]`, so on an empty required_statuses the staging validator
would keep looking for a status matching the context `''` and would
never find it, keeping the staging pending until timeout. So most
likely the problem could have been resolved by just adding a condition
to

    [r.strip() for r in repomap[c.sha].required_statuses.split(',')]

but I'd already done all the rest of the reorganisation by that point,
test pass and I think it's a somewhat better logic. Therefore I'll go
with that for now.

* properly handle empty required_statuses during staging validation
* remove the final postcondition, if we're missing commits which don't
  require any statuse we should not care
* expand test to include up to merging PRs
* automatically create dummy commits when creating stagings, that way
  the relevant commits are in the database (can't hurt)

PS: an other alternative would have been to filter out or skip ahead
on commits which don't require any statuses aka cmap &
required_statuse / cmap would not even have that entry
2020-02-07 08:29:55 +01:00
forwardport [FIX] forwardport: prefix of working copy when forward porting 2020-02-07 08:29:55 +01:00
runbot [IMP] runbot: allow build copy 2020-02-05 15:59:57 +01:00
runbot_builder [IMP] runbot: build docker image once per loop turn 2020-01-22 13:50:01 +01:00
runbot_cla [IMP] runbot: simplify views and adapt to odoo13 2020-01-14 13:24:58 +01:00
runbot_merge [FIX] runbot_merge: stagings involving repos w/o required statuses 2020-02-07 08:29:55 +01:00
.gitignore [IMP] runbot: build docker image once per loop turn 2020-01-22 13:50:01 +01:00
conftest.py [ADD] forwardport: special handling of adding branches to projects 2020-01-29 15:59:43 +01:00
README.md [REF] README: update the readme file for the brand new repo 2018-03-08 16:59:39 +01:00
requirements.txt [IMP] runbot: dynamic requirements 2019-12-02 16:36:56 +01:00

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.