Cloud commands with --push do not upload referenced libraries
Maintainer antworten meist innerhalb von 1 Tag
@pcbeingused333 arbeitet bereits daran.
Seit 14.11.2026.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 335
- Forks
- 172
- Ø Merge
- 6 Std. 54 Min.
- Gemergte PRs (30 T.)
- 37
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus QuantConnect/lean-cli
-
priority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
QuantConnect/lean-cli#792 ·
Maintainer antworten meist innerhalb von 1 Tag
-
priority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
QuantConnect/lean-cli#786 ·
Maintainer antworten meist innerhalb von 1 Tag
-
priority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
QuantConnect/lean-cli#785 ·
Maintainer antworten meist innerhalb von 1 Tag
-
A partially written live command result aborts polling with JSONDecodeErrorEvtl. vergeben @pcbeingused333 hat das vor 3 Tagen übernommen. Offenpriority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
QuantConnect/lean-cli#784 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Container lookup failures during result polling are masked by UnboundLocalErrorEvtl. vergeben @pcbeingused333 hat das vor 5 Tagen übernommen. Offenpriority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
QuantConnect/lean-cli#783 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in QuantConnect/lean-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
sagemathinc/sagebrush#2768 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
vllm-project/vllm-ascend#23791 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
briandconnelly/context-audit#33 ·
Maintainer antworten meist innerhalb von 1 Tag