[FIX] *: stray prints

Found a bunch of old leftover `print` calls which should not be in the
repo.
This commit is contained in:
Xavier Morel 2024-07-30 13:47:49 +02:00
parent cabab210de
commit 32871c3896
3 changed files with 0 additions and 8 deletions

View File

@ -602,7 +602,6 @@ def _rate_limited(req):
if not q.ok and q.headers.get('X-RateLimit-Remaining') == '0':
reset = int(q.headers['X-RateLimit-Reset'])
delay = max(0, round(reset - time.time() + 1.0))
print("Hit rate limit, sleeping for", delay, "seconds")
time.sleep(delay)
continue
break

View File

@ -501,8 +501,6 @@ stderr:
pr_ids = {p.id for p in prs}
for pr in prs:
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):
self.env.ref('runbot_merge.forwardport.reminder')._send(
repository=pr.repository,

View File

@ -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'})
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:] == [
(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'],