Cloud commands with --push do not upload referenced libraries
メンテナーはふだん 1 日以内に返信
@pcbeingused333 がすでに取り組んでいます。
2026年11月14日 から。
評価
調査の方向性
Start in lean/components/cloud/cloud_project_manager.py, where the --push branches call push_projects([local_path]) without libraries, and compare with PushManager.push_project, which discovers project libraries first. Pull request #725 is already open against this issue, so check it before starting. Done means a changed referenced library is uploaded with the main project, and a failed required library upload stops compilation or execution.
索引モデルが issue の本文から書いたものです。
説明
Problem
The cloud commands' --push path uploads the main project but does not upload its referenced local libraries. If a library already has a cloud ID, the main project update succeeds and the command can compile and run against the older cloud library contents without a push failure.
Reproduction
- Create a Python project
Examplereferencing a local Python libraryLibrary/Helpers. - Run
lean cloud push --project Exampleonce so both projects have cloud IDs. - Change a function in
Library/Helperswithout separately pushing it. - Run
lean cloud backtest Example --push.
The resolver uploads Example and sends its existing library ID, but does not upload the changed library. The shared resolver is also used by lean cloud optimize --push and lean cloud live deploy --push.
Evidence
In lean/components/cloud/cloud_project_manager.py, both push branches call push_projects([local_path]) without supplying associated libraries. PushManager.push_projects uses only the supplied project and library lists. By contrast, PushManager.push_project first calls get_project_libraries and passes those libraries to push_projects.
A local regression probe using the real resolver, push manager, project configuration and library reference handling, with a mocked API, reproduced this on master commit f3deb21: the main project had ID 20 and its library had ID 21; resolution returned successfully, projects.update was called only for ID 20, and that update contained libraries=[21]. No update for ID 21 occurred.
Expected behavior
When a cloud command requests a push, referenced local libraries should be synchronized along with the main project, and a required library upload failure should prevent compilation/execution.
Suggestion: reuse the library-discovery path used by push_project and propagate the aggregate push result. Add coverage for changed libraries and failed library uploads. Explicitly running lean cloud push --project Example first is a workaround.
- 主要言語
- Python
- スター
- 335
- フォーク
- 172
- 平均マージ
- 6時間 54分
- マージ済み PR(30日)
- 37
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/lean-cli のほかの issue
-
priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
QuantConnect/lean-cli#792 ·
メンテナーはふだん 1 日以内に返信
-
priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
QuantConnect/lean-cli#786 ·
メンテナーはふだん 1 日以内に返信
-
priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
QuantConnect/lean-cli#785 ·
メンテナーはふだん 1 日以内に返信
-
A partially written live command result aborts polling with JSONDecodeError対応中かも @pcbeingused333 が 3 日前に担当しました。 オープンpriority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
QuantConnect/lean-cli#784 ·
メンテナーはふだん 1 日以内に返信
-
Container lookup failures during result polling are masked by UnboundLocalError対応中かも @pcbeingused333 が 5 日前に担当しました。 オープンpriority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
QuantConnect/lean-cli#783 ·
メンテナーはふだん 1 日以内に返信
QuantConnect/lean-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pimutils/vdirsyncer#1242 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
open-webui/open-webui#35360 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信