aglinxinyuan opened a new pull request, #9534:
URL: https://github.com/apache/texera/pull/9534

   ### What changes were proposed in this PR?
   Consolidate repeated production helpers, SCSS mixins, UI components, and 
unit-test fixtures across `common/`, `amber/`, 
`computing-unit-managing-service/`, `file-service/`, 
`workflow-compiling-service/`, and `frontend/` (**+11,925 / −18,234 lines** 
across **258 files**: 243 modified, 15 added; net **−6,309 lines**) spanning 77 
independent, non-overlapping cleanup units without altering user-facing 
behavior or test assertions:
   
   | Area | Units | Files (Mod / New) | Lines (`+` / `−`, Net) | Key 
Extractions |
   | --- | ---: | --- | --- | --- |
   | `common/workflow-operator` | 15 | 81 (79 / 2) | `+2,608 / −4,042` 
(`−1,434`) | `UdfPhysicalOp`, `JoinUtils`, `StandaloneChartCode`, 
`FilterSearchSpecSupport`, `PythonTestSupport`, `GeneratedCodeAssertionChecks`, 
`JdbcSourceOpExecTestHarness`, operator/SQL/viz spec helpers |
   | `common/` (`observability`, `pybuilder`, `workflow-core`) | 4 | 7 (6 / 1) 
| `+401 / −619` (`−218`) | `PyBuilderToolBoxSupport`, `OtelInitSpec`, 
`FileResolverSpec`, `IcebergDocumentSpec` fixtures |
   | `amber` + `common/dao,resource` + `computing-unit-managing-service` | 13 | 
58 (53 / 5) | `+1,942 / −3,147` (`−1,205`) | `DatabaseFlatSpec`, 
`AuthDatabaseSpec`, `ExecutionDatabaseTestSupport`, `BarePhysicalPlanFixture`, 
`RecordingExecutionClient`, `CheckpointHandlerSpecSupport`, 
`RecordStorageTestSupport`, `PveManager`/`PveResource`, dashboard search 
builders, CU/reconfig/replay/DP-thread fixtures |
   | `file-service` & `workflow-compiling-service` | 6 | 10 (9 / 1) | `+859 / 
−1,387` (`−528`) | `ModelResourceTestSupport`, `StagedFileCleanupJobSpec`, 
`ConfigGenerator`, `HarnessSpec`, `PyOpExecHarnessSpec`, 
`WorkflowCompilationResourceSpec` helpers |
   | `frontend` | 39 | 102 (96 / 6) | `+6,115 / −9,039` (`−2,924`) | 
`UserResourceSectionBase`, `_list-item-shared.scss`, `_panel-chrome.scss`, 
`http-service-test-utils.ts`, `computing-unit-test-fixtures.ts`, 
`user-resource-section.test-utils.ts`, 
Hub/admin/dashboard/AI-fix/report/preset/multipart/prompt helpers and 
component/service spec fixtures |
   | **Total** | **77** | **258 (243 / 15)** | **`+11,925 / −18,234` 
(`−6,309`)** | **Zero behavior change** |
   
   <details>
   <summary>Included unit IDs and extracted symbols by module</summary>
   
   - **`common/` (19 units):**
     - `OP-172` (14 files, new `UdfPhysicalOp.scala`), `OP-452` 
(`CartesianProductOpDesc`, `HashJoinOpDesc`, `HashJoinProbeOpExec`, 
`CartesianProductOpExecSpec`), `OP-453` (`StandaloneChartCode`, 
`CandlestickChartOpDesc`, `CarpetPlotOpDesc`, `FilledAreaPlotOpDesc`), `OT-376` 
(`AggregateOpDescSpec`), `OT-511` (`PythonTestSupport` + 8 chart specs), 
`OT-512` (`TypeCastingOpDescSpec`), `OT-513` (`CSVScanSourceOpDescSpec`), 
`OT-514` (`TextInputSourceOpDescSpec`), `OT-515` (`ExtractDateTimeOpDescSpec`), 
`OT-516` (`SklearnOpDescRegistrySpec`), `OT-517` (`AsterixDBSourceOpExecSpec`), 
`OT-518` (`SetRows` + 3 set-op specs), `OT-519` (new `FilterSearchSpecSupport` 
+ regex/substring specs), `OT-521` (`GeneratedCodeAssertions` + 30 viz specs), 
`OT-522` (`JdbcSourceOpExecTestHarness` + MySQL/PostgreSQL specs)
     - `BT-861` (`OtelInitSpec`), `BT-863` (new `PyBuilderToolBoxSupport` + 3 
pybuilder specs), `BT-847` (`FileResolverSpec`), `BT-858` 
(`IcebergDocumentSpec`)
   - **`amber` & platform services (19 units):**
     - `BE-336` (`PveManager`, `PveResource`, `PveResourceSpec`), `BE-774` 
