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

Add logs on voltage limits #46

Merged
merged 57 commits into from
Apr 10, 2024
Merged

Add logs on voltage limits #46

merged 57 commits into from
Apr 10, 2024

Conversation

Tristan-WorkGH
Copy link
Contributor

@Tristan-WorkGH Tristan-WorkGH commented Mar 22, 2024

  • 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

@Tristan-WorkGH Tristan-WorkGH self-assigned this Mar 22, 2024
pom.xml Outdated
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
Copy link

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to #51

Copy link

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?

Copy link
Contributor Author

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
Copy link

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?

Copy link
Contributor Author

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

replace `@TestFactory` by individual `@Test`
problem of SpringBoot contexts when mixing JUnit4 & JUnit5
clean PR
//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));
Copy link
Contributor

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

Copy link

Copy link
Contributor

@antoinebhs antoinebhs left a 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

@Tristan-WorkGH Tristan-WorkGH merged commit 17f00d4 into main Apr 10, 2024
3 checks passed
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.

4 participants