We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c534587 + 02c9663 commit 4e19d5fCopy full SHA for 4e19d5f
run_cperf
@@ -82,7 +82,23 @@ def main():
82
if not args.skip_runner:
83
execute_runner(instance, workspace, configs, args)
84
85
- analyze_results(configs, args)
+ regressions = analyze_results(configs, args)
86
+
87
+ # Temporary hack to write output to workspace when in CI,
88
+ # regardless of --output passed.
89
+ if 'WORKSPACE' in os.environ:
90
+ workspace = os.environ['WORKSPACE']
91
+ print("WORKSPACE: %s" % workspace)
92
+ p = os.path.join(workspace, 'comment.md')
93
+ o = os.path.abspath(os.path.join(os.getcwd(),
94
+ args.output.name))
95
+ print("Output written to: %s" % o)
96
+ if o != p:
97
+ print("Copying %s to %s" % (o, p))
98
+ args.output.close()
99
+ shutil.copyfile(o, p)
100
101
+ return regressions
102
103
104
def get_sandbox_profile_flags():
0 commit comments