Skip to content

Conversation

thangqp
Copy link
Contributor

@thangqp thangqp commented Aug 1, 2025

When a launch is performed with the debug option enabled, a debug directory (i.e., debugDir) is always created. Each computation must then pass this debugDir to the Powsybl layer via its computation parameters, for example see code.

At the Powsybl level (see see code), if debugDir is provided, then at the end of the computation, all files from the working directory are systematically copied into the debug directory. Typically, there is always something to copy (for binary computations, at minimum the result is exported. For Java computations, logs are generated due to the presence of debugDir in the parameters.).

In some cases, the working directory may be empty, for example, if an exception was thrown early in the process, but the debug directory is still always zipped and uploaded to S3.

thangqp added 3 commits August 1, 2025 15:51
Signed-off-by: Thang PHAM <[email protected]>
Signed-off-by: Thang PHAM <[email protected]>
@dbraquart dbraquart self-requested a review August 4, 2025 14:33
Signed-off-by: Thang PHAM <[email protected]>
Copy link

sonarqubecloud bot commented Aug 4, 2025

@AbdelHedhili AbdelHedhili self-requested a review August 4, 2025 16:52
Copy link
Contributor

@dbraquart dbraquart 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
tests: ok, using IntelliJ (note: zip files are not removed in minio ... to be checked later).

@thangqp thangqp merged commit 22ee0ad into main Aug 5, 2025
4 checks passed
@thangqp thangqp deleted the voltage_init_debug_mode branch August 5, 2025 10:48
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.

2 participants