Skip to content

feat: 蓝鲸插件框架集成蓝鲸可编程网关调整 && 插件部署优化功能#117

Merged
dengyh merged 21 commits intoTencentBlueKing:masterfrom
kaik-bit:development
Jan 20, 2026
Merged

feat: 蓝鲸插件框架集成蓝鲸可编程网关调整 && 插件部署优化功能#117
dengyh merged 21 commits intoTencentBlueKing:masterfrom
kaik-bit:development

Conversation

@kaik-bit
Copy link
Collaborator

No description provided.

@tencentblueking-adm
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Xinkai Yi seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@539cbb7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...bk_plugin_framework/services/bpf_service/models.py 90.90% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #117   +/-   ##
=========================================
  Coverage          ?   90.97%           
=========================================
  Files             ?       38           
  Lines             ?     1330           
  Branches          ?        0           
=========================================
  Hits              ?     1210           
  Misses            ?      120           
  Partials          ?        0           
Files with missing lines Coverage Δ
...ugin-framework/bk_plugin_framework/kit/__init__.py 60.00% <ø> (ø)
...plugin-framework/bk_plugin_framework/kit/plugin.py 87.09% <100.00%> (ø)
..._plugin_framework/runtime/callback/celery/tasks.py 96.00% <100.00%> (ø)
...-framework/bk_plugin_framework/runtime/executor.py 86.66% <100.00%> (ø)
...bk_plugin_framework/services/bpf_service/models.py 90.90% <90.90%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 539cbb7...10fc9de. Read the comment docs.

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

port: 80
- name: schedule
procCommand: celery worker -A blueapps.core.celery -P threads -n schedule_worker@%h -c 500 -Q plugin_schedule,plugin_callback,schedule_delete -l INFO
procCommand: celery worker -A blueapps.core.celery -P prefork -n schedule_worker@%h -c 50 -Q plugin_schedule,plugin_callback,schedule_delete -l INFO --max-tasks-per-child=1000 --time-limit=300
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里为啥需要改成prefork模式,这个应该跟celery重启的问题没关系吧?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个应该我之前测试没cherry-pick 过来,已经更正

procCommand: celery worker -A blueapps.core.celery -P prefork -n schedule_worker@%h -c 50 -Q plugin_schedule,plugin_callback,schedule_delete -l INFO --max-tasks-per-child=1000 --time-limit=300
- name: beat
procCommand: celery beat -A blueapps.core.celery -l INFO
procCommand: celery beat -A blueapps.core.celery -l INFO --pidfile=/tmp/celerybeat.pid --schedule=/tmp/celerybeat-schedule
Copy link
Collaborator

Choose a reason for hiding this comment

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

确认下这里是否也是必须改的

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已更正

# while deploy app on staging env, it would sync to the stage=stag of the gateway
# while deploy app on production env, it would sync to the stage=prod of the gateway
BK_APIGW_STAGE_NAME = bkpaas_environment
BK_APIGW_STAGE_DESCRIPTION = "生产环境" if bkpaas_environment == "prod" else "预发布环境"
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里最好参考blueapps里的方式,把不同环境下同一个环境变量,用prod.py、stag.py的方式来动态引入

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已修改

@dengyh dengyh merged commit e1134fb into TencentBlueKing:master Jan 20, 2026
4 of 5 checks passed
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.

4 participants