Skip to content

refactor(registry): prepare the external Eureka cutover - #7960

Open
yangjj-iso wants to merge 3 commits into
apache:masterfrom
yangjj-iso:feat/7596-eureka-cutover
Open

yangjj-iso wants to merge 3 commits into
apache:masterfrom
yangjj-iso:feat/7596-eureka-cutover

Conversation

@yangjj-iso

@yangjj-iso yangjj-iso commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Refs #7596. Receiving extension: apache/shenyu-plugin-store#32.

Move the Eureka registry implementation and its starter to the receiving repository, remove core's default implementation/SDK dependency, and preserve the eureka type, factory, enum/SQL and generic Spring Cloud server-fixture contracts. Examples explicitly select the external artifact. The migration guide covers installation, coordinate ownership and rollback.

Synchronized with master 92d16c2, preserving current release notes and unrelated licensing updates. The default Admin and Bootstrap runtime inventories contain no com.netflix.eureka implementation after the cutover.

Fresh Java 17 validation: the affected Admin/Bootstrap reactor packages with main/test compilation and Checkstyle; 14 registry/SPI/classpath tests and 7 dependency-boundary script tests pass. Verify includes RAT, and a separate root RAT check passes. Previously recorded receiving-extension process evidence remains in the linked PR; it is not a new deployment result for this synchronization.

Ready for formal code review. Merge/release still requires receiving-extension approval, passing deployment CI, compatible published artifacts with one owner per Maven coordinate, and announced release/rollback versions. Local snapshots are not publication. The local Docker Linux engine could not start, so fresh Docker deployment validation is not claimed. #7596 remains open until the coordinated cutover is complete.

CI follow-up (2026-11-06): commit 31d90ba fixes the testSelectMasterErrorCountTracking race from CI run 42014162549. The mock latch is released before the scheduler records the exception, so the test now waits for the observable error count. Fresh Java 21 Admin-reactor verify passed all 9 selected tests and 36 Checkstyle/RAT executions. Hosted main CI run 42217134181 now passes (31 successful jobs and 1 skipped). The remaining Spring Cloud deployment blocker is diagnosed below.

Current-head Spring Cloud IT and E2E fail because the Admin test image lacks the external Eureka SPI provider. In IT run 42217134157/job 127891812451, the backend registers successfully with Eureka, then Admin logs No registry implementation found for registerType 'eureka' and the gateway has no healthy upstream. E2E run 42217134212 reproduces the same missing-provider exception for websocket, http and zookeeper sync (jobs 127894618720, 127894618889 and 127894618906). The test deployment must explicitly install a compatible external provider and its runtime dependency closure. A readiness retry does not solve this missing dependency.

The receiver PR apache/shenyu-plugin-store#32 still has Build (42223170441) and Eureka provider lifecycle (42223170442) workflows awaiting maintainer approval. Passing deployed IT/E2E, receiver approval, compatible publication and announced rollback remain required before merge. The current E2E run reaches the tests; the three Spring Cloud failures above are the actionable deployment blocker.

Current-core receiver validation (2026-11-06): apache/shenyu-plugin-store#32 commit be07c121085f219f46578515156e7a0bb20befdf now pins its workflow to this exact core head (31d90ba, 2.7.3-SNAPSHOT). Fresh local OpenJDK 21/Linux validation passed all 7 receiver unit/SPI/starter tests, 1 real Eureka lifecycle test and 13 complete Admin/gateway process checkpoints. The selected 163-module core reactor builds with Checkstyle/RAT (tests compiled, execution skipped), and default Admin/bootstrap classpaths have no Eureka provider or Netflix Eureka dependencies before installing the external closure. The committed receiver result records the source pair and JAR digest. This establishes local process compatibility with this head; it does not change the failed Docker IT/E2E result or waive external-provider installation, workflow approval, publication and rollback gates.

@yangjj-iso
yangjj-iso marked this pull request as ready for review November 1, 2026 23:22
yangjj-iso added a commit to yangjj-iso/shenyu that referenced this pull request Nov 5, 2026
5 registry classpath tests, 5 example resolver tests and 7 registry dependency checks passed; Checkstyle and RAT passed.

Signed-off-by: redyyang <3202137046@qq.com>

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

Stream Agent analysis

FINAL synthesis of apache/shenyu PR #7960 (head aa42590): 17 partition reviews all PASS with complete_diff true and no blocking findings, covering removal/externalization of Eureka registry. However aggregated CI status shows passed=false (legacy pending) with 10 checks complete. Cross-file build/test verification incomplete.

Evidence

  • Frozen review attachment: 17 child partition reviews (part-0..part-16) all verdict PASS, complete_diff true, blocking_findings empty
  • CI object: check_count=10, complete=true, passed=false, legacy_state='pending'
  • global_complete_diff=true, head_sha=aa425906b97b7ada8ec96f8e44b149c09e0630fa, base_sha=d7e8282b44abe279f9a34602498342af0038976d

