mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] *: stray prints
Found a bunch of old leftover `print` calls which should not be in the repo.
This commit is contained in:
parent
cabab210de
commit
32871c3896
@ -602,7 +602,6 @@ def _rate_limited(req):
|
|||||||
if not q.ok and q.headers.get('X-RateLimit-Remaining') == '0':
|
if not q.ok and q.headers.get('X-RateLimit-Remaining') == '0':
|
||||||
reset = int(q.headers['X-RateLimit-Reset'])
|
reset = int(q.headers['X-RateLimit-Reset'])
|
||||||
delay = max(0, round(reset - time.time() + 1.0))
|
delay = max(0, round(reset - time.time() + 1.0))
|
||||||
print("Hit rate limit, sleeping for", delay, "seconds")
|
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
continue
|
continue
|
||||||
break
|
break
|
||||||
|
@ -501,8 +501,6 @@ stderr:
|
|||||||
pr_ids = {p.id for p in prs}
|
pr_ids = {p.id for p in prs}
|
||||||
for pr in prs:
|
for pr in prs:
|
||||||
pr_ids.discard(pr.parent_id.id)
|
pr_ids.discard(pr.parent_id.id)
|
||||||
print(source, prs, [p.parent_id for p in prs],
|
|
||||||
'\n\t->', pr_ids, flush=True)
|
|
||||||
for pr in (p for p in prs if p.id in pr_ids):
|
for pr in (p for p in prs if p.id in pr_ids):
|
||||||
self.env.ref('runbot_merge.forwardport.reminder')._send(
|
self.env.ref('runbot_merge.forwardport.reminder')._send(
|
||||||
repository=pr.repository,
|
repository=pr.repository,
|
||||||
|
@ -1197,11 +1197,6 @@ More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port
|
|||||||
pr_c_id.write({'parent_id': False, 'detach_reason': 'because'})
|
pr_c_id.write({'parent_id': False, 'detach_reason': 'because'})
|
||||||
env.run_crons('forwardport.reminder', 'runbot_merge.feedback_cron', context={'forwardport_updated_before': FAKE_PREV_WEEK})
|
env.run_crons('forwardport.reminder', 'runbot_merge.feedback_cron', context={'forwardport_updated_before': FAKE_PREV_WEEK})
|
||||||
|
|
||||||
for p in env['runbot_merge.pull_requests'].search_read(
|
|
||||||
[], ['id', 'parent_id', 'source_id', 'display_name']
|
|
||||||
):
|
|
||||||
print(p, flush=True)
|
|
||||||
|
|
||||||
assert pr_b.comments[2:] == [
|
assert pr_b.comments[2:] == [
|
||||||
(users['user'], "@%s @%s child PR %s was modified / updated and has become a normal PR. This PR (and any of its parents) will need to be merged independently as approvals won't cross." % (
|
(users['user'], "@%s @%s child PR %s was modified / updated and has become a normal PR. This PR (and any of its parents) will need to be merged independently as approvals won't cross." % (
|
||||||
users['user'],
|
users['user'],
|
||||||
|
Loading…
Reference in New Issue
Block a user