#1081606 cdk: run upstream tests during build

Package:
src:cdk
Source:
src:cdk
Submitter:
Andrius Merkys
Date:
2024-09-30 07:09:01 UTC
Severity:
normal
Tags:
#1081606#5
Date:
2024-09-13 07:01:41 UTC
From:
To:
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

#1081606#10
Date:
2024-09-27 12:47:57 UTC
From:
To:
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

#1081606#15
Date:
2024-09-27 21:51:57 UTC
From:
To:
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

#1081606#20
Date:
2024-09-30 07:04:26 UTC
From:
To:
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