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

[FEAT] System exit #122

Merged
merged 3 commits into from
Oct 29, 2021
Merged

[FEAT] System exit #122

merged 3 commits into from
Oct 29, 2021

Conversation

danglotb
Copy link
Member

We call now a System.exit() at the end of the main methods of the runner classes. I recall that these classes should never be used directly, but only called by the EntryPoint, which will use a new java command line to run the main of the runner classes.

@martinezmatias @andre15silva
This should solve the issue on Math2, since the process was not ending properly. I guess that the System.exit() is a bit rough but IMO, it is a valid workaround.

The tests is executing directly the main methods of the runner classes, this is why we must now use a special flag when running the test: mvn clean test -DnoExitForTesting=true.

@danglotb
Copy link
Member Author

Merging and releasing.

@danglotb danglotb merged commit 082809a into STAMP-project:master Oct 29, 2021
@martinezmatias
Copy link
Contributor

Thanks a lot @danglotb !
Which is the version of the release? 3.1.1? In that case, we will update the dependency from Flacoco (it uses 3.1.0)
Regards
Matias

@danglotb
Copy link
Member Author

Hum, I have issue releasing, since the release goal of maven launches an inside maven command, without the option for testing and avoiding the System.exit().

I'll investigate to find a solution but might have revert this commit

@martinezmatias
Copy link
Contributor

ok!

@andre15silva
Copy link
Contributor

@danglotb
Copy link
Member Author

Hi @martinezmatias

In the meantime, you can try on the SNAPSHOT, which is deployed on Nexus Repository.

@martinezmatias
Copy link
Contributor

great, thanks, I will try 3.1.1-SNAPSHOT.

@danglotb
Copy link
Member Author

@andre15silva Awesome! Thank you very much for the resources. I'll fix the test and release, thank you! 😄

@danglotb
Copy link
Member Author

test-runner-3.1.1 is out 🎊

@andre15silva
Copy link
Contributor

Thanks @danglotb !

I'll merge ASSERT-KTH/flacoco#117 once it is green @martinezmatias

@andre15silva
Copy link
Contributor

Hi @danglotb @martinezmatias

I confirm Math5 generates fault localization results on my local setup! Should work form Math2 and Math8 too. Good job @danglotb !

@martinezmatias
Copy link
Contributor

martinezmatias commented Oct 30, 2021

Great job @danglotb @andre15silva !!

I confirm that the issue is solved on the CI for Math-5, Math-8 and Math-28!! see here.
(for M2 we don't have the memory issue but still no result, to be discussed in other issue suspicions logging from TestRunner)

@monperrus
Copy link
Member

monperrus commented Oct 30, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants