Skip to content

Commit 23a60c5

Browse files
committed
Checkout good revision before recursion
1 parent 860fe3b commit 23a60c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mx.graalpython/mx_graalpython_bisect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def run_bisect_benchmark(suite, bad, good, callback, threshold=None):
122122
downstream_bad = get_commit(downstream_suite)
123123
subresults = {}
124124
if downstream_bad and downstream_good and downstream_bad != downstream_good:
125+
suite.vc.update_to_branch(suite.vc_dir, commits[good_index])
125126
subresult = run_bisect_benchmark(downstream_suite, downstream_bad, downstream_good, callback, threshold)
126127
subresults[bad_index] = subresult
127128
return BisectResult(suite, commits, values, good_index, bad_index, subresults)
@@ -210,8 +211,6 @@ def benchmark_callback(suite, commit):
210211
mx.run_mx(checkout_args, out=mx.OutputCapture())
211212
mx.run_mx(['--env', 'ee', 'sforceimports'], suite=get_suite('/vm-enterprise'))
212213
fetched_enterprise[0] = True
213-
elif suite.name != 'vm':
214-
mx.run_mx(['--env', 'ce', 'sforceimports'], suite=get_suite('/vm'))
215214
suite.vc.update_to_branch(suite.vc_dir, commit)
216215
mx.run_mx(['sforceimports'], suite=suite)
217216
print("debug: graalpython={} graal={} graal-enterprise={}"

0 commit comments

Comments
 (0)