Partial deployment (-m): reduce upload overhead and improve dependency error messages
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by tracing the controller's partial deployment handling for module selection and dependency validation; the issue does not name specific files or tests. Check how the selected module and resources are packaged for upload, and where missing dependencies become a generic failure. Done means reducing the upload for a selected module or documenting its unchanged size, and reporting the missing dependency with a useful remedy.
由索引模型根据 Issue 内容生成。
描述
Two quality-of-life improvements for partial deployment via cf deploy -m:
A. Full .mtar uploaded even when deploying a single module
When using -m to deploy one module, the entire .mtar archive is uploaded to the controller. For large MTAs (hundreds of MB with multiple UI, service, and db modules), this adds significant upload time even though only one small module needs processing.
Expected behavior: Either support uploading only the selected module's content (reducing upload time proportionally), or clearly document that upload size is unaffected by -m so developers have correct expectations.
Actual behavior: Full archive is uploaded regardless of -m selection. Deployment time savings from -m are partially negated by the upload step.
B. Dependency errors don't indicate what's missing or how to fix it
When a partial deploy fails because the selected module depends on a resource or module not included in the -m/-r selection and not yet deployed in the space, the error message does not name the missing dependency or suggest the fix.
Expected behavior: Actionable error message, for example:
Module "db-deployer" requires resource "hdi-container" which is not
included in this partial deployment and does not exist in the space.
Add "-r hdi-container" to include it, or deploy it separately first.
Actual behavior: Generic deployment failure message. Developer must manually cross-reference mta.yaml dependencies to figure out what's missing.
Your environment
MultiApps Controller version — SAP BTP managed (latest)
MultiApps CF CLI Plugin version — latest
which CF vendor is used — SAP BTP Cloud Foundry
which backing services are used — hana / hdi-shared (HDI container)
Steps to reproduce
For A (upload overhead):
Build a large MTA (e.g. 200MB+ with multiple UI modules)
mbt build
Deploy only the db module — observe that the full 200MB archive is uploaded
cf deploy myapp.mtar -m db-deployer -r hdi-container
Upload step takes the same time as a full deploy
For B (unclear error):
Attempt partial deploy of db module WITHOUT including the HDI resource
in a fresh space where the HDI container doesn't exist yet
cf deploy myapp.mtar -m db-deployer
Error message does not indicate that "-r hdi-container" is needed
Additional information
SAP's own partial deployment sample warns that "all descriptor validations and dependency checks still run" but doesn't describe the error experience — SAP-samples/cf-mta-examples/partial-build-deploy
The primary use case is iterative HANA Cloud development: a developer changes a single HDI artifact and wants to redeploy only the hdb module without uploading/processing the full MTA.
- 主要语言
- Java
- 星标
- 65
- 派生
- 41
- 平均合并
- 1 天 12 分钟
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudfoundry/multiapps-controller 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 53/100
cloudfoundry/multiapps-controller#1945 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
cloudfoundry/multiapps-controller#1943 ·
维护者通常 1 天内回复
-
[FEATURE REQUEST] Add additional authentication methods for async file upload from secured remote未关闭enhancement
难度 4/5 3-5 天 新手友好度 35/100
cloudfoundry/multiapps-controller#1594 · 4 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
cloudfoundry/multiapps-controller#1409 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 42/100
cloudfoundry/multiapps-controller#1365 ·
维护者通常 1 天内回复
查看 cloudfoundry/multiapps-controller 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
apache/skywalking#14239 ·
维护者通常 1 天内回复
-
account bug exercise lecture modeling programming
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
Re-executed query with IN condition on an index column returns deleted rows (stale IndexCursor)可能已有人在做 @dbusche 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
h2database/h2database#4580 ·
维护者通常 1 天内回复
-
vips-drift
难度 2/5 1-3 小时 新手友好度 74/100
Stirling-Tools/JPDFium#300 ·
维护者通常 1 天内回复
-
hermes-queue
难度 1/5 1-3 小时 新手友好度 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
维护者通常 1 天内回复