wu-sheng commented on PR #13737:
URL: https://github.com/apache/skywalking/pull/13737#issuecomment-4035523755

   ## Generated `.class` Output Locations
   
   All `.class` files are generated automatically during `mvn test` — no 
separate generation step needed.
   
   ### Table 1: DSLClassGeneratorTest (server-starter) — all production scripts
   
   | DSL | Output path | Classes |
   |---|---|---|
   | OAL | `oap-server/server-starter/target/generated-dsl-classes/oal/` | 
1,285 |
   | MAL | `oap-server/server-starter/target/generated-dsl-classes/mal/` | 
1,269 |
   | LAL | `oap-server/server-starter/target/generated-dsl-classes/lal/` | 10 |
   | Hierarchy | 
`oap-server/server-starter/target/generated-dsl-classes/hierarchy/` | 4 |
   | **Total** | | **2,568** |
   
   ```bash
   ./mvnw test -pl oap-server/server-starter -Dtest=DSLClassGeneratorTest
   ```
   
   ### Table 2: Unit tests and v1-v2 checkers
   
   | Maven module | Test class | Output path | Classes | Command |
   |---|---|---|---|---|
   | `log-analyzer` | `LALClassGenerator*Test` | 
`oap-server/analyzer/log-analyzer/target/lal-generated-classes/` | 28 | `./mvnw 
test -pl oap-server/analyzer/log-analyzer 
-Dtest="LALClassGeneratorBasicTest,LALClassGeneratorConditionTest,LALClassGeneratorExtractorTest,LALClassGeneratorDefTest,LALClassGeneratorSinkTest"`
 |
   | `envoy-metrics-receiver-plugin` | `EnvoyAlsLalTest` | 
`oap-server/server-receiver-plugin/envoy-metrics-receiver-plugin/target/lal-generated-classes/`
 | 3 | `./mvnw test -pl 
oap-server/server-receiver-plugin/envoy-metrics-receiver-plugin 
-Dtest=EnvoyAlsLalTest` |
   | `mal-lal-v1-v2-checker` | `LalComparisonTest` | 
`test/script-cases/scripts/lal/test-lal/**/*.generated-classes/` | 35 | `./mvnw 
test -pl test/script-cases/script-runtime-with-groovy/mal-lal-v1-v2-checker 
-Dtest=LalComparisonTest` |
   | `mal-lal-v1-v2-checker` | `MalComparisonTest` | 
`test/script-cases/scripts/mal/**/*.generated-classes/` | 1,324 | `./mvnw test 
-pl test/script-cases/script-runtime-with-groovy/mal-lal-v1-v2-checker 
-Dtest=MalComparisonTest` |
   | `hierarchy-v1-v2-checker` | `HierarchyRuleComparisonTest` | 
`test/script-cases/scripts/hierarchy-rule/*.generated-classes/` | 4 | `./mvnw 
test -pl test/script-cases/script-runtime-with-groovy/hierarchy-v1-v2-checker 
-Dtest=HierarchyRuleComparisonTest` |
   | **Total** | | | **1,394** | |
   
   ### Shared DSL Testing Framework
   
   New utilities in `oap-server/server-testing` 
(`org.apache.skywalking.oap.server.testing.dsl`):
   
   - `DslClassOutput.unitTestDir(dslType)` — standardized 
`target/{dslType}-generated-classes/` for unit tests
   - `DslClassOutput.checkerTestDir(sourceFile)` — standardized 
`{baseName}.generated-classes/` for checkers
   - `LalRuleLoader` / `MalRuleLoader` / `HierarchyRuleLoader` — shared rule 
loading from YAML
   - `LalLogDataBuilder` — shared LogData + proto extraLog building from test 
input maps


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to