Closed ShivangGoswami closed 5 months ago
Thanks for sharing, looks like graalvm library on MacOS is calling a native method that no longer exists in JDK22.
I am not sure of Graal Truffle is supported on JDK22, or even if we expect qDup to work on JDK22. Could you retry with JDK21 or JDK17?
@willr3 what versions of the JDK have we tested qDup with?
Java Version:
shivanggoswami@Shivangs-MacBook-Pro ~ % java -version
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment (build 21+35-2513)
OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
Scenarios:
shivanggoswami@Shivangs-MacBook-Pro resource-sizing-qdup-scripts % java -jar qDup-7.jar -C -B ./tmp -i ~/.ssh/id_podman_vm sample.yaml
17:33:03.466 Running qDup version 0.7.4 @ 89b766f
17:33:03.467 output path = ./tmp
17:33:03.467 shell exit code checks enabled
17:33:03.682 Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
17:33:03.804 json server listening at Shivangs-MacBook-Pro.local:31337
17:33:04.774 starting 1 scripts
17:33:04.778 tryme:20@localhost: script-cmd: tryme
17:33:04.780 tryme:20@localhost: tryme
17:33:05.225 tryme:20@localhost: whoami
root
17:33:05.659 tryme:20@localhost: date
Tue Oct 31 12:03:05 UTC 2023
17:33:06.095 tryme:20@localhost: echo Hello, qDup!
Hello, qDup!
Finished in 02.211 at ./tmp
Executes with version 0.6.21
shivanggoswami@Shivangs-MacBook-Pro resource-sizing-qdup-scripts % java -jar qDup-6.jar -C -B ./tmp -i ~/.ssh/id_podman_vm sample.yaml
17:37:13.340 [main] INFO qdup.._tmp - Running qDup version 0.6.18 @ e2f52cc
17:37:13.809 [main] DEBUG qdup.._tmp.state - run-1698754030063 starting state:
message = Hello, qDup!
17:37:14.740 [qdup-command-2] INFO qdup.._tmp - tryme:23@localhost:script-cmd: tryme
17:37:14.742 [qdup-command-3] INFO qdup.._tmp - tryme:23@localhost:tryme
17:37:15.179 [qdup-scheduled-0] INFO qdup.._tmp - tryme:23@localhost:whoami
root
17:37:15.616 [qdup-scheduled-1] INFO qdup.._tmp - tryme:23@localhost:date
Tue Oct 31 12:07:15 UTC 2023
17:37:16.051 [qdup-scheduled-7] INFO qdup.._tmp - tryme:23@localhost:echo Hello, qDup!
Hello, qDup!
17:37:16.066 [qdup-command-9] DEBUG qdup.._tmp.state - run-1698754030063 closing state:
message = Hello, qDup!
localhost :
tryme :
id=7 :
Finished in 02.264 at ./tmp
Executes in version 0.6.13
shivanggoswami@Shivangs-MacBook-Pro resource-sizing-qdup-scripts % java -jar qDup.jar -C -B ./tmp -i ~/.ssh/id_podman_vm sample.yaml
17:38:29.211 [main] INFO io.hyperfoil.tools.qdup.QDup - Starting with output path = ./tmp
17:38:34.531 [main] INFO io.hyperfoil.tools.qdup.JsonServer - listening at Shivangs-MacBook-Pro.local:31337
17:38:34.645 Running qDup version 0.6.13 @ 00a1831
17:38:34.648 run-1698754109085 starting state:
message = Hello, qDup!
17:38:34.652 [main] INFO i.h.tools.qdup.cmd.Dispatcher - starting 0 scripts
17:38:34.803 [qdup-command-1] INFO o.a.s.c.u.s.e.EdDSASecurityProviderRegistrar - getOrCreateProvider(EdDSA) created instance of net.i2p.crypto.eddsa.EdDSASecurityProvider
17:38:34.909 [qdup-command-1] INFO o.a.s.c.i.DefaultIoServiceFactoryFactory - No detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory
17:38:34.919 [qdup-command-1] INFO o.a.s.c.c.h.DefaultConfigFileHostEntryResolver - resolveEffectiveResolver(root@localhost:1234) loaded 9 entries from /Users/shivanggoswami/.ssh/config
17:38:35.488 [qdup-command-0] INFO i.h.tools.qdup.cmd.Dispatcher - starting 1 scripts
17:38:35.488 [qdup-command-0] INFO i.h.tools.qdup.cmd.Dispatcher - starting nanny
17:38:35.491 tryme:14@localhost:script-cmd: tryme
17:38:35.492 tryme:14@localhost:tryme
17:38:35.830 tryme:14@localhost:whoami
root
17:38:36.160 tryme:14@localhost:date
Tue Oct 31 12:08:35 UTC 2023
17:38:36.490 tryme:14@localhost:echo Hello, qDup!
Hello, qDup!
17:38:36.502 [qdup-command-8] INFO io.hyperfoil.tools.qdup.Run - run-1698754109085 runPendingDownloads
17:38:36.502 [qdup-command-8] INFO io.hyperfoil.tools.qdup.Run - run-1698754109085 -> ./tmp.queueCleanupScripts
17:38:36.503 [qdup-command-8] INFO i.h.tools.qdup.cmd.Dispatcher - starting 0 scripts
17:38:36.504 [qdup-command-9] INFO io.hyperfoil.tools.qdup.Run - run-1698754109085 runPendingDownloads
17:38:36.506 run-1698754109085 closing state:
message = Hello, qDup!
localhost :
tryme :
id=7 :
Finished in 01.879 at ./tmp
17:38:37.538 [shutdown-abort] WARN io.hyperfoil.tools.qdup.Run - Skipping cleanup - Abort has been defined to not run any cleanup scripts
17:38:37.539 [shutdown-abort] WARN i.h.tools.qdup.cmd.Dispatcher - ignoring stop call when already stopped
furthermore, for-each block is also working fine with latest version as well.
Maybe we should define a support matrix for qDup in the readme file with the versions that were tested as of now, so that new adapters of qDup have a clear picture of qDup prerequisites before trying in different operating systems and architectures cc: @johnaohara @willr3 @stalep
Maybe we should define a support matrix for qDup in the readme file with the versions that were tested as of now, so that new adapters of qDup have a clear picture of qDup prerequisites before trying in different operating systems and architectures cc: @johnaohara @willr3 @stalep
I think this is a great idea to document what JDK versions qDup is know to work with
Java Environment:
Qdup Version(cloned from maven repos):
Qdup Script:
Ssh server is a podman container:
Scenarios:
Executes in version 0.6.13
block causing error: