[Android-tools-devel] Bug#1064676: android-platform-tools-apksig: FTBFS: dh_auto_test: error: gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle -Duser.home=. -Duser.name=debian -Ddebian.package=android-platform-tools-apksig -Dfile.encoding=UTF-8 --parallel --max-workers=8 test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Sun Feb 25 19:45:57 GMT 2024
Source: android-platform-tools-apksig
Version: 31.0.2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240224 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test
> mkdir -p .gradle/init.d
> cp /usr/share/gradle-debian-helper/init.gradle .gradle/init.d/
> gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle -Duser.home=. -Duser.name=debian -Ddebian.package=android-platform-tools-apksig -Dfile.encoding=UTF-8 --parallel --max-workers=8 test
> openjdk version "17.0.10" 2024-01-16
> OpenJDK Runtime Environment (build 17.0.10+7-Debian-1)
> OpenJDK 64-Bit Server VM (build 17.0.10+7-Debian-1, mixed mode, sharing)
> Initialized native services in: /<<PKGBUILDDIR>>/.gradle/native
> To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.4.1/userguide/gradle_daemon.html.
> Starting process 'Gradle build daemon'. Working directory: /<<PKGBUILDDIR>>/.gradle/daemon/4.4.1 Command: /usr/lib/jvm/java-17-openjdk-amd64/bin/java --add-opens java.base/java.lang=ALL-UNNAMED -Xbootclasspath/a:/usr/share/java/gradle-helper-hook.jar:/usr/share/java/maven-repo-helper.jar -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /usr/share/gradle/lib/gradle-launcher-4.4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.4.1
> Successfully started process 'Gradle build daemon'
> An attempt to start the daemon took 0.855 secs.
> The client will now receive all logging from the daemon (pid: 2519692). The daemon log file: /<<PKGBUILDDIR>>/.gradle/daemon/4.4.1/daemon-2519692.out.log
> Daemon will be stopped at the end of the build stopping after processing
> Closing daemon's stdin at end of input.
> The daemon will no longer process any standard input.
> Using 8 worker leases.
> Creating new cache for fileHashes, path /<<PKGBUILDDIR>>/.gradle/caches/4.4.1/fileHashes/fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess at 266cd8b5
> Creating new cache for resourceHashesCache, path /<<PKGBUILDDIR>>/.gradle/caches/4.4.1/fileHashes/resourceHashesCache.bin, access org.gradle.cache.internal.DefaultCacheAccess at 266cd8b5
> Creating new cache for fileHashes, path /<<PKGBUILDDIR>>/.gradle/4.4.1/fileHashes/fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess at 2b8cbb70
> Starting Build
> Creating new cache for metadata-1.1/results, path /<<PKGBUILDDIR>>/.gradle/caches/transforms-1/metadata-1.1/results.bin, access org.gradle.cache.internal.DefaultCacheAccess at 57940052
> Settings evaluated using settings file '/<<PKGBUILDDIR>>/settings.gradle'.
> Settings file not found (/<<PKGBUILDDIR>>/settings.gradle)
> Root project name not defined in settings.gradle, defaulting to 'android-platform-tools-apksig' instead of the name of the root directory 'android-platform-tools-apksig-31.0.2'
> Projects loaded. Root project using build file '/<<PKGBUILDDIR>>/build.gradle'.
> Included projects: [root project 'android-platform-tools-apksig']
> Keep-alive timer started
> Adding Debian repository to project 'android-platform-tools-apksig'
> Parallel execution is an incubating feature.
> Evaluating root project 'android-platform-tools-apksig' using build file '/<<PKGBUILDDIR>>/build.gradle'.
> Adding Maven pom generation to project 'android-platform-tools-apksig'
> Linking the generated javadoc to the system JDK API documentation
> All projects evaluated.
> Selected primary task 'test' from project :
> Creating new cache for annotation-processors, path /<<PKGBUILDDIR>>/.gradle/4.4.1/fileContent/annotation-processors.bin, access org.gradle.cache.internal.DefaultCacheAccess at 21366fbb
> Tasks to be executed: [task ':compileJava', task ':processResources', task ':classes', task ':compileTestJava', task ':processTestResources', task ':testClasses', task ':test']
> Creating new cache for resourceHashesCache, path /<<PKGBUILDDIR>>/.gradle/4.4.1/fileHashes/resourceHashesCache.bin, access org.gradle.cache.internal.DefaultCacheAccess at 2b8cbb70
> Creating new cache for taskHistory, path /<<PKGBUILDDIR>>/.gradle/4.4.1/taskHistory/taskHistory.bin, access org.gradle.cache.internal.DefaultCacheAccess at 747fae1
> Creating new cache for outputFiles, path /<<PKGBUILDDIR>>/.gradle/buildOutputCleanup/outputFiles.bin, access org.gradle.cache.internal.DefaultCacheAccess at 7bd45c16
> :compileJava (Thread[Task worker for ':',5,main]) started.
> :compileJava
> Putting task artifact state for task ':compileJava' into context took 0.003 secs.
> Skipping task ':compileJava' as it is up-to-date (took 0.146 secs).
> :compileJava UP-TO-DATE
> :compileJava (Thread[Task worker for ':',5,main]) completed. Took 0.172 secs.
> :processResources (Thread[Task worker for ':',5,main]) started.
> :processResources
> Putting task artifact state for task ':processResources' into context took 0.0 secs.
> file or directory '/<<PKGBUILDDIR>>/src/main/resources', not found
> Skipping task ':processResources' as it has no source files and no previous output files.
> :processResources NO-SOURCE
> :processResources (Thread[Task worker for ':',5,main]) completed. Took 0.003 secs.
> :classes (Thread[Task worker for ':',5,main]) started.
> :classes
> Skipping task ':classes' as it has no actions.
> :classes UP-TO-DATE
> :classes (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs.
> :compileTestJava (Thread[Task worker for ':',5,main]) started.
> :compileTestJava
> Putting task artifact state for task ':compileTestJava' into context took 0.0 secs.
> Loading the Maven rules...
> Replacing junit:junit:jar:4.13 -> junit:junit:jar:4.x
> Passing through org.hamcrest:hamcrest:jar:debian
> Up-to-date check for task ':compileTestJava' took 0.479 secs. It is not up-to-date because:
> No history is available.
> All input files are considered out-of-date for incremental task ':compileTestJava'.
> Compiling with JDK Java compiler API.
> Note: /<<PKGBUILDDIR>>/src/test/java/com/android/apksig/SigningCertificateLineageTest.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> :compileTestJava (Thread[Task worker for ':',5,main]) completed. Took 2.433 secs.
> :processTestResources (Thread[Task worker for ':',5,main]) started.
> :processTestResources
> Putting task artifact state for task ':processTestResources' into context took 0.0 secs.
> Up-to-date check for task ':processTestResources' took 0.142 secs. It is not up-to-date because:
> No history is available.
> :processTestResources (Thread[Task worker for ':',5,main]) completed. Took 0.353 secs.
> :testClasses (Thread[Task worker for ':',5,main]) started.
> :testClasses
> Skipping task ':testClasses' as it has no actions.
> :testClasses (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs.
> :test (Thread[Task worker for ':',5,main]) started.
> :test
> Putting task artifact state for task ':test' into context took 0.0 secs.
> Up-to-date check for task ':test' took 0.05 secs. It is not up-to-date because:
> No history is available.
> Starting process 'Gradle Test Executor 1'. Working directory: /<<PKGBUILDDIR>> Command: /usr/lib/jvm/java-17-openjdk-amd64/bin/java -Dorg.gradle.native=false @/tmp/gradle-worker-classpath6484648537452721765txt -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'
> Successfully started process 'Gradle Test Executor 1'
> Gradle Test Executor 1 started executing tests.
>
> com.android.apksig.ApkVerifierTest > testV2RsaPssSignatureDoesNotMatchSignedDataRejected SKIPPED
>
> com.android.apksig.ApkVerifierTest > testV2OneSignerOneRsaPssSignatureAccepted SKIPPED
>
> com.android.apksig.ApkVerifierTest > testV2SignatureDoesNotMatchSignedDataRejected FAILED
> java.lang.AssertionError: APK failed verification for the wrong reason. Expected: V2_SIG_VERIFY_EXCEPTION, actual: APK Signature Scheme v2 signer signer #1: RSA_PKCS1_V1_5_WITH_SHA256 signature over signed-data did not verify
> at org.junit.Assert.fail(Assert.java:89)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1534)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1601)
> at com.android.apksig.ApkVerifierTest.testV2SignatureDoesNotMatchSignedDataRejected(ApkVerifierTest.java:345)
>
> com.android.apksig.AllTests > com.android.apksig.ApkVerifierTest.testV2RsaPssSignatureDoesNotMatchSignedDataRejected SKIPPED
>
> com.android.apksig.AllTests > com.android.apksig.ApkVerifierTest.testV2OneSignerOneRsaPssSignatureAccepted SKIPPED
>
> com.android.apksig.AllTests > com.android.apksig.ApkVerifierTest.testV2SignatureDoesNotMatchSignedDataRejected FAILED
> java.lang.AssertionError: APK failed verification for the wrong reason. Expected: V2_SIG_VERIFY_EXCEPTION, actual: APK Signature Scheme v2 signer signer #1: RSA_PKCS1_V1_5_WITH_SHA256 signature over signed-data did not verify
> at org.junit.Assert.fail(Assert.java:89)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1534)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1601)
> at com.android.apksig.ApkVerifierTest.testV2SignatureDoesNotMatchSignedDataRejected(ApkVerifierTest.java:345)
> Gradle Test Executor 1 finished executing tests.
> WARNING: A terminally deprecated method in java.lang.System has been called
> WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/usr/share/gradle/lib/plugins/gradle-testing-base-4.4.1.jar)
> WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
> WARNING: System::setSecurityManager will be removed in a future release
>
> 997 tests completed, 2 failed, 4 skipped
> Finished generating test XML results (0.036 secs) into: /<<PKGBUILDDIR>>/build/test-results/test
> Generating HTML test report...
> Finished generating test html results (0.04 secs) into: /<<PKGBUILDDIR>>/build/reports/tests/test
> :test FAILED
> :test (Thread[Task worker for ':',5,main]) completed. Took 8.028 secs.
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':test'.
> > There were failing tests. See the report at: file:///<<PKGBUILDDIR>>/build/reports/tests/test/index.html
>
> * Try:
> Run with --debug option to get more log output. Run with --scan to get full insights.
>
> * Exception is:
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':test'.
> at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
> at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
> at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
> at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
> at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
> at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
> at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
> at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
> at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
> at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
> at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
> at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
> at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
> at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
> at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
> at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
> at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
> at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
> at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
> at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
> at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
> at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
> at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
> at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
> at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
> at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
> Caused by: org.gradle.api.GradleException: There were failing tests. See the report at: file:///<<PKGBUILDDIR>>/build/reports/tests/test/index.html
> at org.gradle.api.tasks.testing.AbstractTestTask.handleTestFailures(AbstractTestTask.java:547)
> at org.gradle.api.tasks.testing.AbstractTestTask.executeTests(AbstractTestTask.java:464)
> at org.gradle.api.tasks.testing.Test.executeTests(Test.java:530)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
> at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
> at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
> at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
> at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:780)
> at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:747)
> at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
> at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
> at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
> at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
> ... 29 more
>
>
> * Get more help at https://help.gradle.org
>
> BUILD FAILED in 15s
> 4 actionable tasks: 3 executed, 1 up-to-date
> dh_auto_test: error: gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle -Duser.home=. -Duser.name=debian -Ddebian.package=android-platform-tools-apksig -Dfile.encoding=UTF-8 --parallel --max-workers=8 test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2024/02/24/android-platform-tools-apksig_31.0.2-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240224;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240224&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Android-tools-devel
mailing list