|
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. |
2 | 2 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
3 | 3 | #
|
4 | 4 | # The Universal Permissive License (UPL), Version 1.0
|
@@ -270,28 +270,8 @@ def _bisect_benchmark(argv, bisect_id, email_to):
|
270 | 270 | primary_suite = mx.primary_suite()
|
271 | 271 |
|
272 | 272 | 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() |
278 | 273 | 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) |
295 | 275 |
|
296 | 276 | def checkout_suite(suite, commit):
|
297 | 277 | suite.vc.update_to_branch(suite.vc_dir, commit)
|
|
0 commit comments