Show accepted model repair in Actions logs [skip ci]
This commit is contained in:
@@ -52,3 +52,9 @@ data['raw_response']=(p.parent/'raw_response.txt').read_text()
|
||||
data['runtime_response']=json.loads((p.parent/'runtime_response.json').read_text())
|
||||
p.write_text(json.dumps(data,indent=2)+'\n')
|
||||
subprocess.run([sys.executable,'tests/smoke_demo.py',str(p.parent/'reviewed.py')],check=True)
|
||||
print(f'LIVE REVIEW ACCEPTED for source commit {data["source_commit"]}', flush=True)
|
||||
print(f'Model: {data["model_id"]}; input tokens: {data["input_tokens"]}; output tokens: {data["output_tokens"]}', flush=True)
|
||||
print(f'Raw model response: {data["raw_response"]!r}', flush=True)
|
||||
print('Accepted one-character source diff:', flush=True)
|
||||
print(data['diff'], end='' if data['diff'].endswith('\n') else '\n', flush=True)
|
||||
print('Reviewed Python execution: PASS (stdout: hello)', flush=True)
|
||||
|
||||
Reference in New Issue
Block a user