Skip to content

Commit 4dc1515

Browse files
committed
Simplify checkouts in bisect-benchmark
1 parent 7084865 commit 4dc1515

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

mx.graalpython/mx_graalpython_bisect.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@
3636
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
39-
import sys
40-
4139
import abc
4240
import argparse
4341
import json
44-
import mx
4542
import os
4643
import re
4744
import shlex
45+
import sys
4846
import types
4947
from pathlib import Path
5048

49+
import mx
50+
5151

5252
def print_line(l):
5353
print('=' * l)
@@ -267,16 +267,13 @@ def _bisect_benchmark(argv, bisect_id, email_to):
267267

268268
def checkout(repo_path: Path, commit):
269269
GIT.update_to_branch(repo_path, commit)
270-
suite_dir = SUITE_MAPPING.get(repo_path, repo_path)
271-
mx.run_mx(['sforceimports'], suite=str(suite_dir))
272-
mx.run_mx(['--env', 'ce', 'sforceimports'], suite=str(VM_DIR))
270+
if repo_path == DIR:
271+
mx.run_mx(['sforceimports'], suite=str(DIR))
273272
if args.enterprise:
274273
if repo_path.name != 'graal-enterprise':
275274
mx.run_mx(['--quiet', 'checkout-downstream', 'vm', 'vm-enterprise', '--no-fetch'],
276275
suite=str(VM_ENTERPRISE_DIR))
277-
mx.run_mx(['--env', 'ee', 'sforceimports'], suite=str(VM_ENTERPRISE_DIR))
278-
GIT.update_to_branch(repo_path, commit)
279-
mx.run_mx(['sforceimports'], suite=str(suite_dir))
276+
mx.run_mx(['--dy', 'substratevm-enterprise-gcs', 'sforceimports'], suite=str(VM_ENTERPRISE_DIR))
280277
debug_str = f"debug: {SUITE.name}={get_commit(SUITE.vc_dir)} graal={get_commit(GRAAL_DIR)}"
281278
if args.enterprise:
282279
debug_str += f" graal-enterprise={get_commit(GRAAL_ENTERPRISE_DIR)}"

0 commit comments

Comments
 (0)