Repository navigation
Add discoverable GraalVM build, test, and release targets - #68
Sam Gammon (sgammon) wants to merge 3 commits into
Conversation
| @@ -0,0 +1,36 @@ | |||
| """Declare the public entry points for a GraalVM component.""" | |||
|
|
|||
| load("@graal//:live_suites.bzl", "LIVE_SUITES") | |||
There was a problem hiding this comment.
🟡 Downstream Graal dependency queries fail
When a consuming workspace queries SimpleLanguage dependencies, LIVE_SUITES blocks Bazel from loading the launcher template. The workspace’s use_repo does not restore the dev-only repository mapping inside rules_mx.
Learn more
The Graal source extension can be imported by a consuming root module using the setup under Select the Graal source. That import adds the @graal name to the consuming root, not to the rules_mx module, whose own Graal extension usage is dev-only. The generated SimpleLanguage launcher uses an existing template from the shared Graal package. Loading that package now also loads the workspace target macro, so the missing repository mapping prevents Bazel from resolving the template even though it does not use live-suite metadata.
Example: In a consuming root that imports Graal as @graal, bazel query 'deps(@graal//truffle:sl, 2)' reaches the launcher template and fails when its package tries to load the dev-only repository.
Recommended fix: Keep the shared Graal package loadable without the dev-only repository mapping. Put the workspace aggregate and its metadata load in a dedicated package, or provide an always-available metadata repository with an empty downstream default. Add a consuming-root query that reaches the launcher template.
Was this helpful? React with 👍 or 👎 to provide feedback.
Add a consistent target surface for the GraalVM development workspace.
bazel build //graal/...andbazel test //graal/...for the daily build and test graph. Usebazel query 'tests(//graal:test)'to discover the individual tests.:build,:test, and:runin each component package where those operations apply.bazel build --config=dev //graal/graalpy:releasefor the GraalPy JVM archive, and:release_testto check the installed artifact. Wasm and Sulong have JVM and native release targets.The existing live-checkout qualification also exercises the short launcher and release-test targets. Fix the mx JUnit timing format and the Sulong format and integer-width diagnostics so the daily suite compiles with stock JavaBuilder.
macOS qualification passed the wildcard build in both source modes, 34 pinned and 38 live daily tests, both guest launchers, and the GraalPy release build and installed test through the short labels.