-
Notifications
You must be signed in to change notification settings - Fork 5
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
How to run test locally in a reproducible way? #16
Comments
Could you clarify what errors you have locally? |
Sure. The first errors I get are these:
The same code ran correctly on the CI |
Also, opening that code in IDEA, IDEA has no problem navigating the imports |
Have you tried cleaning working directory? |
Also, you can try a completely new git clone (or worktree). |
I tried both |
On one of the machines I am using I always get this error:
Does it ring a bell to someone? |
Maybe I am running into this: antlr/antlr4#4512 |
Running tests in runtime-testsuite instead I get a ton of these errors:
|
Probably using of Could you try running from the latest |
In general, it seems to me a problem connected with Maven (which may be due to my limited experience with it). Some issues are having are with remembering to run certain tasks, in a certain order, and with certain flags. For example, I think one first need to install the maven plugin (without running tests) and then to run the tests, but to do that from certain directories. Other issues have been dependent on the versions of Java or Kotlin used. At some point I was not using the right version of the JVM and the version of Kotlin installed was not the expected one. Normally all of these things are automatized and checked by gradle builds, so that the process is more reliable and reproducible. I personally think that moving with Gradle will resolve some headaches, but if we do not end up doing that it would be useful to write some guide about compiling the project and running tests, with a troubleshooting section that we grows over time. |
I suspect the same. We should switch to Gradle ASAP. |
Related to this, I did experiment somewhat successfully with antlr-tgen on the Strumenta repository. I've opened some issues there to make it possible to adopt the tool correctly. Being the grammar and test cases are generated, using the default Just my 2c. |
@ftomassetti this first problem you listed (the compilation error) is caused by the current Maven build, which declares a runtime dependency on a published version of the |
Thank you @DavidGregory084 . Yes, moving to gradle and using project dependencies would be quite an improvement! |
I am sorry, but I have no experience with Maven and I am having headaches in getting locally the same results that I get on the CI.
For example, at this time on my machine when running
mvn test
fromtool-testuite
I get errors I do not get on the CI.What I am doing is to run:
Am I missing something?
I think that other potential contributors could come from a Gradle background and be running into surprising challenges when dealing with Maven
The text was updated successfully, but these errors were encountered: