ASSERT-KTH / jdbl-experiments

Open-science repository for our experiments with JDBL
GNU General Public License v3.0
1 stars 0 forks source link

error of running docker image #17

Closed SherlockNovitch closed 1 year ago

SherlockNovitch commented 1 year ago

I build the dockerfile and run it . There is an AttributeError when running python srcipt.

docker run -v `pwd`/results:/results -it --rm jdbl debloat -d https://github.com/apache/commons-cli.git -c https://github.com/1dir1/wordpress-java.git
1. Clone library...
2. Clone client...
3. Extract library version
4. Checkout library version
/tmp/tmp_dcec81e
Traceback (most recent call last):
  File "/home/jdbl/./jdbl.py", line 22, in <module>
    jdbl.run()
  File "/home/jdbl/core/JDBL.py", line 114, in run
    current_status['success'] = self.library.checkout_version(
  File "/home/jdbl/core/Project.py", line 43, in checkout_version
    releases = self.get_releases()
AttributeError: 'Project' object has no attribute 'get_releases'

I check the source code and find that there is no definition of the 'get_releases' function. I think there may be some problems in this repository , but I don't know how to debug. Or my usage method is wrong, I hope to get your answer, thank you very much.

tdurieux commented 1 year ago

I just pushed 3dc2e5f877894023732459f69561971f61d0883e which fixes your problem.

Unfortunately the tests https://github.com/1dir1/wordpress-java.git of fails in our docker container.

You should run this cmd to have the results docker run -vpwd/results:/home/jdbl/results/-it --rm jdbl debloat -d https://github.com/apache/commons-cli.git -c https://github.com/1dir1/wordpress-java.git

SherlockNovitch commented 1 year ago

image I am confronted with a new error when executing client tests . What should I do? Should I modify the dockerfile?

Another issue is that the dockerfile updated in 3dc2e5f has a maven-proxy. xml file, but this file has not appeared in the repository.

tdurieux commented 1 year ago

Could you read my message again?