Skip to content

Fix BytePlus Studio deploy PyPI fallback - #1111

Merged
yaozheng-fang merged 2 commits into
volcengine:mainfrom
FirstayZheng:fix/byteplus-studio-extra-index
Sep 14, 2026
Merged

yaozheng-fang merged 2 commits into
volcengine:mainfrom
FirstayZheng:fix/byteplus-studio-extra-index

Conversation

@FirstayZheng

Copy link
Copy Markdown
Contributor

背景

BytePlus Studio 在不使用 --from-source 部署时,函数在线依赖安装由 VeFaaS 平台侧执行,并使用 BytePlus 内部 PyPI 镜像 https://mirrors.ivolces.com/pypi/simple。当该镜像未同步目标 veadk-python 版本时,指定 --veadk-version 会在依赖安装阶段直接失败;不指定版本时也存在 resolver 选到旧版本、与本地 CLI 生成的 run.sh 不兼容的风险。

改动

  • BytePlus 且非 --from-source 的 Studio 部署路径中,在生成的 requirements.txt 顶部加入 --extra-index-url https://pypi.org/simple。
  • 保持 Volcengine 和 --from-source 部署路径不变。
  • 更新 BytePlus Studio 部署包生成相关测试,覆盖新增的 extra index 行。

验证

  • .venv/bin/pre-commit run --files veadk/cli/cli_frontend.py tests/cli/test_studio_deploy_target.py
  • .venv/bin/python -m pytest tests/cli/test_studio_deploy_target.py -k 'byteplus_wires_provider_to_cloud_engine_and_package or from_source_bundles_unmirrored_dependencies'\n\n## 说明\n\n这个改动用于验证/缓解 BytePlus 内部镜像未同步 veadk-python 最新版本时的部署失败。如果 BytePlus 构建环境无法访问 PyPI,仍需要平台侧同步内部镜像或改为随部署包携带 wheel。

@yaozheng-fang
yaozheng-fang merged commit 4b38239 into volcengine:main Sep 14, 2026
16 checks passed
PolarisCzh pushed a commit to PolarisCzh/veadk-python that referenced this pull request Sep 29, 2026
* fix: add PyPI fallback for BytePlus Studio deploy

* chore: rerun BytePlus Studio deploy checks

Co-authored-by: TRAE CLI <traecli@bytedance.com>
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