Skip to content

[type:refactor] move bundled SOFA and TARS gateway plugins to store - #7494

Merged
Aias00 merged 3 commits into
apache:masterfrom
cloudbase-ai:cloudbase/migrate-sofa-tars-to-store
Oct 10, 2026
Merged

Aias00 merged 3 commits into
apache:masterfrom
cloudbase-ai:cloudbase/migrate-sofa-tars-to-store

Conversation

@cloudbase-ai

@cloudbase-ai cloudbase-ai commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem And Result

Hand off sofa and tars ownership to apache/shenyu-plugin-store#6, which now includes original tests, fixtures, examples, deployment assets and SQL ownership manifests. Remove active plugin modules and owned assets from core once store delivery is ready. Shared schema DDL, generic APIs and complete historical upgrade SQL remain in core.

Receiving Assets And Validation

Ship db/plugins/<slug>/{h2,mysql,pg,og,ob,oracle}/preflight.sql and install.sql, row manifests, provenance and plugin-specific historical SQL archives. Metadata includes plugin definitions, selector/rule handles, menu resources, permissions and default-namespace relations. Run preflight before installation; repeat installs preserve existing plugin and namespace configuration. Full historical core upgrade files stay in main.

SQL provenance is recorded under the receiving db/plugins directories; original tests, examples and deployment fixtures retain their source layouts.

  • Preserved original SOFA IT: 2 tests passed; original E2E: 10 tests passed with active assertions; original Kubernetes ingress: 1 test passed on a disposable kind cluster.
  • Fresh portable SOFA launcher passed IT2/E2E10 using a pinned slim admin image, mounted store-prepared H2 and gateway class hashes matching the store-built JAR; owned containers were removed.
  • Original SOFA/TARS examples and Compose/Kubernetes deployment assets have store destinations; no original TARS system-test suite was identified.
  • Executed shipped SQL twice on H2, MySQL (default and NO_BACKSLASH_ESCAPES) and PostgreSQL; verified row identities, conflicts and configuration preservation. Native Oracle/OpenGauss/OceanBase execution remains unverified.

Cutover Gates

This PR remains draft. Receiving CI/release validation and externally available store artifacts must pass before merge. Receiving GitHub CI must complete before main cutover. Native Oracle/OpenGauss/OceanBase SQL execution remains a named validation gap. No upstream merge or Maven publication has been performed.

Core does not depend on store artifacts; deployments select optional external starters and apply the matching store metadata scripts.

Roadmap: #7306.

Signed-off-by: cloudbase-ai <22498243+cloudbase-ai@users.noreply.github.com>
Signed-off-by: cloudbase-ai <22498243+cloudbase-ai@users.noreply.github.com>
@Aias00
Aias00 marked this pull request as ready for review October 9, 2026 09:04
Signed-off-by: cloudbase-ai <22498243+cloudbase-ai@users.noreply.github.com>
@cloudbase-ai

Copy link
Copy Markdown
Contributor Author

Investigated https://github.com/apache/shenyu/actions/runs/37777637345/job/113749203873 and pushed merge commit 4a2be6c against master 34ab4c4. That job is RabbitMQ logging E2E: its websocket scenario passed, while the HTTP-sync access-log assertion timed out after 30 seconds. The broker dump also contains system_memory_high_watermark, which suggests broker resource pressure but does not by itself establish the complete timeout cause. RabbitMQ has since moved to plugin-store in #7506; this branch now inherits its removal and CI scheduling fix unchanged, so core no longer schedules the migrated suite. Preserved the upstream Agent Gateway resource after a false rename/delete conflict. Also removed 24 overlooked SOFA/TARS plugin_handle rows from each of PostgreSQL and OpenGauss (48 total), verifying their IDs or explicit duplicate-key manifest entries against store installers. Six-dialect static inspection confirms only SOFA/TARS-owned SQL statements are removed relative to master, with all other SQL preserved and no orphan namespace relations. No active SOFA/TARS gateway module, starter, example or integrated-test POM references remain. Changed POM XML parses and git diff --check passes. No compilation, tests or CI reruns were performed; the new CI result remains unverified.

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Approving. This is a clean, well-documented migration of the bundled SOFA and TARS gateway plugins to external plugin-store starters.

Verification of module wiring

I confirmed the refactor is build-consistent:

  • All 8 aggregator <module> entries removed and their module directories deleted (107 files): shenyu-e2e-case-sofa, shenyu-examples-sofa, shenyu-examples-tars, shenyu-examples-sofa-api, shenyu-examples-sofa-service, shenyu-integrated-test-sofa, shenyu-integrated-test-k8s-ingress-sofa, shenyu-plugin-sofa, shenyu-plugin-tars, shenyu-spring-boot-starter-plugin-sofa, shenyu-spring-boot-starter-plugin-tars.
  • shenyu-bootstrap/pom.xml drops the shenyu-spring-boot-starter-plugin-{sofa,tars}, sofa-rpc-all, sofa-common-tools, and tars-client dependencies.
  • No surviving code references to org.apache.shenyu.plugin.sofa.SofaPlugin / ...tars.TarsPlugin outside the deleted files (only diff --git headers of removed files matched). shenyu-admin/shenyu-web compile clean, which CI confirms.
  • SQL schema files (mysql/oracle/pg/h2/og) and LICENSE/README updated consistently, and the gateway + bootstrap README now state SOFA/Tars are external plugin-store starters.

CI

build + the full shenyu-integrated-test-* matrix and Analyze (java) are green — the reactor compiles end-to-end, which is the strongest possible confirmation that no dangling module/dependency reference remains.

Note (non-blocking)

Downstream users relying on the bundled SOFA/TARS plugins must now depend on the external plugin-store starters. It would help to link the migration guide / store coordinates in the final release changelog so existing deployments aren't surprised.

@Aias00
Aias00 merged commit 8519bc6 into apache:master Oct 10, 2026
51 checks passed
@Aias00 Aias00 added this to the 2.7.2 milestone Nov 13, 2026
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