feat(triple): remove old triple IDL mode switch
Description
Fixes #3452
Based on #3451 (remove old triple implementation). With old triple (protocol/dubbo3) removed, the IDLMode compatibility switch used to distinguish IDL / non-IDL mode is no longer needed. This PR removes it and keeps only the minimal mode semantics required by new Triple.
Main changes:
- Remove
IDLMode/IDL/NONIDLconstants and the relatedWithIDL/WithIDLModeoptions from client and server - Stop writing the
IDLModeparam onto the service URL - Simplify
TripleProtocol.Referto always useNewTripleInvoker, and drop the old-tripleNewDubbo3Invokerpath and theisGenericCallhelper - Delete
protocol/triple/dubbo3_invoker.go - Decide IDL vs non-IDL mode by the presence of
ServiceInfo(info != nil) instead of theIDLModeURL param - Update related tests
Opened as a draft because it depends on #3451; the diff currently includes #3451's changes and will be rebased onto
developonce #3451 is merged.
Checklist
- [x] I confirm the target branch is
develop - [x] Code has passed local testing
- [x] I have added tests that prove my fix is effective or that my feature works
Quality Gate passed
Issues
2 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
52.3% Duplication on New Code
Codecov Report
:x: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 54.85%. Comparing base (8b5bbcf) to head (96d33cc).
:warning: Report is 3 commits behind head on develop.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| protocol/triple/server.go | 0.00% | 1 Missing and 1 partial :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## develop #3460 +/- ##
===========================================
+ Coverage 53.57% 54.85% +1.28%
===========================================
Files 460 454 -6
Lines 35182 34799 -383
===========================================
+ Hits 18847 19090 +243
+ Misses 14857 14213 -644
- Partials 1478 1496 +18
:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
ci 失败是因为 sample 还依赖 old triple 同#3451