(`FulltextSearchQueryUtils`, `UnifiedResourceSchema`, 
`VersionedResourceSearchQueryBuilder`, `WorkflowSearchQueryBuilder`, 
`FulltextSearchQueryUtilsSpec`), `BT-507` 
(`FriesReconfigurationAlgorithmSpec`), `BT-848` (`RecordingExecutionClient`, 
`ExecutionConsoleServiceSpec`, `ExecutionStatsServiceSpec`), `BT-849` (new 
`ExecutionDatabaseTestSupport` + 5 specs), `BT-850` 
(`EmbeddedControlMessageHandlerSpec`, `RetrieveWorkflowStateHandlerSpec`), 
`BT-852` (new `BarePhysicalPlanFixture` + 6 scheduling/handler specs), `BT-853` 
(new `DatabaseFlatSpec`, `AuthDatabaseSpec` + 20 specs), `BT-857` 
(`DPThreadSpec`), `BT-859` (`ReplayLogGeneratorSpec`), `BT-860` (new 
`CheckpointHandlerSpecSupport` + prepare/finalize handler specs), `BT-862` 
(`SequentialRecordStorageSpec`, `HDFSRecordStorageSpec`, 
`VFSRecordStorageSpec`), `BT-864` (`ExecutionReconfigurationServiceSpec`)
     - `BT-855` (new `ModelResourceTestSupport` + 4 model specs), `BT-856` 
(`StagedFileCleanupJobSpec`), `BT-851` (`PyOpExecHarnessSpec`), `BT-854` 
(`WorkflowCompilationResourceSpec`), `BT-865` (`HarnessSpec`), `OT-520` 
(`ConfigGenerator`)
   - **`frontend` (39 units):**
     - Production/UI (`19` units): `FE-7`, `FE-272`, `FE-460`, `FE-570`, 
`FE-731`, `FE-737`, `FE-738` (new `UserResourceSectionBase`), `FE-739`, 
`FE-740`, `FE-741`, `FE-742`, `FE-743`, `FE-744`, `FE-745`, `FE-746` (new 
`_list-item-shared.scss`), `FE-747` (new `_panel-chrome.scss`), `FE-748`, 
`FE-749`, `FE-750`
     - Test fixtures/specs (`20` units): `FT-249`, `FT-294`, `FT-473`, 
`FT-474`, `FT-475`, `FT-476`, `FT-477`, `FT-479`, `FT-480`, `FT-481`, `FT-482`, 
`FT-483` (new `computing-unit-test-fixtures.ts`), `FT-484` (new 
`user-resource-section.test-utils.ts`), `FT-485`, `FT-487`, `FT-488`, `FT-489`, 
`FT-490`, `FT-491` (new `http-service-test-utils.ts`), `FT-492`
   
   </details>
   
   ### Any related issues, documentation, discussions?
   Closes #9533.
   
   ### How was this PR tested?
   Verified on JDK 17 (`UDF_PYTHON_PATH` configured with Python 3.12, 
`STORAGE_ICEBERG_CATALOG_TYPE=hadoop`, and Docker available for Testcontainers) 
against freshly fetched `origin/main` (`0aea3df361`):
   
   #### 1. Repo-wide Scala formatting, Scalafix, and compilation
   ```bash
   sbt -batch "scalafmtCheckAll" "scalafixAll --check" "Test/compile"
   ```
   - Exited `0` across all subprojects (`Observability`, `PyBuilder`, `DAO`, 
`Resource`, `WorkflowCore`, `WorkflowOperator`, `WorkflowCompiler`, 
`ComputingUnitManagingService`, `FileService`, `WorkflowCompilingService`, 
`WorkflowExecutionService`, and dependents).
   
   #### 2. Scala unit & service test suites
   ```bash
   UDF_PYTHON_PATH="<python3.12>" STORAGE_ICEBERG_CATALOG_TYPE=hadoop sbt 
-batch \
     "Observability/test" "PyBuilder/test" "DAO/test" "Resource/test" \
     "ComputingUnitManagingService/test" \
     "WorkflowCore/testOnly org.apache.texera.amber.storage.FileResolverSpec 
org.apache.texera.amber.core.storage.result.iceberg.IcebergDocumentSpec" \
     "WorkflowCompiler/test"
   ```
   - `Observability/test`: `6` suites, `71` passed, `0` failed
   - `PyBuilder/test`: `5` suites, `189` passed, `0` failed
   - `DAO/test`: `3` suites, `34` passed, `0` failed
   - `Resource/test`: `2` suites, `21` passed, `0` failed
   - `ComputingUnitManagingService/test`: `15` suites, `320` passed, `0` failed
   - `WorkflowCore/testOnly FileResolverSpec IcebergDocumentSpec`: `2` suites, 
