Hello, cdk includes an extensive testsuite. To ensure the built package's integrity, it would be nice to run the testsuite during build. According to git log, there were several unsuccessful attempts to enable tests. I have pushed my attempt to branch 'with-tests' [1], however, my build fails as well: [ERROR] Failed to execute goal on project cdk-data: Could not resolve dependencies for project org.openscience.cdk:cdk-data:jar:2.9: Cannot access ossrh (https://s01.oss.sonatype.org/content/repositories/snapshots) in offline mode and the artifact org.openscience.cdk:cdk-test:jar:tests:debian has not been downloaded from it before. -> [Help 1] It might be due to some missing maven magic in debian/maven.rules, however, this exceeds my knowledge of maven-debian-helper. Hence tag:help. Andrius [1] https://salsa.debian.org/java-team/cdk/-/tree/with-tests
Hello, I am trying to enable tests for cdk package on branch on salsa [1]. Build is failing with the following: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.440 s [INFO] Finished at: 2024-09-27T08:36:51-04:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project cdk-data: Could not resolve dependencies for project org.openscience.cdk:cdk-data:jar:2.9: Cannot access ossrh (https://s01.oss.sonatype.org/content/repositories/snapshots) in offline mode and the artifact org.openscience.cdk:cdk-test:jar:tests:debian has not been downloaded from it before. -> [Help 1] cdk-data is an artifact of the same project, however, I cannot make maven detect it. I am almost sure the problem is due to some misconfiguration in debian/maven.rules, but I cannot find where. I would be grateful if someone with better knowledge of maven-debian-helper could help. [1] https://salsa.debian.org/java-team/cdk/-/tree/with-tests Best wishes, Andrius
Le 27/09/2024 à 14:47, Andrius Merkys a écrit : Did you try disabling the tests and ignoring org.openscience.cdk:cdk-test? Emmanuel Bourg
Hi Emmanuel, cdk in unstable already does that. I am interested in enabling tests for cdk since the package depends on many others and I would like to properly run the integration testsuite. Best, Andrius