fix: stabilize Kotlin, Scala, and Rust runtime tests#2415
Merged
jonaslagoni merged 8 commits intoasyncapi:masterfrom Jan 20, 2026
Merged
fix: stabilize Kotlin, Scala, and Rust runtime tests#2415jonaslagoni merged 8 commits intoasyncapi:masterfrom
jonaslagoni merged 8 commits intoasyncapi:masterfrom
Conversation
✅ Deploy Preview for modelina canceled.
|
There was a problem hiding this comment.
Pull request overview
This PR stabilizes Kotlin, Scala, and Rust runtime tests by fixing multiple issues that prevented them from running consistently in clean environments and CI/CD pipelines.
Changes:
- Fixed import paths in runtime test generators to use correct module references
- Upgraded Gradle wrapper to version 8.5 for better Java 17 compatibility
- Added code generation steps before build/test execution in Kotlin and Scala tests
- Enhanced Scala enum type handling to properly reference enum values
- Made Rust tests more flexible with configurable cargo path
- Updated test timeouts and added stderr tolerance for noisy build outputs
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/runtime/runtime-scala/src/test/scala/com/mycompany/app/generic/AddressSpec.scala | Updated test data to match generated code structure with correct types and optional enum fields |
| test/runtime/runtime-scala.ts | Fixed import path from '../..' to '../../src' for proper module resolution |
| test/runtime/runtime-scala.spec.ts | Added code generation step, increased timeout, and enabled stderr output |
| test/runtime/runtime-rust/Cargo.toml | Removed unnecessary bin and test configurations for library project |
| test/runtime/runtime-rust.spec.ts | Added configurable cargo path via environment variable and enabled stderr output |
| test/runtime/runtime-kotlin/src/test/kotlin/com/mycompany/app/generic/AddressTest.kt | Updated test to use correct types and standalone NestedObject class, added missing import |
| test/runtime/runtime-kotlin/gradle/wrapper/gradle-wrapper.properties | Upgraded Gradle from 4.4.1 to 8.5 for Java 17 support |
| test/runtime/runtime-kotlin/build.gradle | Added Jackson and Hamcrest dependencies required by tests |
| test/runtime/runtime-kotlin.ts | Fixed import path from '../../' to '../../src' for proper module resolution |
| test/runtime/runtime-kotlin.spec.ts | Added code generation step, increased timeout, and enabled stderr output |
| src/generators/scala/ScalaConstrainer.ts | Enhanced Reference type mapping to handle enum references by appending '.Value' |
| Dockerfile | Removed deprecated apt-key commands for mono installation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pull Request Test Coverage Report for Build 21139599147Details
💛 - Coveralls |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
jonaslagoni
approved these changes
Jan 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This PR stabilizes the Kotlin, Scala, and Rust runtime tests which were failing in clean local environments and inside Docker/CI.
It fixes multiple root causes, including:
After these changes, all runtime tests pass consistently both locally and in Docker.
Related Issue
Closes: #2414
Checklist
npm run lint).npm run test).Additional Notes
This PR was tested on macOS with Node v24 and Java 17.
The following commands now pass successfully:
npm run test:runtime:kotlin npm run test:runtime:scala npm run test:runtime:rust npm test