Compare seatunnel plugin baseline

From LeonYoah/SeaTunnelX · View interactive version

Compare seatunnel plugin baseline is an AI agent skill from the GitHub repository LeonYoah/SeaTunnelX. End-to-end procedural workflow for upgrading SeaTunnel versions across connector baseline seed, stx-java-proxy engine adapters, Go backend, and frontend UI.

How to use this skill

Skill file

SeaTunnel Version Upgrade & Baseline Adaptation Workflow

Use this skill when upgrading SeaTunnel version support in SeaTunnelX (e.g. adapting from 2.3.x to 3.0.x or minor releases like 3.0.0 GA / 3.1.0).

Upgrading SeaTunnel support is not a simple script execution; upstream releases frequently introduce structural changes, dependency reshuffles, and engine protocol updates. This skill defines a flexible, human-in-the-loop, multi-layer procedural workflow.


Architecture Scope & Upgrade Layers

When adapting a new SeaTunnel version, inspect and synchronize four interconnected layers:

┌────────────────────────────────────────────────────────────────────────┐
│ Layer 1: Connector Baseline Seed (seatunnel-plugins.json)              │
│ - Connector catalog detection (connectors-v2, plugin-mapping)         │
│ - Provided dependency extraction & JDBC dialect driver profiles       │
├────────────────────────────────────────────────────────────────────────┤
│ Layer 2: Java Proxy Sidecar (tools/stx-java-proxy)                     │
│ - EngineAdapter version policy & dynamic version routing               │
│ - Checkpoint storage deserialization & incremental state compatibility │
│ - WebUI DAG preview & SPI plugin classloader compatibility            │
├────────────────────────────────────────────────────────────────────────┤
│ Layer 3: Go Backend Engine Client (internal/apps/sync)                 │
│ - REST API versioning (Zeta REST V1 vs REST V2)                        │
│ - Multi-table DAG vertex array/map format compatibility               │
│ - Table-level metrics aggregation (TableSourceReceived/TableSinkWrite) │
├────────────────────────────────────────────────────────────────────────┤
│ Layer 4: Frontend WebUI & Sync Studio (frontend/components/.../sync)   │
│ - WebUiDagPreview vertex normalization & multi-table edge rendering    │
│ - Job runs summary metrics with multi-table capsule & DAG drawer       │
└────────────────────────────────────────────────────────────────────────┘

Step-by-Step Procedure

Phase 1: Target Version & Source Code Recon

  1. Locate Upstream SeaTunnel Source:

```bash

git -C /path/to/seatunnel fetch --tags

git -C /path/to/seatunnel checkout <target-tag-or-branch>

```

  1. Confirm Baseline vs Target:

Phase 2: Layer 1 — Connector Catalog & Dependency Baseline

Do not use rigid static scripts. Perform dynamic comparison via shell / git commands:

  1. Connector Catalog Diff:

```bash

# List all connectors in target version

ls -d /path/to/seatunnel/seatunnel-connectors-v2/connector-*

# Inspect connector mapping definitions

cat /path/to/seatunnel/plugin-mapping.properties

```

  1. Dependency & provided Scope Inspection:
  1. JDBC Dialect & Driver Profiles:

```bash

ls /path/to/seatunnel/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/

```

  1. Connection Probing Capability Classification (测试连接能力归类):
  1. Prepare Human Review Proposal for Baseline Seed:

Phase 3: Layer 2 — Java Proxy Sidecar (`stx-java-proxy`) Adaptation

SeaTunnelX uses tools/stx-java-proxy as an out-of-process Java sidecar to validate configs, preview DAGs, and inspect checkpoint / IMap storage. When SeaTunnel upgrades, audit stx-java-proxy:

  1. Dependency Audit (tools/stx-java-proxy/pom.xml):
  1. Engine Adapter & Version Routing (io.github.leonyoah.stx.proxy.adapter):
  1. Checkpoint Storage Deserialization (SeaTunnel30EngineAdapter.java):
  1. DAG Preview & SaveMode Compatibility (WebUiDagPreviewService.java):
  1. Java Proxy Verification:

```bash

mvn test -Dtest=SeaTunnelEngineAdapterRegistryTest,EngineVersionTest,EngineAdapterVersionPolicyTest -f tools/stx-java-proxy/pom.xml

```


Phase 4: Layer 3 & 4 — Go Backend & Frontend WebUI Sync

  1. Go Engine Client (internal/apps/sync/engine_client.go):

```bash

go test -v ./internal/apps/plugin/... ./internal/apps/sync/...

```

  1. Frontend DAG & Metrics (frontend/components/common/sync/):

```bash

pnpm exec tsc --noEmit

pnpm test

```

(Note: strictly avoid pnpm build)


Phase 5: Human Review Checkpoint

Never apply version upgrades silently. Always present a concise review table to the user:

### SeaTunnel Version Upgrade Review (Baseline: <base> -> Target: <target>)

#### 1. Connector Catalog Changes
| Connector | Change Type | Mapping | Probing Tier | Recommended Action |
| --- | --- | --- | --- | --- |
| connector-xyz | Added | connector-xyz | Tier 2 (Catalog) | Add to catalog, default_not_required |

#### 2. JDBC Profile Changes
| Database | Driver Coordinates | Dialect Supported | Recommended Action |
| --- | --- | --- | --- |
| yashandb | com.yashandb:yashandb-jdbc:1.10.7 | Yes | Add profile to connector-jdbc |

#### 3. Java Proxy (stx-java-proxy) Compatibility
| Component | Status | Required Change |
| --- | --- | --- |
| EngineAdapter | Compatible (3.0.x fallback) | None / Add mapping rule |
| Checkpoint Storage | Audited | Incremental & table-level state verified |
| DAG Preview | Verified | Multi-table vertex format supported |

#### 4. Backend & Frontend Compatibility
| Item | Verification Result |
| --- | --- |
| Go REST V2 Client | Verified with 3.0 array vertex & table metrics |
| WebUI DAG & Metrics | Verified with multi-table badge and DAG view |

Wait for explicit user approval before applying changes to seatunnel-plugins.json or proxy source code.


Phase 6: Application & Post-Upgrade Quality Gate

Once approved by the user:

  1. Apply baseline edits to internal/apps/plugin/seed/seatunnel-plugins.json.
  2. Apply proxy edits in tools/stx-java-proxy if new adapter or version policy rules are needed.
  3. Run Full Verification:
  1. Git Commit Guidelines:
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.