Cloud commands with --push do not upload referenced libraries

オープン
#719 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pcbeingused333 がすでに取り組んでいます。

2026年11月14日 から。

  • #725 @pcbeingused333 による — オープン
  • #749 @quantconnect-kronos による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
cli, cloud

調査の方向性

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 の本文から書いたものです。

説明

priority:P1

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

  1. Create a Python project Example referencing a local Python library Library/Helpers.
  2. Run lean cloud push --project Example once so both projects have cloud IDs.
  3. Change a function in Library/Helpers without separately pushing it.
  4. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QuantConnect/lean-cli のほかの issue

QuantConnect/lean-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。