Skip to content

Commit 0abcff8

Browse files
committed
[rd-refactoring]
Rd version bump, model regeneration typos and small adjustments
1 parent d31a22a commit 0abcff8

File tree

19 files changed

+43
-48
lines changed

19 files changed

+43
-48
lines changed

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ kotlinVersion=1.7.20
2828
log4j2Version=2.13.3
2929
coroutinesVersion=1.6.3
3030
collectionsVersion=0.3.4
31+
# after updating plugin version you should manually bump corresponding versions in plugin
32+
# as they cannot be set from properties
33+
# utbot-intellij/build.gradle.kts
34+
# utbot-rd/build.gradle
35+
rdVersion=2022.3.4
3136
intellijPluginVersion=1.7.0
3237
jacocoVersion=0.8.8
3338
commonsLangVersion=3.11

utbot-framework-api/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ val junit4Version: String by rootProject
44
val sootVersion: String by rootProject
55
val commonsLangVersion: String by rootProject
66
val kotlinLoggingVersion: String? by rootProject
7+
val rdVersion: String? by rootProject
78

89
plugins {
910
id("com.github.johnrengelman.shadow") version "7.1.2"
@@ -13,8 +14,8 @@ dependencies {
1314
api(project(":utbot-core"))
1415
api(project(":utbot-api"))
1516
api(project(":utbot-rd"))
16-
implementation(group ="com.jetbrains.rd", name = "rd-framework", version = "2022.3.1")
17-
implementation(group ="com.jetbrains.rd", name = "rd-core", version = "2022.3.1")
17+
implementation(group ="com.jetbrains.rd", name = "rd-framework", version = rdVersion)
18+
implementation(group ="com.jetbrains.rd", name = "rd-core", version = rdVersion)
1819
implementation("org.unittestbot.soot:soot-utbot-fork:${sootVersion}") {
1920
exclude(group="com.google.guava", module="guava")
2021
}

utbot-framework-api/src/main/kotlin/org/utbot/framework/UtSettings.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@ object UtSettings : AbstractSettings(
264264
DEFAULT_CONCRETE_EXECUTION_TIMEOUT_IN_INSTRUMENTED_PROCESS_MS
265265
)
266266

267-
/**
268-
* Log level for instrumented process.
269-
*/
270-
var instrumentedProcessLogLevel by getEnumProperty(LogLevel.Info)
267+
// region engine process debug
271268

272269
/**
273270
* Path to custom log4j2 configuration file for EngineProcess.
@@ -294,6 +291,9 @@ object UtSettings : AbstractSettings(
294291
*/
295292
var engineProcessDebugSuspendPolicy by getBooleanProperty(true)
296293

294+
// endregion
295+
296+
// region instrumented process debug
297297
/**
298298
* Port which will be used for debugging instrumented process
299299
*/
@@ -319,6 +319,12 @@ object UtSettings : AbstractSettings(
319319
*/
320320
var runInstrumentedProcessWithDebug by getBooleanProperty(false)
321321

322+
/**
323+
* Log level for instrumented process.
324+
*/
325+
var instrumentedProcessLogLevel by getEnumProperty(LogLevel.Info)
326+
// endregion
327+
322328
/**
323329
* Number of branch instructions using for clustering executions in the test minimization phase.
324330
*/

utbot-framework/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ dependencies {
1616
api project(':utbot-framework-api')
1717
api project(':utbot-rd')
1818

19-
implementation group: 'com.jetbrains.rd', name: 'rd-framework', version: '2022.3.1'
20-
implementation group: 'com.jetbrains.rd', name: 'rd-core', version: '2022.3.1'
19+
implementation group: 'com.jetbrains.rd', name: 'rd-framework', version: rdVersion
20+
implementation group: 'com.jetbrains.rd', name: 'rd-core', version: rdVersion
2121

2222
implementation("org.unittestbot.soot:soot-utbot-fork:${sootVersion}") {
2323
exclude group:'com.google.guava', module:'guava'

utbot-framework/src/main/kotlin/org/utbot/framework/process/generated/EngineProcessModel.Generated.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ class EngineProcessModel private constructor(
6666
fun create(lifetime: Lifetime, protocol: IProtocol): EngineProcessModel {
6767
EngineProcessRoot.register(protocol.serializers)
6868

69-
return EngineProcessModel().apply {
70-
identify(protocol.identity, RdId.Null.mix("EngineProcessModel"))
71-
bind(lifetime, protocol, "EngineProcessModel")
72-
}
69+
return EngineProcessModel()
7370
}
7471

7572

utbot-framework/src/main/kotlin/org/utbot/framework/process/generated/RdInstrumenterAdapter.Generated.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ class RdInstrumenterAdapter private constructor(
4242
fun create(lifetime: Lifetime, protocol: IProtocol): RdInstrumenterAdapter {
4343
EngineProcessRoot.register(protocol.serializers)
4444

45-
return RdInstrumenterAdapter().apply {
46-
identify(protocol.identity, RdId.Null.mix("RdInstrumenterAdapter"))
47-
bind(lifetime, protocol, "RdInstrumenterAdapter")
48-
}
45+
return RdInstrumenterAdapter()
4946
}
5047

5148
private val __StringNullableSerializer = FrameworkMarshallers.String.nullable()

utbot-framework/src/main/kotlin/org/utbot/framework/process/generated/RdSourceFindingStrategy.Generated.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ class RdSourceFindingStrategy private constructor(
4444
fun create(lifetime: Lifetime, protocol: IProtocol): RdSourceFindingStrategy {
4545
EngineProcessRoot.register(protocol.serializers)
4646

47-
return RdSourceFindingStrategy().apply {
48-
identify(protocol.identity, RdId.Null.mix("RdSourceFindingStrategy"))
49-
bind(lifetime, protocol, "RdSourceFindingStrategy")
50-
}
47+
return RdSourceFindingStrategy()
5148
}
5249

5350
private val __StringNullableSerializer = FrameworkMarshallers.String.nullable()

utbot-instrumentation-tests/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ dependencies {
99
testImplementation configurations.fetchInstrumentationJar
1010
testImplementation project(':utbot-sample')
1111
testImplementation group: 'org.jacoco', name: 'org.jacoco.report', version: jacocoVersion
12-
implementation group: 'com.jetbrains.rd', name: 'rd-framework', version: '2022.3.1'
13-
implementation group: 'com.jetbrains.rd', name: 'rd-core', version: '2022.3.1'
12+
implementation group: 'com.jetbrains.rd', name: 'rd-framework', version: rdVersion
13+
implementation group: 'com.jetbrains.rd', name: 'rd-core', version: rdVersion
1414
}
1515

1616
processResources {

utbot-instrumentation/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ dependencies {
99
implementation group: 'de.javakaffee', name: 'kryo-serializers', version: kryoSerializersVersion
1010
implementation group: 'io.github.microutils', name: 'kotlin-logging', version: kotlinLoggingVersion
1111

12-
implementation group: 'com.jetbrains.rd', name: 'rd-framework', version: '2022.3.1'
13-
implementation group: 'com.jetbrains.rd', name: 'rd-core', version: '2022.3.1'
12+
implementation group: 'com.jetbrains.rd', name: 'rd-framework', version: rdVersion
13+
implementation group: 'com.jetbrains.rd', name: 'rd-core', version: rdVersion
1414
implementation group: 'net.java.dev.jna', name: 'jna-platform', version: '5.5.0'
1515

1616

utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/rd/InstrumentedProcess.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class InstrumentedProcess private constructor(
5151
throw InstrumentedProcessInstantDeathException()
5252
}
5353
process
54-
}.awaitSignal()
54+
}.awaitProcessReady()
5555

5656
logger.trace("rd process started")
5757

0 commit comments

Comments
 (0)