Skip to content

Bump test dependency versions #360

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

Merged
merged 5 commits into from
Jun 4, 2024
Merged

Bump test dependency versions #360

merged 5 commits into from
Jun 4, 2024

Conversation

emlun
Copy link
Member

@emlun emlun commented Jun 3, 2024

The weekly build is suddenly failing with no changes to the project code: https://github.com/Yubico/java-webauthn-server/actions/runs/9342221697

I observed the same behaviour running the build locally:

$ ./gradlew :webauthn-server-core:compileTestScala
Execution failed for task ':webauthn-server-core:compileTestScala'.
>
bad constant pool index: 0 at pos: 89856
while compiling: ./webauthn-server-core/src/test/scala/com/yubico/scalacheck/gen/JacksonGenerators.scala
during phase: globalPhase=typer, enteringPhase=namer
library version: version 2.13.8
compiler version: version 2.13.8
reconstructed args: [9876 characters redacted for brevity]

last tree to typer: Ident(com)
tree position: line 35 of ./webauthn-server-core/src/test/scala/com/yubico/scalacheck/gen/JacksonGenerators.scala
tree tpe: com.type
symbol: final package com
symbol definition: final package com (a ModuleSymbol)
symbol package: <none>
symbol owners: package com
call site: package gen in package scalacheck in package scalacheck

== Source file context for tree position ==

32 import com.fasterxml.jackson.databind.node.NumericNode
33 import com.fasterxml.jackson.databind.node.ObjectNode
34 import com.fasterxml.jackson.databind.node.TextNode
35 import com.upokecenter.cbor.CBORObject
36 import com.yubico.internal.util.JacksonCodecs
37 import org.scalacheck.Arbitrary
38 import org.scalacheck.Arbitrary.arbitrary

Commit a62d4c8 seems to be the minimal diff that fixes the build. I've also bumped the other test dependency versions for good measure.

emlun added 2 commits June 3, 2024 15:10
Fixes this build failure that suddenly occurred with no code changes:

```
$ ./gradlew :webauthn-server-core:compileTestScala
Execution failed for task ':webauthn-server-core:compileTestScala'.
>
bad constant pool index: 0 at pos: 89856
while compiling: ./webauthn-server-core/src/test/scala/com/yubico/scalacheck/gen/JacksonGenerators.scala
during phase: globalPhase=typer, enteringPhase=namer
library version: version 2.13.8
compiler version: version 2.13.8
reconstructed args: [9876 characters redacted for brevity]

last tree to typer: Ident(com)
tree position: line 35 of ./webauthn-server-core/src/test/scala/com/yubico/scalacheck/gen/JacksonGenerators.scala
tree tpe: com.type
symbol: final package com
symbol definition: final package com (a ModuleSymbol)
symbol package: <none>
symbol owners: package com
call site: package gen in package scalacheck in package scalacheck

== Source file context for tree position ==

32 import com.fasterxml.jackson.databind.node.NumericNode
33 import com.fasterxml.jackson.databind.node.ObjectNode
34 import com.fasterxml.jackson.databind.node.TextNode
35 import com.upokecenter.cbor.CBORObject
36 import com.yubico.internal.util.JacksonCodecs
37 import org.scalacheck.Arbitrary
38 import org.scalacheck.Arbitrary.arbitrary
```
@emlun emlun requested a review from fdennis June 3, 2024 13:22
@emlun emlun self-assigned this Jun 3, 2024
The `ignoreSourceSets` config is needed to fix errors like this:

```
Execution failed for task ':yubico-util:configSemanticDBMain'.
> Failed to calculate the value of task ':yubico-util:configSemanticDBMain' property 'scalaVersion'.
> Unable to detect the Scala version for the 'main' source set. Please ensure it declares dependency to scala-library or consider adding it to 'ignoreSourceSets'
```

The change to `project-convention-code-formatting-internal.gradle` is needed to fix this error:

```
Execution failed for task ':yubico-util-scala:compileScala'.
> Could not resolve all files for configuration ':yubico-util-scala:detachedConfiguration1'.
   > Could not find org.scalameta:semanticdb-scalac_2.13.13:4.5.5.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/scalameta/semanticdb-scalac_2.13.13/4.5.5/semanticdb-scalac_2.13.13-4.5.5.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the re
pository declaration.
     Required by:
         project :yubico-util-scala
```
Copy link

github-actions bot commented Jun 3, 2024

Test Results

2 206 tests   2 198 ✅  55s ⏱️
   45 suites      8 💤
   45 files        0 ❌

Results for commit 0d5b5ef.

♻️ This comment has been updated with latest results.

emlun added 2 commits June 3, 2024 15:56
The scalafix plugin is not applied when running in Java 8, so its settings must
also be applied conditionally in order to not break the JDK 8 build.
@emlun emlun merged commit 33f31b3 into main Jun 4, 2024
20 checks passed
@emlun emlun deleted the fix-build branch June 4, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants