Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add more feature integration tests #84

Closed
wants to merge 4 commits into from

Conversation

sgammon
Copy link
Owner

@sgammon sgammon commented Sep 1, 2023

Summary

Add integration tests for more supported library functionality. Depends on #82 and targeting #80 for release.

Changelog

  • test: add java-toolchain test, which exercises graalvm as the bazel tool/runtime java toolchain.
  • test: add components-ce test, which downloads GVM Community components with dependencies.
  • test: add components-gvm test, which downloads Oracle GVM components with gu.
  • test: add disabled_tests with tests for earlier versions of bazel, including bazel1, bazel2, and bazel3
  • test: move most tests to GVM Community (except where noted)

- fix: add `gvm` toolchain to toolchain config repo
- fix: add aliases from `graalvm` → toolchain targets
- fix: adjust instructions for registering toolchains
- fix: adjust workspace toolchain registration logic

Breaking change:
When registering toolchains in a Bzlmod installation of these rules,
the target `@graalvm//:all` must be changed to two toolchain
registrations, based on the desired functionality:

  Register the Java toolchain:
  register_toolchains("@graalvm//:jvm")

  Register the GVM toolchain:
  register_toolchains("@graalvm//:sdk")

Fixes and closes #66.

Relates-To: #66
Signed-off-by: Sam Gammon <sam@elide.ventures>
Signed-off-by: Sam Gammon <sam@elide.ventures>
@sgammon sgammon added enhancement New feature or request 🚧 WIP Work-in-progress, do not merge tests Issues and enhancements relating to tests labels Sep 1, 2023
@sgammon sgammon added this to the 1.0.0 milestone Sep 1, 2023
@sgammon sgammon self-assigned this Sep 1, 2023
- test: add `java-toolchain` test, which exercises graalvm as the
  bazel tool/runtime java toolchain.

- test: add `components-ce` test, which downloads GVM Community
  components with dependencies.

- test: add `components-gvm` test, which downloads Oracle GVM
  components with `gu`.

- test: add `disabled_tests` with tests for earlier versions of
  bazel (coming soon), including `bazel1`, `bazel2`, and `bazel3`

- test: move most tests to GVM Community (except where noted)

Signed-off-by: Sam Gammon <sam@elide.ventures>
Signed-off-by: Sam Gammon <sam@elide.ventures>
@sonarcloud
Copy link

sonarcloud bot commented Sep 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sgammon sgammon marked this pull request as ready for review September 1, 2023 20:56
@sgammon sgammon mentioned this pull request Sep 1, 2023
@sgammon sgammon changed the base branch from fix/toolchain-aliases to release/0.10.x September 1, 2023 20:57
@sgammon sgammon closed this Sep 1, 2023
@sgammon
Copy link
Owner Author

sgammon commented Sep 1, 2023

(cherry-picked)

@sgammon sgammon removed the 🚧 WIP Work-in-progress, do not merge label Sep 2, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tests Issues and enhancements relating to tests
Projects
Development

Successfully merging this pull request may close these issues.

1 participant