-
Notifications
You must be signed in to change notification settings - Fork 355
Migrate *-agent
samples to Native Build Tools agent support
#1247
Comments
Prior to this commit, the commandlinerunner-agent sample application was failing due to improper support for using the GraalVM native image agent. This commit performs a migration to the Native Build Tools (NBT) support for running with the agent in Maven. However, this is only a partial migration since NBT currently does not provide a way to configure Access Filters for the agent. Consequently, the commandlinerunner-agent sample application still fails, and gh-1247 is effectively blocked until the following NBT issue is resolved. graalvm/native-build-tools#162 See gh-1247
I am not sure to understand why |
Good catch! That was an experiment that I forgot to undo before committing. I'll add it back. |
*-agent
samples to Native Build Tools agent support
So far it seems we are blocked by an issue on GraalVM 21.3. When executing the agent on tests, it generates this kind of entry that make native tests fail:
With this error:
This error happen when executing native test, native compilation of the app is fine. Also when using
We need to bring that to GraalVM team attention. I think that mean we need to move agent support to at least |
Will require NBT 0.9.9 due to graalvm/native-build-tools#179. |
Blocked by 2 additional issues with NBT |
I created graalvm/native-build-tools#207 and graalvm/native-build-tools#208 related issues. |
Depends on #1638. |
Works with NBT
I will update the agent samples once NBT 0.9.12 has been released. |
The
commandlinerunner-agent
sample currently does not work.At this point we should remove the following...
https://github.com/spring-projects-experimental/spring-native/blob/77be942e39c6c441beb65293d94e9e80de7ccd69/samples/commandlinerunner-agent/pom.xml#L47-L63
and
https://github.com/spring-projects-experimental/spring-native/blob/77be942e39c6c441beb65293d94e9e80de7ccd69/samples/commandlinerunner-agent/pom.xml#L80
... and switch to using the built-in support for running with the GraalVM agent using Native Build Tools.
The text was updated successfully, but these errors were encountered: