Skip to content

Add discoverable GraalVM build, test, and release targets - #68

Open
Sam Gammon (sgammon) wants to merge 3 commits into
mainfrom
feat/graal-developer-targets
Open

Sam Gammon (sgammon) wants to merge 3 commits into
mainfrom
feat/graal-developer-targets

Conversation

@sgammon

@sgammon Sam Gammon (sgammon) commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Add a consistent target surface for the GraalVM development workspace.

  • Use bazel build //graal/... and bazel test //graal/... for the daily build and test graph. Use bazel query 'tests(//graal:test)' to discover the individual tests.
  • Use :build, :test, and :run in each component package where those operations apply.
  • Use bazel build --config=dev //graal/graalpy:release for the GraalPy JVM archive, and :release_test to check the installed artifact. Wasm and Sulong have JVM and native release targets.
  • Include GraalJS and GraalPy when Bazel finds their live sibling checkouts. Keep packaging and Native Image jobs explicit.

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

@@ -0,0 +1,36 @@
"""Declare the public entry points for a GraalVM component."""

load("@graal//:live_suites.bzl", "LIVE_SUITES")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant