SAP-samples / SAP-samples/codejam-code-based-agents
Python track: exercise 08's manifest.yml "command" field isn't reliably honored on newer CF CLI versions — needs a Procfile
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 54
- 派生
- 36
- PR 合并指标
- 30 天内没有已合并 PR
描述
Summary
08-deploy-agent-to-cf.md instructs learners to set the start command via manifest.yml's command: field only:
```yaml
command: python -m uvicorn server:app --host 0.0.0.0 --port $PORT --workers 1
No Procfile is mentioned anywhere in the exercise.
Effect
On cf push (reproduced on cf.exe version 8.6.1+b5a352a68.2023-02-27), staging fails with:
No start command specified by buildpack or via Procfile.
App will not start unless a command is provided at runtime.
despite manifest.yml's command: field being present and correctly formatted, exactly as the exercise instructs.
This appears to be a known behavior with CF CLI v7+/v8 — the command: manifest field is documented to work, but isn't always reliably honored during staging in practice. A Procfile is the more reliable mechanism. (This may be a Cloud Foundry platform/CLI-version issue rather than something specific to this repo's code — flagging here since it's a real, reproducible failure for anyone following the exercise as written, and the resulting error message gives no indication that a Procfile is the fix.)
Suggested fix
Add a Procfile (no file extension) alongside manifest.yml in the exercise instructions:
web: python -m uvicorn server:app --host 0.0.0.0 --port $PORT --workers 1
Safe to include alongside the existing command: field in manifest.yml — redundant, not conflicting, and covers CF CLI versions/configurations where the manifest field alone isn't sufficient.
Environment
Reproduced on a personal SAP AI Core tenant, Python (CrewAI + LiteLLM) track, cf.exe version 8.6.1+b5a352a68.2023-02-27.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 08-deploy-agent-to-cf.md 和练习的 manifest.yml 开始,然后检查部署说明当前如何指定启动命令。在 manifest.yml 旁添加提到的 Procfile,其中包含文档中记录的 web 命令,保留现有的 manifest 设置,并验证 cf push 提供启动命令且应用能够启动。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cloud, documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 72/100