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

Introduce inter-process communication between utbot and utbot-spring-analyzer #2085

Merged
merged 15 commits into from
Apr 10, 2023

Conversation

IlyaMuravjov
Copy link
Collaborator

@IlyaMuravjov IlyaMuravjov commented Mar 31, 2023

Description

Fixes #2039, #2038

  • Add SpringAnalyzerProcess using RD and corresponding run configurations for debugging
  • Make Spring analyzer process use RD logger (logs are sent to engine process, including logs from Spring itself)
  • Extract common code from SpringAnalyzerProcess, EngineProcess, and InstrumentedProcess
  • Add utbot-spring-analyzer shadow jar to utbot-framework resources

Currently, call to utbot-spring-analyzer is disabled with useSpringAnalyzer flag in GenerateTestsModel since utbot-spring-analyzer API is expected to get changed soon, in particular, instead of receiving .properties and .xml file paths it should receive project path and infer these paths on its own. As of now, empty lists are passed.

Markdown docs are to be updated once the implementation is agreed upon.

How to test

Should not be tested standalone, just as a part of Spring support 1st phase.

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@IlyaMuravjov IlyaMuravjov added ctg-enhancement New feature, improvement or change request comp-rd Issue is related RD comp-spring Issue is related to Spring projects support labels Mar 31, 2023
@IlyaMuravjov IlyaMuravjov changed the title Add SpringAnalyzerProcess with RD Introduce inter-process communication between utbot and utbot-spring-analyzer Mar 31, 2023
@EgorkaKulikov EgorkaKulikov linked an issue Apr 4, 2023 that may be closed by this pull request
Domonion and others added 2 commits April 7, 2023 18:26
Refactoring of ClientProtocolBuilder
@Domonion Domonion self-requested a review April 7, 2023 16:01
@EgorkaKulikov EgorkaKulikov merged commit 9e2eaae into main Apr 10, 2023
@EgorkaKulikov EgorkaKulikov deleted the ilya_m/spring_analyzer_rd branch April 10, 2023 07:34
This was referenced Apr 10, 2023
@alisevych alisevych added this to the Spring Phase 1 milestone Apr 12, 2023
@alisevych alisevych mentioned this pull request Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-rd Issue is related RD comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request
Projects
None yet
4 participants