Skip to content

[codex] add plugin base image deployment acceleration#131

Merged
dengyh merged 6 commits into
TencentBlueKing:masterfrom
dengyh:feature/plugin-base-image-deployment-acceleration
Jun 30, 2026
Merged

[codex] add plugin base image deployment acceleration#131
dengyh merged 6 commits into
TencentBlueKing:masterfrom
dengyh:feature/plugin-base-image-deployment-acceleration

Conversation

@dengyh

@dengyh dengyh commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a reusable plugin Python base image Dockerfile and BK-CI build guidance.
  • Add cookiecutter template Docker support with a fixed base image tag and custom_requirements.txt for incremental dependencies.
  • Add static tests for base image/template contracts and framework-version-to-image-tag consistency.

Validation

  • python -m pytest bk-plugin-framework/tests/template/test_docker_template.py -q
  • docker build -f docker/base/Dockerfile -t bk-plugin-python-base:2.3.14 .
  • docker run --rm bk-plugin-python-base:2.3.14 python -c "import bk_plugin_framework, bk_plugin_runtime"
  • cookiecutter render check: skipped locally because cookiecutter is not installed.

Notes

  • Base image tag follows the bk-plugin-framework version, e.g. bk-plugin-python-base:2.3.14.
  • Docker-based plugin custom dependencies should go in custom_requirements.txt; requirements.txt remains the default dependency source for non-Docker flows and the base image build.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@ae19568). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #131   +/-   ##
=========================================
  Coverage          ?   91.59%           
=========================================
  Files             ?       39           
  Lines             ?     1428           
  Branches          ?        0           
=========================================
  Hits              ?     1308           
  Misses            ?      120           
  Partials          ?        0           
Files with missing lines Coverage Δ
...n-framework/tests/template/test_docker_template.py 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae19568...a73c6f8. 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.

@dengyh dengyh marked this pull request as ready for review June 30, 2026 11:12
@dengyh dengyh merged commit 4708558 into TencentBlueKing:master Jun 30, 2026
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.

2 participants