diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 9febf98..0972a3a 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -585,7 +585,7 @@ }, "//mx:extensions.bzl%mx_sources": { "general": { - "bzlTransitiveDigest": "vi4deS1znZ/EmhRHq368g/ndRn8tTD89/0K1eyptIDw=", + "bzlTransitiveDigest": "z6bc9dVliMHr20ONMKNEWT1L/GVh2OgJLfgH3Ga8wmI=", "usagesDigest": "dxCJDfVKOZaNXO+n+nKHCOz1xnXb/8TY9y22raU6kQc=", "recordedInputs": [ "REPO_MAPPING:,bazel_tools bazel_tools" @@ -609,7 +609,8 @@ "@@//mx:module_descriptor.patch", "@@//mx:symbolic_classpath.patch", "@@//mx:declaration_name.patch", - "@@//mx:dynamic_java_project.patch" + "@@//mx:dynamic_java_project.patch", + "@@//mx:junit_duration.patch" ], "patch_args": [ "-p1" diff --git a/graal/BUILD.bazel b/graal/BUILD.bazel index 282e1cb..6409d71 100644 --- a/graal/BUILD.bazel +++ b/graal/BUILD.bazel @@ -7,10 +7,13 @@ load("@rules_python//python:py_test.bzl", "py_test") load("//mx:bitcode.bzl", "mx_bitcode_suite") load("//mx:netbeans.bzl", "netbeans_test_java") load(":automatic_module.bzl", "automatic_module") +load(":developer_targets.bzl", "graal_workspace_targets") load(":layout.bzl", "mx_archive_layout") load(":pom_classpath_test.bzl", "pom_classpath_test") load(":sdk_llvm.bzl", "sdk_llvm_link", "sulong_fixture_sdk") +graal_workspace_targets() + exports_files([ "netbeans_maven.json", "benchmark_timer.patch", @@ -32,6 +35,7 @@ exports_files([ "sdk_llvm.json", "sdk_musl.json", "packed_sources.json", + "sulong_stock_javac.patch", "sulong_external_tests.patch", "sulong_setjmp.patch", "sl.py.tpl", diff --git a/graal/README.md b/graal/README.md index 0f475ea..893f8d2 100644 --- a/graal/README.md +++ b/graal/README.md @@ -1,37 +1,42 @@ # Building GraalVM -Bazel fetches a checksum-pinned Graal source archive, by default the Elide fork, and applies the BUILD files generated by mx and Gazelle. Builds and tests use declared sources and toolchains. A local Graal checkout is optional. The suites share one external repository so cross-suite edges use ordinary Bazel labels. [Pinned source tree](https://github.com/elide-dev/graal/tree/21dea4deb60d8aa9b07cbd3cc77b1581b61b6fb2) (`elide-dev/graal` `elide-25.6.x`, based on `oracle/graal@7b7825ae92c`) +Bazel uses the Graal source pin by default. With `--config=dev`, it generates the BUILD graph from your sibling checkouts with mx and Gazelle. The shared suites have the same public labels in both modes. [Pinned source tree](https://github.com/elide-dev/graal/tree/21dea4deb60d8aa9b07cbd3cc77b1581b61b6fb2) + +## Daily build and test ```sh -bazelisk test --config=elide-processors //graal/... @graal//sdk/... @graal//truffle/... @graal//compiler/... -bazelisk query 'tests(//graal:sdk_tests)' -bazelisk test @graal//sdk:org.graalvm.word.test.org.graalvm.word.test.WordTests -bazelisk query 'somepath(@graal//truffle:com.oracle.truffle.api.library, @graal//sdk:POLYGLOT)' -tools/buildbuddy test --config=buildbuddy-rbe --config=elide-processors //graal/... @graal//sdk/... @graal//truffle/... @graal//compiler/... +bazel build //graal/... +bazel test //graal/... +bazel test //graal/truffle:test +bazel query 'tests(//graal:test)' ``` +`//graal:build` groups the SDK, Truffle, compiler, Wasm and Sulong build products. `//graal:test` groups their daily tests, including the SDK, Truffle and Native Bridge integration tests. Both groups pick up GraalJS and GraalPy when their live checkouts are present. Each component has `:build` and `:test`, and components with a launcher expose `:run`. Use `bazel query //graal/truffle:all` to list a component's entry points. The generated `@graal` labels let you select individual projects, distributions and test cases. + +Request packaging or Native Image jobs explicitly. The `:release` target builds the JVM archive where one is available, and `:release_test` checks the unpacked release. Wasm and Sulong expose `:native_release` for their native archives. Use `--config=source-native-image` when building those archives or testing the combined Sulong release suite. Espresso's JVM installation is `//graal/espresso:install`. + ## Work on sibling checkouts Keep `rules_mx`, `graal`, and any `graaljs` and `graalpython` checkouts beside each other. Run Bazel from `rules_mx` with `--config=dev`. Bazel locates the sibling checkouts and selects the Elide processor toolchain and Labs JDK 25. Add `common --config=dev` to your local `user.bazelrc` to use the checkouts with plain `bazel` commands. ```sh -bazel run --config=dev @graal//graal-js:js -- -e 'print(6 * 7)' -bazel test --config=dev @graal//graal-js:regression/direct_eval -bazel test --config=dev @graal//graalpython:zlib/ChecksumTestCase.test_crc32start -bazel build --config=dev @graal//graalpython:GRAALPY_JVM_STANDALONE_RELEASE_ARCHIVE +bazel run --config=dev //graal/graaljs:run -- -e 'print(6 * 7)' +bazel test --config=dev //graal/graalpy:test +bazel build --config=dev //graal/graalpy:release +bazel test --config=dev //graal/graalpy:release_test ``` -Use a reverse-dependency query to select tests from the packages and targets you want to check. This example finds GraalJS regressions and the Truffle SimpleLanguage Fibonacci test affected by an edit to the Truffle API. +Use a reverse-dependency query to find which daily tests depend on the Truffle API, including tests in GraalJS and GraalPy. ```sh -bazel query --config=dev 'kind(".*_test rule", rdeps(@graal//graal-js:all + @graal//truffle:sl.test.Fibonacci, @graal//truffle:com.oracle.truffle.api))' +bazel query --config=dev 'kind(".*_test rule", rdeps(tests(//graal:test), @graal//truffle:com.oracle.truffle.api))' ``` Bazel generates BUILD files from mx and Gazelle on first use. Edits to existing source files flow directly into compilation and tests. File additions, removals, renames, and changes to mx suite metadata refresh the graph. After editing Java imports that change Gazelle’s dependency analysis, refresh it with `bazel fetch --config=dev --force --repo=@graal`. The checkouts need to match the Bazel input pins in `rules_mx`. CI qualifies Graal at `21dea4d`, GraalJS at `747d45b`, and GraalPy at `11344f3`. The live GraalPy launcher uses Labs JDK 25 and bundles the standard library, GraalPy core library, headers, platform versions, and source-built zlib. The first two upstream zlib checks are individually selectable. -The GraalPy JVM standalone tarball bundles the pinned JDK, package-relative launchers, frozen bytecode from the upstream freezer, native POSIX and zlib support, and the C API extensions built with the upstream CMake project. The installed launcher uses the bundled runtime in the `jvm/` and `modules/` directories. `@graal//graalpython:jvm_standalone_test` extracts the archive into a path containing spaces and tests frozen imports, native modules, and upstream zlib checks. +The GraalPy JVM standalone tarball bundles the pinned JDK, package-relative launchers, frozen bytecode from the upstream freezer, native POSIX and zlib support, and the C API extensions built with the upstream CMake project. `//graal/graalpy:release_test` extracts the archive into a path containing spaces and tests frozen imports, native modules, and upstream zlib checks. The JVM archive uses a classpath launcher and compiles from the checked-in PEG parser. Native Image and GraalOS standalones, native bzip2 and LZMA, and the virtualenv seeder remain separate work. diff --git a/graal/compiler/BUILD.bazel b/graal/compiler/BUILD.bazel new file mode 100644 index 0000000..e913f19 --- /dev/null +++ b/graal/compiler/BUILD.bazel @@ -0,0 +1,7 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + build = ["@graal//compiler:GRAAL"], + run = "@graal//compiler:sl_jit", + tests = ["@graal//compiler:GR36613Test"], +) diff --git a/graal/developer_targets.bzl b/graal/developer_targets.bzl new file mode 100644 index 0000000..43912a6 --- /dev/null +++ b/graal/developer_targets.bzl @@ -0,0 +1,36 @@ +"""Declare the public entry points for a GraalVM component.""" + +load("@graal//:live_suites.bzl", "LIVE_SUITES") + +_PUBLIC = ["//visibility:public"] +_COMPONENTS = ["compiler", "sdk", "sulong", "truffle", "wasm"] +_LIVE_COMPONENTS = {"graal-js": "graaljs", "graalpython": "graalpy"} + +def graal_component(build, tests, run = None, artifacts = {}, packaging_tests = {}, live_suite = None, manual = False): + """Expose a component's daily targets and explicitly selected packages.""" + if live_suite and live_suite not in LIVE_SUITES: + return + + tags = ["manual"] if manual else [] + native.filegroup(name = "build", srcs = build, tags = tags, visibility = _PUBLIC) + native.test_suite(name = "test", tests = tests, tags = tags, visibility = _PUBLIC) + if run: + native.alias(name = "run", actual = run, tags = tags, visibility = _PUBLIC) + for name, target in artifacts.items(): + native.alias(name = name, actual = target, tags = ["manual"], visibility = _PUBLIC) + for name, targets in packaging_tests.items(): + native.test_suite(name = name, tests = targets, tags = ["manual"], visibility = _PUBLIC) + +def graal_workspace_targets(): + """Collect the daily build products and tests in the shared workspace.""" + components = _COMPONENTS + [name for suite, name in _LIVE_COMPONENTS.items() if suite in LIVE_SUITES] + native.filegroup( + name = "build", + srcs = ["//graal/" + name + ":build" for name in components], + visibility = _PUBLIC, + ) + native.test_suite( + name = "test", + tests = ["//graal/" + name + ":test" for name in components], + visibility = _PUBLIC, + ) diff --git a/graal/espresso/BUILD.bazel b/graal/espresso/BUILD.bazel new file mode 100644 index 0000000..b02fbd2 --- /dev/null +++ b/graal/espresso/BUILD.bazel @@ -0,0 +1,15 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + artifacts = { + "install": "@graal//espresso:ESPRESSO_JVM_STANDALONE", + "native_install": "@graal//espresso:ESPRESSO_NATIVE_STANDALONE", + }, + build = ["@graal//espresso:ESPRESSO"], + manual = True, + packaging_tests = { + "install_test": ["//graal:espresso_standalone_test"], + "native_install_test": ["//graal:espresso_native_standalone_test"], + }, + tests = ["//graal:espresso_guest_test"], +) diff --git a/graal/extensions.bzl b/graal/extensions.bzl index c2037c5..d991bac 100644 --- a/graal/extensions.bzl +++ b/graal/extensions.bzl @@ -25,6 +25,7 @@ OVERLAYS = [ Label("//graal:vm.patch"), Label("//graal:regex.patch"), Label("//graal:tools.patch"), + Label("//graal:sulong_stock_javac.patch"), Label("//graal:sulong_external_tests.patch"), Label("//graal:sulong_setjmp.patch"), Label("//graal:sulong.patch"), @@ -84,7 +85,9 @@ def _graal_impl(ctx): build_file_content = """exports_files(["mx-source.json"])""" if source.provenance else """load("@bazel_skylib//rules:write_file.bzl", "write_file") write_file(name = "mx-source.json", out = "source-info.json", content = ["{}"], visibility = ["//visibility:public"]) """, - files = {"mx-source.json": source.provenance} if source.provenance else {}, + files = {"live_suites.bzl": Label("//graal:no_live_suites.bzl")} | ( + {"mx-source.json": source.provenance} if source.provenance else {} + ), patch_strip = 1, patches = source.patches, sha256 = source.sha256, diff --git a/graal/graaljs/BUILD.bazel b/graal/graaljs/BUILD.bazel new file mode 100644 index 0000000..d9e3267 --- /dev/null +++ b/graal/graaljs/BUILD.bazel @@ -0,0 +1,11 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + build = ["@graal//graal-js:js"], + live_suite = "graal-js", + run = "@graal//graal-js:js", + tests = [ + "@graal//graal-js:regression/direct_eval", + "@graal//graal-js:regression/indirect_eval", + ], +) diff --git a/graal/graalpy/BUILD.bazel b/graal/graalpy/BUILD.bazel new file mode 100644 index 0000000..cdccf65 --- /dev/null +++ b/graal/graalpy/BUILD.bazel @@ -0,0 +1,13 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + artifacts = {"release": "@graal//graalpython:GRAALPY_JVM_STANDALONE_RELEASE_ARCHIVE"}, + build = ["@graal//graalpython:python"], + live_suite = "graalpython", + packaging_tests = {"release_test": ["@graal//graalpython:jvm_standalone_test"]}, + run = "@graal//graalpython:python", + tests = [ + "@graal//graalpython:zlib/ChecksumTestCase.test_adler32start", + "@graal//graalpython:zlib/ChecksumTestCase.test_crc32start", + ], +) diff --git a/graal/native-image/BUILD.bazel b/graal/native-image/BUILD.bazel new file mode 100644 index 0000000..55247ea --- /dev/null +++ b/graal/native-image/BUILD.bazel @@ -0,0 +1,8 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + build = ["@graal//substratevm:native-image"], + manual = True, + run = "@graal//substratevm:native-image", + tests = ["//graal:source_native_image_test"], +) diff --git a/graal/no_live_suites.bzl b/graal/no_live_suites.bzl new file mode 100644 index 0000000..16d542a --- /dev/null +++ b/graal/no_live_suites.bzl @@ -0,0 +1,3 @@ +"""The pinned Graal source archive contains no sibling checkouts.""" + +LIVE_SUITES = [] diff --git a/graal/sdk/BUILD.bazel b/graal/sdk/BUILD.bazel new file mode 100644 index 0000000..6f4d20c --- /dev/null +++ b/graal/sdk/BUILD.bazel @@ -0,0 +1,12 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + build = ["@graal//sdk:GRAAL_SDK"], + tests = [ + "//graal:launcher_modules_test", + "//graal:sdk_classpath_test", + "//graal:sdk_tests", + "//graal/nativebridge:launcher_test", + "//graal/nativebridge:module_test", + ], +) diff --git a/graal/sulong/BUILD.bazel b/graal/sulong/BUILD.bazel new file mode 100644 index 0000000..088a86e --- /dev/null +++ b/graal/sulong/BUILD.bazel @@ -0,0 +1,14 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + artifacts = { + "release": "@graal//sulong:SULONG_JVM_STANDALONE_RELEASE_ARCHIVE", + "native_release": "@graal//sulong:SULONG_NATIVE_STANDALONE_RELEASE_ARCHIVE", + }, + build = ["@graal//sulong:SULONG_CORE"], + packaging_tests = {"release_test": ["//graal:sulong_standalone_install_test"]}, + tests = [ + "//graal:sulong_language_test", + "//graal:sulong_pipe_test", + ], +) diff --git a/graal/sulong_stock_javac.patch b/graal/sulong_stock_javac.patch new file mode 100644 index 0000000..ba9176e --- /dev/null +++ b/graal/sulong_stock_javac.patch @@ -0,0 +1,28 @@ +diff --git a/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/CXXDemangler.java b/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/CXXDemangler.java +--- a/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/CXXDemangler.java ++++ b/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/CXXDemangler.java +@@ -140,5 +140,5 @@ + int libIdx = i + 1; + if (libIdx >= numNamespaces) { +- throw new LLVMLinkerException(String.format("No library name to decode: ", String.join("::", namespaces))); ++ throw new LLVMLinkerException("No library name to decode: " + String.join("::", namespaces)); + } + String rawLibname = namespaces.get(libIdx); +@@ -161,5 +161,5 @@ + for (int i = 0; i < result.length; i++) { + char ch = charSequence.charAt(i); +- assert ch >= 0 && ch <= Byte.MAX_VALUE; ++ assert ch <= Byte.MAX_VALUE; + result[i] = (byte) ch; + } +diff --git a/sulong/projects/com.oracle.truffle.llvm.nativemode/src/com/oracle/truffle/llvm/nativemode/runtime/memory/LLVMNativeMemory.java b/sulong/projects/com.oracle.truffle.llvm.nativemode/src/com/oracle/truffle/llvm/nativemode/runtime/memory/LLVMNativeMemory.java +--- a/sulong/projects/com.oracle.truffle.llvm.nativemode/src/com/oracle/truffle/llvm/nativemode/runtime/memory/LLVMNativeMemory.java ++++ b/sulong/projects/com.oracle.truffle.llvm.nativemode/src/com/oracle/truffle/llvm/nativemode/runtime/memory/LLVMNativeMemory.java +@@ -59,5 +59,5 @@ + static { + assert (DEREF_HANDLE_SPACE_START & HANDLE_HEADER_MASK) != (DEREF_HANDLE_SPACE_END & HANDLE_HEADER_MASK); + assert (HANDLE_SPACE_START & HANDLE_HEADER_MASK) != (HANDLE_SPACE_END & HANDLE_HEADER_MASK); +- assert (DEREF_HANDLE_SPACE_START & HANDLE_HEADER_MASK) != 0; +- assert (HANDLE_SPACE_START & HANDLE_HEADER_MASK) != 0; ++ assert (DEREF_HANDLE_SPACE_START & HANDLE_HEADER_MASK) != 0L; ++ assert (HANDLE_SPACE_START & HANDLE_HEADER_MASK) != 0L; diff --git a/graal/truffle/BUILD.bazel b/graal/truffle/BUILD.bazel new file mode 100644 index 0000000..ccee05f --- /dev/null +++ b/graal/truffle/BUILD.bazel @@ -0,0 +1,20 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + build = [ + "@graal//truffle:TRUFFLE_API", + "@graal//truffle:TRUFFLE_RUNTIME", + "@graal//truffle:sl", + ], + run = "@graal//truffle:sl", + tests = [ + "//graal:panama_module_test", + "//graal:truffle_archive_test", + "//graal:truffle_distributions_test", + "//graal:truffle_layout_test", + "//graal:truffle_polyglot_test", + "//graal:truffle_processor_test", + "//graal:truffle_runtime_modules_test", + "@graal//truffle:sl.test.Fibonacci", + ], +) diff --git a/graal/wasm/BUILD.bazel b/graal/wasm/BUILD.bazel new file mode 100644 index 0000000..4faf065 --- /dev/null +++ b/graal/wasm/BUILD.bazel @@ -0,0 +1,14 @@ +load("//graal:developer_targets.bzl", "graal_component") + +graal_component( + artifacts = { + "release": "@graal//wasm:GRAALWASM_JVM_STANDALONE_RELEASE_ARCHIVE", + "native_release": "@graal//wasm:GRAALWASM_NATIVE_STANDALONE_RELEASE_ARCHIVE", + }, + build = ["@graal//wasm:WASM"], + packaging_tests = { + "release_test": ["//graal:wasm_jvm_release_test"], + "native_release_test": ["//graal:wasm_native_release_test"], + }, + tests = ["@graal//wasm:org.graalvm.wasm.test.org.graalvm.wasm.test.WasmIndirectCallTest"], +) diff --git a/mx/BUILD.bazel b/mx/BUILD.bazel index 4db3ec0..cfb8e27 100644 --- a/mx/BUILD.bazel +++ b/mx/BUILD.bazel @@ -4,6 +4,7 @@ load("@rules_python//python:py_test.bzl", "py_test") exports_files([ "export.py", "jdk_release.patch", + "junit_duration.patch", "launcher.py.tpl", "module_descriptor.patch", "register.patch", diff --git a/mx/extensions.bzl b/mx/extensions.bzl index 24619c7..0db19b1 100644 --- a/mx/extensions.bzl +++ b/mx/extensions.bzl @@ -12,7 +12,14 @@ def _sources(_ctx): strip_prefix = "mx-" + revision, build_file = Label("//mx:upstream.BUILD"), files = {"mx.mx/mx_bazel_export.py": Label("//mx:export.py")}, - patches = [Label("//mx:register.patch"), Label("//mx:module_descriptor.patch"), Label("//mx:symbolic_classpath.patch"), Label("//mx:declaration_name.patch"), Label("//mx:dynamic_java_project.patch")], + patches = [ + Label("//mx:register.patch"), + Label("//mx:module_descriptor.patch"), + Label("//mx:symbolic_classpath.patch"), + Label("//mx:declaration_name.patch"), + Label("//mx:dynamic_java_project.patch"), + Label("//mx:junit_duration.patch"), + ], patch_args = ["-p1"], ) diff --git a/mx/junit_duration.patch b/mx/junit_duration.patch new file mode 100644 index 0000000..8f8d50c --- /dev/null +++ b/mx/junit_duration.patch @@ -0,0 +1,8 @@ +diff --git a/java/com.oracle.mxtool.junit/src/com/oracle/mxtool/junit/MxJUnitWrapper.java b/java/com.oracle.mxtool.junit/src/com/oracle/mxtool/junit/MxJUnitWrapper.java +--- a/java/com.oracle.mxtool.junit/src/com/oracle/mxtool/junit/MxJUnitWrapper.java ++++ b/java/com.oracle.mxtool.junit/src/com/oracle/mxtool/junit/MxJUnitWrapper.java +@@ -492,3 +492,3 @@ + Object[] current = timings.getCurrentTestDuration(); + if (current != null && !ctrlCPressed) { +- System.out.printf("Test %s not finished after %d ms%n", current[0], current[1]); ++ System.out.printf("Test %s not finished after %d ms%n", current[0], (Long) current[1]); diff --git a/tools/check-graal-dev b/tools/check-graal-dev index f66544a..4d17503 100755 --- a/tools/check-graal-dev +++ b/tools/check-graal-dev @@ -37,8 +37,8 @@ marker = getattr(Truffle, "rulesMxLiveMarker", None) print(marker() if marker else "before") """ LAUNCHERS = { - "@graal//graal-js:js": ("-e", JS_MARKER), - "@graal//graalpython:python": ("-c", PY_MARKER), + "//graal/graaljs:run": ("-e", JS_MARKER), + "//graal/graalpy:run": ("-c", PY_MARKER), } @@ -95,6 +95,14 @@ def main(config): raise SystemExit( f"Unexpected test selection for the Truffle source edit {affected!r}" ) + daily = invoke( + "query", + "tests(//graal/graaljs:test + //graal/graalpy:test)", + stdout=subprocess.PIPE, + text=True, + ).stdout.splitlines() + if set(daily) != REGRESSIONS - {FIBONACCI}: + raise SystemExit(f"Unexpected public language test targets {daily!r}") location = invoke( "query", "--output=location", @@ -164,7 +172,7 @@ def main(config): "The Truffle edit reached GraalJS and GraalPy, and all selected tests were cached on repeat." ) invoke( - "test", "--test_output=errors", "@graal//graalpython:jvm_standalone_test" + "test", "--test_output=errors", "//graal/graalpy:release_test" ) diff --git a/tools/generate-graal b/tools/generate-graal index 3930c1b..d3584f2 100755 --- a/tools/generate-graal +++ b/tools/generate-graal @@ -2584,6 +2584,7 @@ def prepare_suite(suite, stage, peers=()): 'srcs = ["@rules_mx//graal:graalpy_standalone_test.py"], main = "graalpy_standalone_test.py", ' 'args = ["$(rootpath :GRAALPY_JVM_STANDALONE_RELEASE_ARCHIVE)", "$(rootpath graalpython/lib-python/3/test/test_zlib.py)"], ' 'data = [":GRAALPY_JVM_STANDALONE_RELEASE_ARCHIVE", "graalpython/lib-python/3/test/test_zlib.py"], ' + 'tags = ["manual"], ' 'visibility = ["//visibility:public"])\n' + "".join( f'py_test(name = "zlib/{case}", size = "small", ' diff --git a/tools/graal_live_repository.py b/tools/graal_live_repository.py index 440c5c4..2b44a0b 100755 --- a/tools/graal_live_repository.py +++ b/tools/graal_live_repository.py @@ -221,6 +221,7 @@ def generate(repo, bazel, output_base, patches): "REPO.bazel", "WORKSPACE", "WORKSPACE.bazel", + "live_suites.bzl", "mx-source.json", ) } @@ -231,6 +232,9 @@ def generate(repo, bazel, output_base, patches): target.symlink_to(source) (repo / "REPO.bazel").write_text("# Local overlay generated by rules_mx.\n") (repo / "BUILD.bazel").write_text('exports_files(["mx-source.json"])\n') + (repo / "live_suites.bzl").write_text( + "LIVE_SUITES = " + json.dumps(sorted(inputs["peers"])) + "\n" + ) (repo / "mx-source.json").write_text( json.dumps(provenance(graal), indent=2) + "\n" )