Recommended next steps

  • Wait for CI checks to pass (or investigate failing checks)
  • Verify external Eureka repository migration and version alignment
  • Confirm no lingering shenyu-registry-eureka references in remaining build files

Scope: captured diff and GitHub check metadata only; no local tests were executed.

Task: 379491cb-7b45-43e0-af42-83364a37ea48 · Commit: aa425906b97b7ada8ec96f8e44b149c09e0630fa

Review verdict: INCONCLUSIVE

Scope is FINAL synthesis. All child partitions passed with complete diff and no HIGH/CRITICAL findings. Policy requires all_parts_passed true, complete_diff true, and CI passed for a FINAL PASS. The provided CI status indicates passed=false (legacy pending) though complete. Thus cross-file correctness via build/test is unverified; evidence incomplete for PASS. No anchored defects exist to force NEEDS_CHANGES. Therefore verdict is INCONCLUSIVE.

Publication: COMMENT (INCONCLUSIVE_REVIEW)

Review details

All partition diffs reviewed cleanly and the full diff is accounted for, but CI checks have not passed (status pending/failed). Without green CI we cannot certify cross-module compatibility. Recommend waiting for CI and confirming the external Eureka repo migration before merge.

@codecov-commenter

codecov-commenter commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.86%. Comparing base (1748a0e) to head (03d2500).
⚠️ Report is 1361 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #7960       +/-   ##
=============================================
+ Coverage     61.49%   71.86%   +10.37%     
- Complexity     8818    18209     +9391     
=============================================
  Files          1261     1772      +511     
  Lines         39273    68624    +29351     
  Branches       3725     8036     +4311     
=============================================
+ Hits          24151    49318    +25167     
- Misses        12952    15152     +2200     
- Partials       2170     4154     +1984     
Flag Coverage Δ
admin 75.55% <ø> (?)
client-register-registry 54.17% <ø> (?)
core 65.65% <ø> (?)
dist-extra 61.78% <ø> (?)
gateway-runtime 83.70% <ø> (?)
plugin-ai 76.57% <ø> (?)
plugin-base 79.77% <ø> (?)
plugin-logging 76.65% <ø> (?)
plugin-proxy 77.43% <ø> (?)
starters 74.40% <ø> (?)
starters-agent 93.65% <ø> (?)
sync 65.77% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yangjj-iso

Copy link
Copy Markdown
Contributor Author

Pushed 31d90ba to fix the master-selection error-counter test race from CI run 42014162549. The mock latch is released before the scheduler records the exception; the assertion now waits for the observable count. Local Java 21 Admin-reactor verify passed all 9 selected tests and 36 Checkstyle/RAT executions.