`64` passed, `0` failed
   - `WorkflowCompiler/test`: `3` suites, `87` passed, `0` failed
   
   ```bash
   UDF_PYTHON_PATH="<python3.12>" STORAGE_ICEBERG_CATALOG_TYPE=hadoop sbt 
-batch \
     "WorkflowCompilingService/test" "FileService/test"
   ```
   - `WorkflowCompilingService/test`: `9` suites, `137` passed, `0` failed 
(with generated Python proto modules staged)
   - `FileService/test`: `20` suites, `474` passed, `0` failed
   
   ```bash
   # Affected + paired WorkflowOperator specs (93 specs) & 
WorkflowExecutionService specs (44 concrete + 1 trait)
   # Plus separate Windows baseline XML parity check for PveResourceSpec
   sbt -batch "WorkflowOperator/testOnly <93 affected and paired specs>"
   sbt -batch "WorkflowExecutionService/testOnly <44 affected and paired specs 
excluding PveResourceSpec>"
   sbt -batch "WorkflowExecutionService/testOnly 
org.apache.texera.web.resource.pythonvirtualenvironment.PveResourceSpec"
   ```
   - `WorkflowOperator` (`93` affected & paired suites): `93` suites, `1,226` 
passed, `0` failed, `1` pre-existing pending (`BulletChartOpDescSpec` 
`pendingUntilFixed`; JUnit XML matches clean `origin/main` baseline across all 
`12` XML entries, `equal=True`).
   - `WorkflowExecutionService` (`44` clean affected & paired suites + trait 
`AuthDatabaseSpec`): `44` suites, `529` passed, `0` failed.
   - `PveResourceSpec`: `1` suite, `51` run (`45` succeeded, `6` pre-existing 
Windows `bin/python` vs `Scripts/python.exe` baseline failures, `1` canceled) — 
JUnit XML matches clean `origin/main` baseline (`52/52` XML entries, `diffs=0`).
   
   #### 3. Frontend formatting, lint, type-check, build, and Vitest suite
   ```bash
   node ./node_modules/prettier-eslint-cli/dist/index.js --list-different <all 
102 touched frontend files>
   node ./node_modules/eslint/bin/eslint.js <all 90 touched .ts/.html files>
   node ./node_modules/typescript/bin/tsc -p src/tsconfig.app.json --noEmit
   node ./node_modules/typescript/bin/tsc -p src/tsconfig.spec.json --noEmit
   yarn build
   node --max-old-space-size=8192 ./node_modules/@angular/cli/bin/ng.js test 
--watch=false --progress=false
   ```
   - `prettier-eslint --list-different` (`102` files), `eslint` (`90` files), 
`tsc` (`tsconfig.app.json` + `tsconfig.spec.json`), and `yarn build` all exited 
`0`.
   - Full Vitest suite (`255` spec files): `255 passed (255)`, `7,387 passed | 
1 skipped (7,388)`, `0` failed, matching clean `origin/main` baseline JUnit XML 
across all `255` suites / `7,388` testcases (`Missing suites=[]`, `Extra 
suites=[]`, `Case-set diffs=0`).
   
   ### Was this PR authored or co-authored using generative AI tooling?
   Generated-by: Antigravity
   


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