-
Notifications
You must be signed in to change notification settings - Fork 29
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] Add support for pushing the amplification results in a MongoDB database #852
Conversation
dspot/src/main/java/eu/stamp_project/dspot/selector/JacocoCoverageSelector.java
Outdated
Show resolved
Hide resolved
Hi @monperrus :) , I have attempted to resolved it and wait for new comments . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the progress
dspot/src/main/java/eu/stamp_project/dspot/selector/JacocoCoverageSelector.java
Outdated
Show resolved
Hide resolved
dspot/src/main/java/eu/stamp_project/dspot/mongodb/DspotInformationCollector.java
Outdated
Show resolved
Hide resolved
dspot/src/main/java/eu/stamp_project/dspot/selector/PitMutantScoreSelector.java
Outdated
Show resolved
Hide resolved
dspot/src/main/java/eu/stamp_project/utils/options/Configuration.java
Outdated
Show resolved
Hide resolved
dspot/src/main/java/eu/stamp_project/utils/options/JSAPOptions.java
Outdated
Show resolved
Hide resolved
@danglotb we're almost there. WDYT? |
Hello, the changes look good to me. A question: In which format will you push the information in the database? If so, it might be better to have a single method to report the result of test selector, such as |
Hi @danglotb , It's in JSON format :) . A single string would need a bit of work to divide it to relevant parts before submitting for the database . How would the String look like ? :) . |
It can be the string representation of the JSON then, isn't it? The test selector would create this JSON with its info, such as it is already done, e.g. in PitMutantScoreSelector, and give the string representation to the collector using the API We could also improve the Then, WDYT? |
@danglotb hi :) , yes we can have that . My thoughts, we can have a document taking the saved information in the previous step in the function reportJSONMutants so maybe reportTestSelectionInformation(String s) can be reportTestSelectionInformation() and it will send information in the implementation over to Mongodb. The document differs depending on which selector it was . I'll make a commit soon and then maybe we can take a look and discuss more :). |
@danglotb @monperrus resolved :) . Waiting for new comments. @danglotb I have added a basic code structure according to my idea about your suggestion. Please have a look :) . |
I relaunched the build on Travis. I dislike the fact that the JSON classes are using the collector. For me, the JSON classes are pure data representation and the only available API should be the modification of these data. I would rather prefer that the collector should be the one that uses the data. But it a conceptual vision of the classes' role. Questions:
Thank you! |
@danglotb hi :), should I revert back to the previous structure proposed by @monperrus or do you prefer to keep this structure ? . The previous structure does not embed code into the JSON classes, which seems to be a better alternative according to your comments. Also better for me since I already more or less make it works with the webinterface and also have some unittests for it. Pushing it to a file then read it would be a bit round about, while we can just give the infomation directly to the mongodb. which configuration do you mean ? :) . |
Yes. Maybe in a subsequent PR?
That's an option. What's the concrete next step to make progress here towards merging this baby PR? |
Hello, I would like to have the TestClassJSON to be pure data classes, i.e. without any logic such as the call to the Concretely, changes And then, the On my side, I must fix Travis, it seems that it is able to download a dependency: [WARNING] Could not transfer metadata org.eclipse.platform:org.eclipse.osgi/maven-metadata.xml from/to sonatype-apache (https://repository.apache.org/releases/): Connect to repository.apache.org:443 [repository.apache.org/207.244.88.140] failed: Connection timed out (Connection timed out) It stucks at this step, trying to download it, again and again, making the build fail. |
@danglotb Sure :) , it's resolved . Please have a look . |
Hello @tailp. Good for me, unless that the Still have some issues with Travis, dunno how to fix this yet. Sorry. Thank you! |
@danglotb I understand, no worries :) . The toString() method is now removed from the interface. |
@danglotb hi :) , I got this error with Coverall on travis (Somehow it could not find my NullCollector.java)
It does not make any sense to me since I have not used Coverall before. This also occured before with MongodbCollector.java but was somehow fixed after your fix :) . Maybe you happens to know the solution to this ? . Thanks . |
Hello @tailp I'm looking at this. |
It is because the used package is Please move your sources file, i.e. all the classes of the package In addition to this, you can add this package to the package You may also want put all the generic class into a package that is more generic, such as |
Thank you very much :) . I'll try fixing it now once again . (Ready to merge again when creating a generic |
Ready to merge for me. @tailp All good? |
@danglotb yes :) . |
Pull Request Test Coverage Report for Build 2180
💛 - Coveralls |
Hi :), original PR (#850) . This contains only the structure of the soon-to-be implemented. Awaiting for review @monperrus @danglotb .