Skip to content

Rd & logs refactoring #1399

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 7 commits into from
Nov 26, 2022
Merged

Rd & logs refactoring #1399

merged 7 commits into from
Nov 26, 2022

Conversation

Domonion
Copy link
Collaborator

@Domonion Domonion commented Nov 18, 2022

Description

Multiple refactorings and enhacements for process starting.
Removed UtSettings.logConcreteExecutionErrors and UtSettings.engineProcessLogLevel switches.
Logs for engine and concrete executor processes are always enabled.
Switched log configuration to utbot-intellij/log4j2.xml.
Use UtSettings#getIdeaProcessLogConfigFile from ~/.utbot/settings.properties to configure logs for engine and concrete executor processes without rebuilding plugin.

Enabling suspend and port choosing by utsettings.
Run configurations for debugging.
Instant process death detection.
Orphan processes termination system.
Some text loading optimization.
ChildProcess -> InstrumentedProcess.
Rd-based UtSettings for InstrumentedProcess.

partially solves #1365
fix #1427

Type of Change

  • Refactoring (typos and non-functional changes)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

CI

@sergeypospelov sergeypospelov self-requested a review November 23, 2022 07:00
Copy link
Member

@sergeypospelov sergeypospelov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to missclick :)

@Domonion
Copy link
Collaborator Author

@denis-fokin @sergeypospelov @olganaumenko please, read design docs

@Domonion Domonion force-pushed the kononov-rd-refactoring-1 branch 2 times, most recently from da2882e to d211adf Compare November 25, 2022 15:09
Multiple refactorings and enhacements for process starting.
Removed UtSettings.logConcreteExecutionErrors and UtSettings.engineProcessLogLevel switches.
Logs for engine and concrete executor processes are always enabled.
Switched log configuration to utbot-intellij/log4j2.xml.
Use UtSettings#getIdeaProcessLogConfigFile from ~/.utbot/settings.properties to configure logs for engine and concrete executor processes without rebuilding plugin.
Enabling suspend and port choosing by utsettings
Run configurations for debugging
Instant process death detection
Orphan processes termination system
Some text loading optimization
ChildProcess -> InstrumentedProcess
Rd-based UtSettings for InstrumentedProcess
Rd version bump, model regeneration typos and small adjustments
Rewriting design docs for inter process debugging and rd.
Completely new design doc go inter process logging
review fix
review fix
@Domonion Domonion force-pushed the kononov-rd-refactoring-1 branch from d211adf to c7b4b9b Compare November 25, 2022 15:11
debug run configurations fix
@Domonion Domonion enabled auto-merge (squash) November 25, 2022 16:43
UtBot consists of 3 different processes:
1. `IDEA process` - the one where plugin part executes. Also can be called `plugin process`, `IDE process`.
2. `Engine process` - process where unit test generation engine executes.
3. `InstrumentedProces` - process where concrete execution takes place.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. `InstrumentedProces` - process where concrete execution takes place.
3. `InstrumentedProcess` - process where concrete execution takes place.

@Domonion Domonion merged commit 46cfad6 into main Nov 26, 2022
@Domonion Domonion deleted the kononov-rd-refactoring-1 branch November 26, 2022 03:10
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.

Rd refactoring
4 participants