Skip to content
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

Setup running native tests in release mode #2667

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

whyoleg
Copy link
Contributor

@whyoleg whyoleg commented May 9, 2024

Proposed here: #2608 (comment)

To run native tests in release mode, separate tasks are created by KGP for additional test runs, f.e macosArm64ReleaseTest or linuxX64ReleaseTest. By default, they will be run also on build, check and allTests tasks, so they should automatically run on TC.

Note: with Kotlin 1.9.22 the original issue (#2608) doesn't reproduce nor via running protobuf tests (which contains tests for inner classes, so I haven't added additional test from original issue), nor via running tests in integration-test module (by adding reproducer test there, not included)

But another tests failed there:

  • kotlinx.serialization.json.polymorphic.JsonListPolymorphismTest#testPolymorphicNullableValues
  • kotlinx.serialization.json.polymorphic.JsonMapPolymorphismTest#testPolymorphicNullableValues

With the same exception:

kotlinx.serialization.json.internal.JsonDecodingException: Expected class kotlinx.serialization.json.JsonArray as the serialized body of kotlinx.serialization.Polymorphic<InnerBase>, but had class kotlinx.serialization.json.JsonObject

Those tests are now finish successfully with Kotlin 2.0.0-RC3.

@whyoleg whyoleg self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant