Skip to content

Commit cc7d345

Browse files
committed
use mx checkout-downstream in mx_graalpython_bisect
1 parent d252461 commit cc7d345

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

mx.graalpython/mx_graalpython_bisect.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -270,28 +270,8 @@ def _bisect_benchmark(argv, bisect_id, email_to):
270270
primary_suite = mx.primary_suite()
271271

272272
def checkout_enterprise():
273-
# First try to get the revision we explicitly specify in ci-overlays. If that doesn't match with graal, then we
274-
# fall back on mx checkout-downstream
275-
suite = get_suite('graalpython')
276-
ce_suite = get_suite('/vm')
277-
ce_rev = ce_suite.vc.tip(ce_suite.vc_dir).strip()
278273
ee_suite = get_suite('/vm-enterprise')
279-
overlays = '../ci-overlays'
280-
if not os.path.isdir(overlays):
281-
sys.exit("Needs to have ci-overlays checkout")
282-
with open(os.path.join(get_suite("graalpython").dir, "ci.jsonnet")) as f:
283-
overlay_rev = json.load(f)['overlay']
284-
suite.vc.update_to_branch(overlays, overlay_rev)
285-
constants_file = os.path.join(overlays, 'python/imported-constants.json')
286-
with open(constants_file) as f:
287-
ee_rev = json.load(f)['GRAAL_ENTERPRISE_REVISION']
288-
ee_suite.vc.update_to_branch(ee_suite.vc_dir, ee_rev)
289-
mx.run_mx(['sforceimports'], suite=ee_suite)
290-
if ce_suite.vc.tip(ce_suite.vc_dir).strip() != ce_rev:
291-
# The enterprise rev specified in ci-overlays imports newer graal than graalpython does. Fall back to
292-
# mx checkout-downstream to find older compatible enterprise rev
293-
ce_suite.vc.update_to_branch(ce_suite.vc_dir, ce_rev)
294-
mx.run_mx(['checkout-downstream', 'vm', 'vm-enterprise', '--no-fetch'], suite=ee_suite)
274+
mx.run_mx(['checkout-downstream', 'vm', 'vm-enterprise', '--no-fetch'], suite=ee_suite)
295275

296276
def checkout_suite(suite, commit):
297277
suite.vc.update_to_branch(suite.vc_dir, commit)

0 commit comments

Comments
 (0)