@@ -114,11 +114,16 @@ def publish_candidate(plan, receipt, run):
|
||||
single = [item['task'] for item in plan['items']] == [plan['task']]
|
||||
if single:
|
||||
body = body.split('业务单记录用例')[0] + '请在本单逐项记录实测证据。在结构化报告加 cases 对象,business 和 regression 各列本轮通过的业务及同批回归用例编号,两组编号独立,合计等于 required。验收登记后,由负责人在本单切到待发布。'
|
||||
manual = single and cd.manual_demand(task(plan['task']))
|
||||
if manual:
|
||||
body += '\n候选已就绪。负责人可在本单切到「测试中」启动同包测试。'
|
||||
key = 'ready ' + receipt['bundle']
|
||||
add_comment(plan['task'], key, body)
|
||||
for item in plan['items']:
|
||||
item_id = item['task']
|
||||
status = (task(item_id).get('status') or {}).get('id')
|
||||
if manual and status == WAIT_TEST:
|
||||
continue
|
||||
if status == TESTING:
|
||||
if not any(f'[KG candidate {key}]' in (row.get('content') or '') for row in timeline(item_id)):
|
||||
cd.require((STATE / 'handoffs' / (plan['task'] + '.preview.json')).is_file(),
|
||||
|
||||
Reference in New Issue
Block a user