|
461 | 461 | excludes+: ["**.md", "docs/**", "3rd_party_licenses.txt", "scripts/**"],
|
462 | 462 | },
|
463 | 463 | setup+: [
|
| 464 | + // force imports the main repository to get the right graal commit |
464 | 465 | ["mx"] + self.mx_parameters + ["sforceimports"],
|
| 466 | + // logging |
465 | 467 | ["mx"] + self.mx_parameters + self.dy + ["sversions"],
|
466 | 468 | ],
|
467 | 469 | }),
|
468 | 470 |
|
469 | 471 | graalpy_ee_gate:: $.graalpy_gate + task_spec({
|
470 | 472 | setup+: [
|
| 473 | + // NOTE: logic shared with ci/python-bench.libsonnet, keep in sync |
471 | 474 | ["git", "clone", $.overlay_imports.GRAAL_ENTERPRISE_GIT, "../graal-enterprise"],
|
472 |
| - ['mx', '-p', '../graal-enterprise/vm-enterprise', 'checkout-downstream', 'vm', 'vm-enterprise'], |
473 |
| - ['mx', '--dynamicimports', '/graal-enterprise', 'sversions'], |
| 475 | + // checkout the matching revision of graal-enterprise repository based on the graal/compiler checkout |
| 476 | + ["mx", "--quiet", "--dy", "/graal-enterprise", "checkout-downstream", "compiler", "graal-enterprise", "--no-fetch"], |
| 477 | + // force imports with the env, which may clone other things (e.g. substratevm-enterprise-gcs) |
| 478 | + ["mx", "--env", "native-ee", "sforceimports"], |
| 479 | + // force imports the main repository to get the right graal commit |
| 480 | + ["mx", "sforceimports"], |
| 481 | + // logging |
| 482 | + ["mx", "--env", "native-ee", "sversions"], |
474 | 483 | ],
|
475 | 484 | }),
|
476 | 485 |
|
|
511 | 520 | ["git", "clone", $.overlay_imports.GRAAL_ENTERPRISE_GIT, "../graal-enterprise"],
|
512 | 521 | ['git', '-C', '../graal', 'checkout', '${GRAAL_COMMIT}'],
|
513 | 522 | ['mx', '-p', '../graal/vm', '--dynamicimports', 'graalpython', 'sforceimports'],
|
| 523 | + // NOTE: jvm-only, so not need to handle substratevm-enterprise-gcs |
514 | 524 | ['mx', '-p', '../graal-enterprise/vm-enterprise', 'checkout-downstream', 'vm', 'vm-enterprise'],
|
515 | 525 | ['git', 'checkout', '${MAIN_REVISION}'],
|
516 | 526 | ],
|
|
0 commit comments