-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add logs on voltage limits #46
Conversation
Tristan-WorkGH
commented
Mar 22, 2024
•
edited
Loading
edited
- Add logs
- logs tree in serialized JSON in resources like in others analysis servers
- central shared root reporter in analysis context
- also move existing log line where it's calculated to have all logs in one place
- Add missing lombok config, which fix wrong coverage
- Fix resource loading problems with classpath in tests
Dupplicate code
generated code not marked as it for coverage
e9aa164
to
e5c47e8
Compare
e5c47e8
to
fc7e221
Compare
pom.xml
Outdated
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to #51
.mvn/lombok-config-copy.marker
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project was missing .mvn/lombok-config-copy.marker
& lombok.config
, with consequence of very bad coverage with Sonar for example.
lombok.config
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use common lombok config as base
pom.xml
Outdated
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
src/main/java/org/gridsuite/voltageinit/server/service/VoltageInitRunContext.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/voltageinit/service/ReportServiceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/voltageinit/utils/assertions/ReflectiveRepresentation.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/voltageinit/server/VoltageInitParametersTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/voltageinit/server/service/VoltageInitWorkerService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/voltageinit/server/service/VoltageInitRunContext.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
//The optimizer will attach reactive slack variables to all buses | ||
parameters.setReactiveSlackBusesMode(ReactiveSlackBusesMode.ALL); | ||
|
||
long nanoTime = System.nanoTime(); | ||
LOGGER.info("Parameters built in {}s", TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - startTime.getAndSet(nanoTime))); | ||
LOGGER.info("Parameters built in {}s", TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - startTime)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary for this PR, to revert
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/voltageinit/server/VoltageInitParametersTest.java
Show resolved
Hide resolved
Signed-off-by: Tristan Chuine <[email protected]>
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
This reverts commit 5e6bdda.
src/main/java/org/gridsuite/voltageinit/server/service/VoltageInitRunContext.java
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
...n/java/org/gridsuite/voltageinit/server/service/parameters/VoltageInitParametersService.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code OK
Test OK