You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Matthias Pohl (Jira)" <ji...@apache.org> on 2024/01/12 07:28:00 UTC

[jira] [Resolved] (FLINK-34040) ScalaSerializersMigrationTest.testStableAnonymousClassnameGeneration fails in GHA with JDK 17 and 21

     [ https://issues.apache.org/jira/browse/FLINK-34040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Pohl resolved FLINK-34040.
-----------------------------------
    Resolution: Fixed

The error was, indeed caused by a wrong setup of the {{github-actions}} profile which caused the build to ignore the @FailsOnJava17 flag of the test.

> ScalaSerializersMigrationTest.testStableAnonymousClassnameGeneration fails in GHA with JDK 17 and 21
> ----------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-34040
>                 URL: https://issues.apache.org/jira/browse/FLINK-34040
>             Project: Flink
>          Issue Type: Sub-task
>          Components: API / Scala, Build System / CI
>    Affects Versions: 1.19.0
>            Reporter: Matthias Pohl
>            Priority: Major
>              Labels: github-actions, test-stability
>
> {code}
> Error: 13:05:23 13:05:23.538 [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.375 s <<< FAILURE! -- in org.apache.flink.api.scala.migration.ScalaSerializersMigrationTest
> Error: 13:05:23 13:05:23.538 [ERROR] org.apache.flink.api.scala.migration.ScalaSerializersMigrationTest.testStableAnonymousClassnameGeneration -- Time elapsed: 0.371 s <<< FAILURE!
> Jan 07 13:05:23 org.junit.ComparisonFailure: expected:<...MigrationTest$$anon$[8]> but was:<...MigrationTest$$anon$[1]>
> Jan 07 13:05:23 	at org.junit.Assert.assertEquals(Assert.java:117)
> Jan 07 13:05:23 	at org.junit.Assert.assertEquals(Assert.java:146)
> Jan 07 13:05:23 	at org.apache.flink.api.scala.migration.ScalaSerializersMigrationTest.testStableAnonymousClassnameGeneration(ScalaSerializersMigrationTest.scala:60)
> Jan 07 13:05:23 	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> {code}
> The error only happens in the [master GHA nightly|https://github.com/XComp/flink/actions/workflows/nightly-dev.yml] for JDK 17 and 21.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)