-
Notifications
You must be signed in to change notification settings - Fork 0
Add debug mode to process execution #40
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
base: main
Are you sure you want to change the base?
Changes from all commits
d531a4e
c424ca0
d52722d
4ccd728
76f4b47
1656f57
ffd04df
be0f7d6
37eaf0c
17f1733
a0d8419
ed55f03
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| /** | ||
| * Copyright (c) 2026, RTE (http://www.rte-france.com) | ||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| */ | ||
| package org.gridsuite.monitor.commons.utils; | ||
|
|
||
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * @author Kevin Le Saulnier <kevin.le-saulnier at rte-france.com> | ||
| */ | ||
| @SuppressWarnings("checkstyle:HideUtilityClassConstructor") | ||
| public class S3PathUtils { | ||
| public static final String S3_DELIMITER = "/"; | ||
|
|
||
| /** | ||
| * Builds root path used to build debug file location | ||
| * @param executionEnvName | ||
| * @param processType | ||
| * @param executionId | ||
| * @return {executionEnvName}_debug/process/{processType}/{executionId} | ||
| */ | ||
| public static String toDebugLocation(String executionEnvName, String processType, UUID executionId) { | ||
| return String.join(S3_DELIMITER, executionEnvName + "_debug", "process", processType, executionId.toString()); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -55,6 +55,12 @@ public class ProcessExecutionEntity { | |||||||||
| @Column | ||||||||||
| private String userId; | ||||||||||
|
|
||||||||||
| @Column | ||||||||||
| private boolean isDebug; | ||||||||||
|
Comment on lines
+58
to
+59
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lombok With Lombok, a primitive Proposed fix `@Column`
- private boolean isDebug;
+ private boolean debug;This will produce 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| @Column | ||||||||||
| private String debugFileLocation; | ||||||||||
|
|
||||||||||
| @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER) | ||||||||||
| @JoinColumn(name = "execution_id", foreignKey = @ForeignKey(name = "processExecutionStep_processExecution_fk")) | ||||||||||
| @OrderBy("stepOrder ASC") | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
| <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> | ||
| <changeSet author="lesaulnierkev (generated)" id="1770884531328-1"> | ||
| <addColumn tableName="process_execution"> | ||
| <column name="debug_file_location" type="varchar(255)"/> | ||
| </addColumn> | ||
| </changeSet> | ||
| <changeSet author="lesaulnierkev (generated)" id="1770884531328-2"> | ||
| <addColumn tableName="process_execution"> | ||
| <column name="is_debug" type="boolean" defaultValueBoolean="false"> | ||
| <constraints nullable="false"/> | ||
| </column> | ||
| </addColumn> | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </changeSet> | ||
| </databaseChangeLog> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
|
|
||
| <properties> | ||
| <network-modification.version>0.61.0</network-modification.version> | ||
| <spring-cloud-aws-starter-s3>3.3.1</spring-cloud-aws-starter-s3> | ||
| </properties> | ||
|
|
||
| <build> | ||
|
|
@@ -108,6 +109,11 @@ | |
| <groupId>com.powsybl</groupId> | ||
| <artifactId>powsybl-case-datasource-client</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.awspring.cloud</groupId> | ||
| <artifactId>spring-cloud-aws-starter-s3</artifactId> | ||
| <version>${spring-cloud-aws-starter-s3}</version> | ||
| </dependency> | ||
|
Comment on lines
+112
to
+116
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat monitor-worker-server/pom.xml | head -150Repository: gridsuite/monitor-core Length of output: 5736 🌐 Web query:
💡 Result: Artifact coordinates on Maven Central:
Maven dependency <dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-starter-s3</artifactId>
<version>3.3.1</version>
</dependency>[1] Maven Central pages [2][3] All versions directory (repo1) [3] Sources: [1] [2] [3] 🏁 Script executed: rg "spring-cloud-aws-starter-s3" monitor-worker-server/pom.xml -A 2 -B 2Repository: gridsuite/monitor-core Length of output: 473 🏁 Script executed: rg "spring.boot" monitor-worker-server/pom.xml -iRepository: gridsuite/monitor-core Length of output: 388 🏁 Script executed: find . -name "pom.xml" -type f | grep -E "(parent|root|pom\.xml$)" | head -20Repository: gridsuite/monitor-core Length of output: 158 🏁 Script executed: cat pom.xml | grep -A 20 "spring.boot\|Spring Boot" | head -50Repository: gridsuite/monitor-core Length of output: 48 🏁 Script executed: rg "spring-boot" pom.xml -i --max-count 5Repository: gridsuite/monitor-core Length of output: 48 🏁 Script executed: cat pom.xml | head -200Repository: gridsuite/monitor-core Length of output: 3477 🏁 Script executed: rg "spring-boot\|spring.boot" . -t xml --max-count 20Repository: gridsuite/monitor-core Length of output: 48 🌐 Web query:
💡 Result:
So you should use Spring Boot 3.4.* with Sources Citations: 🌐 Web query:
💡 Result:
Citations: 🏁 Script executed: rg "spring.boot.version\|<version>" monitor-worker-server/pom.xml | head -20Repository: gridsuite/monitor-core Length of output: 48 Version 3.3.1 is incompatible with the project's Spring Boot 3.3.3. Spring Cloud AWS 3.3.1 requires Spring Boot 3.4.x. For Spring Boot 3.3.3, use 🤖 Prompt for AI Agents |
||
|
|
||
| <!-- Runtime dependencies --> | ||
| <dependency> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.