Skip to content

Flacoco support#323

Merged
martinezmatias merged 28 commits intoSpoonLabs:masterfrom
andre15silva:flacoco
Aug 29, 2021
Merged

Flacoco support#323
martinezmatias merged 28 commits intoSpoonLabs:masterfrom
andre15silva:flacoco

Conversation

@andre15silva
Copy link
Copy Markdown
Collaborator

Closes #314.

@andre15silva
Copy link
Copy Markdown
Collaborator Author

@martinezmatias

You can find 3 examples under FaultLocalizationExtensionTest.

The first two are passing, and are example small projects.

The last one is math85, and if you run it you'll get the error we talked about in #314 .

testFlacocoExtensionMath85(fr.inria.astor.test.repair.evaluation.extensionpoints.FaultLocalizationExtensionTest)  Time elapsed: 207.793 sec  <<< ERROR!
java.lang.RuntimeException: Forked process did not finished correctly
	at eu.stamp_project.testrunner.EntryPoint.runGivenCommandLine(EntryPoint.java:599)
	at eu.stamp_project.testrunner.EntryPoint.runCoveredTestResultPerTestMethods(EntryPoint.java:496)
	at eu.stamp_project.testrunner.EntryPoint.runCoveredTestResultPerTestMethods(EntryPoint.java:446)
	at fr.spoonlabs.flacoco.core.coverage.framework.JUnit4Strategy.execute(JUnit4Strategy.java:23)
	at fr.spoonlabs.flacoco.core.coverage.CoverageRunner.getCoverageMatrix(CoverageRunner.java:35)
	at fr.spoonlabs.flacoco.localization.spectrum.SpectrumRunner.computeCoverageMatrix(SpectrumRunner.java:37)
	at fr.spoonlabs.flacoco.localization.spectrum.SpectrumRunner.run(SpectrumRunner.java:22)
	at fr.spoonlabs.flacoco.api.Flacoco.runDefault(Flacoco.java:32)
	at fr.inria.astor.core.faultlocalization.flacoco.FlacocoFaultLocalization.searchSuspicious(FlacocoFaultLocalization.java:30)
	at fr.inria.astor.core.solutionsearch.AstorCoreEngine.calculateSuspicious(AstorCoreEngine.java:903)
	at fr.inria.main.evolution.AstorMain.createEngine(AstorMain.java:119)
	at fr.inria.main.evolution.AstorMain.run(AstorMain.java:173)
	at fr.inria.main.evolution.AstorMain.execute(AstorMain.java:233)
	at fr.inria.astor.test.repair.evaluation.extensionpoints.FaultLocalizationExtensionTest.runMath85(FaultLocalizationExtensionTest.java:204)
	at fr.inria.astor.test.repair.evaluation.extensionpoints.FaultLocalizationExtensionTest.testFlacocoExtensionMath85(FaultLocalizationExtensionTest.java:53)

@andre15silva
Copy link
Copy Markdown
Collaborator Author

Any way we can get CI enabled @martinezmatias ?

@martinezmatias
Copy link
Copy Markdown
Collaborator

Hi @andre15silva

Any way we can get CI enabled @martinezmatias ?

Ideally we should move to Actions. Travis.org is death so instead of moving to travis.com we should go to Actions.

@andre15silva
Copy link
Copy Markdown
Collaborator Author

Ideally we should move to Actions. Travis.org is death so instead of moving to travis.com we should go to Actions.

Ok, I'll take care of that then. I was running the travis config on my personal account, but ran out of tokens quickly. Actions is for sure a better option.

@martinezmatias
Copy link
Copy Markdown
Collaborator

Perfect @andre15silva , thanks

@martinezmatias
Copy link
Copy Markdown
Collaborator

During the migration, it would be convenient to remove some low quality test (lot of smoke test) which require large execution times.

Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
@andre15silva andre15silva force-pushed the flacoco branch 3 times, most recently from 8c9b117 to 42077aa Compare July 29, 2021 13:49
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
@andre15silva
Copy link
Copy Markdown
Collaborator Author

Currently blocked by ASSERT-KTH/flacoco#79

Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
@andre15silva andre15silva force-pushed the flacoco branch 2 times, most recently from d4d32c4 to dc5c56f Compare August 25, 2021 12:25
Signed-off-by: André Silva <andre15andre@hotmail.com>
results

Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
Signed-off-by: André Silva <andre15andre@hotmail.com>
@andre15silva andre15silva marked this pull request as ready for review August 27, 2021 15:25
@andre15silva
Copy link
Copy Markdown
Collaborator Author

This is ready for review.

I left some comments on the tests/assertions I had to ignore, so it would be nice if you could give me some feedback on those (if they are correct, if we can ignore them, if we should fix them, etc) as I don't have the entire context of how Astor and the tools work.

@martinezmatias martinezmatias merged commit dd8e597 into SpoonLabs:master Aug 29, 2021
@martinezmatias
Copy link
Copy Markdown
Collaborator

Nice work @andre15silva . Thanks!

so it would be nice if you could give me some feedback on those (if they are correct, if we can ignore them, if we should fix them, etc) as I don't have the entire context of how Astor and the tools work.

Ok, I merge now and then we update the tests doing other PR.

@monperrus monperrus mentioned this pull request Sep 7, 2021
@andre15silva andre15silva mentioned this pull request Sep 7, 2021
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.

integrate flacoco in Astor

2 participants