[GITHUB-6925] Fixing debugger tests.#9302
Conversation
|
Good idea with using the already existing js wrapper module. This would allow to keep some tests enabled.
Exactly that would be great. Those two sections would need adjusting. netbeans/.github/workflows/main.yml Lines 2563 to 2565 in 26a05a6 netbeans/.github/workflows/main.yml Lines 2582 to 2590 in 26a05a6 the "Setup GraalVM Languages" step can be removed I suppose and the URL/filename might need an update now. |
Right, there is no need to run on GraalVM anymore! Testing debugging capabilities of
Yes, that sounds like the right approach.
|
|
|
||
| # - name: debugger.jpda.truffle | ||
| # run: ant $OPTS -f java/debugger.jpda.truffle test | ||
| - name: debugger.jpda.truffle |
There was a problem hiding this comment.
+1, I am really glad to see the tests being run regularly!
| <recursive/> | ||
| </test-dependency> | ||
| <test-dependency> | ||
| <code-name-base>org.netbeans.libs.graaljs</code-name-base> |
There was a problem hiding this comment.
Graal.js is packaged as NetBeans module, so reusing it is a great idea.
| return new JPDASupport (jpdaDebugger, pio); | ||
| } | ||
|
|
||
| public static JPDASupport attachScript(String launcher, String path) throws IOException, DebuggerStartException { |
There was a problem hiding this comment.
Huge simplification by deleting a lot of code. Good work!
It is my understanding failing tests for
java/debugger.jpda.trufflemay become an impediment to adopt JDK 21. So, this is an attempt to show a possible direction to fix thedebugger.jpda.truffletests. Instead of running the GraalVM launcher (which no longer exists), runjavawith the appropriate launcher class.This patch currently only fixes JS, as that's what we already have/bundle. Hopefully support for R/Python/Ruby could be added, by downloading the appropriate libraries (if they exist) and adding the to the runtime classpath. I didn't try myself, though. Please feel free to enhance the patch.
A good property is that the tests no longer require the GraalVM, but can run on any supported JDK.
I did not (yet?) do updates to the
GraalVM ${{ matrix.graal }} TestsGitHub Actions job. Should this be moved to GraalVM 21?Please let me know what you think.
/cc @mbien , @JaroslavTulach
^Add meaningful description above
Click to collapse/expand PR instructions
By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -
Please make sure (eg.
git log) that all commits have a valid name and email address for you in the Author field.If you're a first time contributor, see the Contributing guidelines for more information.
If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.
PR approval and merge checklist:
If this PR targets the delivery branch: don't merge. (full wiki article)