Cloud commands with --push do not upload referenced libraries
Los mantenedores suelen responder en 1 día
@pcbeingused333 ya está trabajando en esto.
Desde el 14/11/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 335
- Forks
- 172
- Merge medio
- 6 h 54 min
- PR fusionados (30 d)
- 37
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de QuantConnect/lean-cli
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
QuantConnect/lean-cli#792 ·
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
QuantConnect/lean-cli#786 ·
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
QuantConnect/lean-cli#785 ·
Los mantenedores suelen responder en 1 día
-
A partially written live command result aborts polling with JSONDecodeErrorPosiblemente ocupada @pcbeingused333 la tomó hace 3 días. Abiertopriority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
QuantConnect/lean-cli#784 ·
Los mantenedores suelen responder en 1 día
-
Container lookup failures during result polling are masked by UnboundLocalErrorPosiblemente ocupada @pcbeingused333 la tomó hace 5 días. Abiertopriority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
QuantConnect/lean-cli#783 ·
Los mantenedores suelen responder en 1 día
Todos los issues de QuantConnect/lean-cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pimutils/vdirsyncer#1242 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
open-webui/open-webui#35360 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día