Fresh CI has started. This test-only fix does not establish that the previous Spring Cloud no-healthy-upstream failure (https://github.com/apache/shenyu/actions/runs/42014163635/job/127231304995) or E2E dependency-resolution failure (https://github.com/apache/shenyu/actions/runs/42014162627/job/127230389006) is resolved. The description records those remaining checks and retains external publication/rollback gates. Please re-review when the current-head checks complete.

@yangjj-iso
yangjj-iso requested a review from Aias00 November 6, 2026 12:26
@yangjj-iso

Copy link
Copy Markdown
Contributor Author

The current-head Spring Cloud IT failure is now diagnosed: https://github.com/apache/shenyu/actions/runs/42217134157/job/127891812451 . Admin logs show No registry implementation found for registerType 'eureka' (available providers: etcd, kubernetes, nacos, zookeeper). The backend registers with Eureka successfully, but the Admin image no longer bundles that provider, so its selector remains without a healthy upstream. This is a missing external provider in the test deployment, not a route-readiness timing issue.

The companion receiver apache/shenyu-plugin-store#32 is still awaiting approval for both Build (https://github.com/apache/shenyu-plugin-store/actions/runs/39596356283) and Eureka provider lifecycle (https://github.com/apache/shenyu-plugin-store/actions/runs/39596356314). Please approve those workflows so the receiving implementation can be validated. To complete this cutover, the Spring Cloud IT/E2E Admin deployment needs the compatible external provider and its runtime dependencies, while the default core distribution remains without the in-tree provider. Existing publication, coordinate-ownership and rollback gates still apply; adding retries would not fix this deployment.

@yangjj-iso

Copy link
Copy Markdown
Contributor Author

Pushed 2eb4c3a24e463bc8aeaf1289ee9b9e11c654c531 to resolve the merge conflict with master 548bec1f. Both branches had fixed the master-election test race; this merge retains upstream's final wait on the recorded error count and its ZooKeeper integration-test stabilization. The Eureka externalization behavior is unchanged.

Fresh Linux/OpenJDK 21 Admin-reactor verify passed: 36 modules, all 9 ShenyuClusterServiceTest cases, Checkstyle and RAT, with no test failures/errors/skips. Whitespace checks passed. The container needed Byte Buddy loaded at JVM startup because runtime self-attachment is unavailable.

Fresh hosted checks are starting. This test-only synchronization does not resolve the previously diagnosed Spring Cloud IT/E2E deployment issue: the Admin image still needs the compatible external Eureka SPI provider and its runtime dependencies. Receiver workflow approval, publication and deployment/rollback coordination remain required before merge.

@yangjj-iso

yangjj-iso commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Pushed 03d250083814cc21fb0fd1988ce3926c793abf79 to fix the missing external Eureka provider in the retained Spring Cloud test deployments. The previous IT and HTTP/WebSocket/ZooKeeper E2E failures reported No registry implementation found for registerType 'eureka' after the in-tree provider was removed.

The workflows now build receiver commit be07c121085f219f46578515156e7a0bb20befdf from apache/shenyu-plugin-store#32 against the current core artifacts, then install the verified runtime into Admin's ext-lib. The assembly excludes the already shaded transport closure, reuses Admin dependencies by Maven coordinates, and records the source pair and JAR hashes. E2E installation preserves the existing MySQL driver. Default images still omit the external provider.

Local validation on OpenJDK 21:

  • The Admin reactor's 36 modules were installed with Checkstyle/RAT enabled (test execution skipped for this prerequisite build; resumed after local memory limits).
  • Receiver clean verify passed all 5 provider/SPI tests, Checkstyle and RAT.
  • The final 19-JAR extension runtime passed actual ShenYu SPI loading, provider class-origin verification, and discovery over its shaded HTTP client against a loopback Eureka response fixture; shutdown and manifest-checked installation also passed.
  • All 12 assembly/installation regression tests and 28 existing workflow tests passed; shell syntax and whitespace checks passed.

Current-head validation is now complete for 03d250083814cc21fb0fd1988ce3926c793abf79: 90 checks passed, 1 skipped, no failures.

The previously failing Spring Cloud deployments now pass with the explicitly installed external provider:

  • Spring Cloud IT: the pinned receiver's 5 provider/SPI tests and packaged HTTP probe passed, followed by both Spring Cloud integration tests.
  • HTTP E2E, WebSocket E2E, and ZooKeeper E2E: each log confirms the checked runtime installation and passing Spring Cloud routing/data-sync tests (3 case tests plus 14 support tests per shard).

The independent Kubernetes ingress Apache Dubbo check also passed on this run. Compatible external publication, receiver approval, and coordinated full cutover/release evidence remain required; these passing fixture runs do not waive those gates.

Aias00
Aias00 previously approved these changes Nov 12, 2026

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

Stream Agent analysis

#7960 externalizes the Eureka registry: the internal shenyu-registry/shenyu-registry-eureka module (pom, implementation, SPI registration, unit tests) is fully removed along with its reactor module entry, the shenyu-admin SDK dependency, LICENSE entries, and registry README wording. Examples and runtime now consume the external shenyu-registry-eureka artifact via the plugin-store namespace, and core type/factory contracts (DiscoveryMode.EUREKA, DiscoveryTypeEnum 'eureka') are preserved. The dependency-guard script and classpath-compatibility test were updated to drop eureka from in-repo providers.

Evidence

  • Whole pinned diff read completely (84,970 chars, resource_diff has_more=false), covering all 25 changed files including removal of shenyu-registry/shenyu-registry-eureka/* and pom.xml/registry README edits.
  • Head search for 'shenyu-registry-eureka' returns only external scripts, docs/plugin-store-eureka.md and shenyu-examples-sdk-springcloud-consumer/pom.xml; no shenyu-registry-eureka remains and core no longer imports EurekaInstanceRegisterRepository. Example pom uses self-defined shenyu-plugin-store.version (line 33) for the external artifact (line 95).
  • Frozen CI for head 03d2500: 91 checks, 0 failed (build, CodeQL, e2e, integrated-test, e2e-k8s all success). The earlier failed-CI question referenced stale head aa42590 and is not applicable to this item.

Recommended next steps

Scope: captured diff and GitHub check metadata only; no local tests were executed.

Task: aabf4a12-2543-49e2-883e-711e430db87b · Commit: 03d250083814cc21fb0fd1988ce3926c793abf79

Review verdict: PASS

Complete WHOLE_PR diff coverage with no unread pages; all 91 CI checks for the reviewed head passed; the externalization is internally consistent (reactor, SDK dependency, LICENSE, classpath-compatibility test, and dependency-guard script all updated in lockstep) and core Eureka type/factory contracts are preserved. No concrete HIGH/CRITICAL defect found. The prior failed-CI concern belonged to a different/stale head and does not affect this review.

Publication: APPROVE (EXPLICIT_PASS)

@cursor
cursor Bot force-pushed the feat/7596-eureka-cutover branch from 03d2500 to a6a14c0 Compare November 18, 2026 07:38
Build the pinned receiver against current core APIs, verify its packaged SPI and HTTP transport, and mount its checked runtime closure into Admin IT/E2E deployments. Preserve the default images and publication gates.
@cursor
cursor Bot force-pushed the feat/7596-eureka-cutover branch from a6a14c0 to ec47beb Compare November 18, 2026 07:39

This branch has not been deployed

No deployments
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.

3 participants