Repository navigation
[type:refactor] move bundled SOFA and TARS gateway plugins to store - #7494
Conversation
Signed-off-by: cloudbase-ai <22498243+cloudbase-ai@users.noreply.github.com>
Signed-off-by: cloudbase-ai <22498243+cloudbase-ai@users.noreply.github.com>
Signed-off-by: cloudbase-ai <22498243+cloudbase-ai@users.noreply.github.com>
|
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
left a comment
There was a problem hiding this comment.
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.xmldrops theshenyu-spring-boot-starter-plugin-{sofa,tars},sofa-rpc-all,sofa-common-tools, andtars-clientdependencies.- No surviving code references to
org.apache.shenyu.plugin.sofa.SofaPlugin/...tars.TarsPluginoutside the deleted files (onlydiff --githeaders of removed files matched).shenyu-admin/shenyu-webcompile clean, which CI confirms. - SQL schema files (mysql/oracle/pg/h2/og) and
LICENSE/READMEupdated 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.
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.sqlandinstall.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.
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.