Skip to content

Conversation

@zbchi
Copy link
Contributor

@zbchi zbchi commented Jan 11, 2026

Summary

Migrate compatibility/polaris/registry/ to registry/polaris/ using the modern API pattern.

Changes

Move from compatibility/polaris/registry/ to registry/polaris/
Add related integrate test.

#958

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the Polaris registry example from the compatibility layer (compatibility/polaris/registry/) to the modern API pattern in registry/polaris/, aligning it with other registry examples like Nacos and Zookeeper.

Changes:

  • Migrated Polaris registry implementation to use modern Dubbo-go v3 API with dubbo.NewInstance() pattern instead of legacy config-based approach
  • Added comprehensive integration tests for Polaris registry functionality
  • Updated documentation to reflect the new location and modern usage patterns

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
start_integrate_test.sh Added registry/polaris to integration test suite
registry/polaris/proto/greet.proto Added protobuf service definition for Greet service
registry/polaris/proto/greet.pb.go Generated protobuf code from greet.proto
registry/polaris/proto/greet.triple.go Generated Triple protocol code for Greet service
registry/polaris/go-server/cmd/server.go Server implementation using modern API with registry.WithPolaris()
registry/polaris/go-client/cmd/client.go Client implementation using modern API with registry.WithPolaris()
registry/polaris/README.md English documentation for running the example
registry/polaris/README-zh.md Chinese documentation for running the example
integrate_test/registry/polaris/tests/integration/registry_test.go Integration test validating Polaris registry functionality
integrate_test/registry/polaris/tests/integration/main_test.go Test setup and client initialization for integration tests
compatibility/polaris/registry/* Removed legacy config-based implementation files
registry/README.md Added link to Polaris registry example
README.md, README_CN.md Removed references to old compatibility/polaris/registry path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

zbchi and others added 2 commits January 11, 2026 13:37
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@AlexStocks
Copy link
Contributor

@marsevilspirit plz take a look.

Copy link
Contributor

Choose a reason for hiding this comment

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

add a language switch btn and rename README-zh to README_CN

中文 | [English](README.md)

Copy link
Contributor

@Alanxtl Alanxtl left a comment

Choose a reason for hiding this comment

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

lgtm

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