Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports repeated installation of plugins, using '#' to separate plugin copies, plugin services and configured Key information to carry class loaders #1335

Conversation

luanwenfei-venus
Copy link
Collaborator

@luanwenfei-venus luanwenfei-venus commented Oct 17, 2023

【Fix issue】#1332

[Modified content] 1. Modified the way the plug-in manager obtains the plug-in directory when installing plug-ins, and truncated the plug-in name through the copy separator 2. Modified the method of plug-in service manager to identify plug-in services, adding a new class loader to the identification content 3 , Modified the method of plug-in configuration manager to identify plug-in configuration, and added a new class loader to the identification content.

[Use case description] New use case 1. Static installation of multi-copy plug-ins 2. Dynamic installation of multi-copy plug-ins 3. Install copy plug-ins to test plug-in service differentiation 4. Install copy plug-ins to test plug-in configuration differentiation 5. Install copy plug-ins to test bytecode capabilities Take effect

[Self-test situation] 1. The local static check has passed; 2. Baseline use case integration test, new use cases are manually covered

[Scope of impact] 1. Is there any impact on users' use (such as API modifications and startup parameter modifications)? 2. Is it necessary to update some documents (such as user manuals)

@luanwenfei-venus luanwenfei-venus added kind/enhancement Issues or PRs releated to sermant enhancement area/framework Issues or PRs releated to sermant core service labels Oct 17, 2023
@luanwenfei-venus luanwenfei-venus added this to the v1.3.0 milestone Oct 17, 2023
@luanwenfei-venus luanwenfei-venus force-pushed the develop_issue_1332_enhancement branch 2 times, most recently from 19557eb to cdc1f25 Compare October 18, 2023 09:43
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (6b19b6b) 42.29% compared to head (fb279c6) 42.24%.
Report is 4 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #1335      +/-   ##
=============================================
- Coverage      42.29%   42.24%   -0.05%     
+ Complexity      3274     3272       -2     
=============================================
  Files            823      824       +1     
  Lines          18303    18309       +6     
  Branches        2017     2017              
=============================================
- Hits            7741     7735       -6     
- Misses          9588     9601      +13     
+ Partials         974      973       -1     
Flag Coverage Δ
unittests 42.24% <16.12%> (-0.05%) ⬇️

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

Files Coverage Δ
...aweicloud/sermant/core/utils/KeyGenerateUtils.java 100.00% <100.00%> (ø)
...mant/core/plugin/service/PluginServiceManager.java 10.52% <0.00%> (ø)
...huaweicloud/sermant/core/plugin/PluginManager.java 0.00% <0.00%> (ø)
...aweicloud/sermant/core/service/ServiceManager.java 7.81% <33.33%> (+1.46%) ⬆️
...mant/core/plugin/common/PluginSchemaValidator.java 0.00% <0.00%> (ø)
...ermant/core/plugin/config/PluginConfigManager.java 12.12% <14.28%> (+2.12%) ⬆️

... and 19 files with indirect coverage changes

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

@Sherlockhan Sherlockhan merged commit e1aafb3 into sermant-io:develop Oct 26, 2023
74 checks passed
@kkf1 kkf1 changed the title 支持重复安装插件,通过'#'分隔插件副本,插件服务和配置的Key信息携带类加载器 Supports repeated installation of plugins, using '#' to separate plugin copies, plugin services and configured Key information to carry class loaders Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/framework Issues or PRs releated to sermant core service kind/enhancement Issues or PRs releated to sermant enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants