A missing configured encryption key leaves a newly created cloud project after push fails

Aberta
#765 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
73/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
cli, cloud

Direção de pesquisa

Start by tracing push_projects and the project/config manager flow that creates a cloud project and saves its cloud-id; then inspect where encrypted files are prepared and the configured key path is opened. Add a regression test for a first push with a deleted key file, using the real managers and mocked API described in the issue. Done means the push fails without creating or linking a cloud project, while a successful configured-key push still works.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

priority:P2

Observed

A new local project with encrypted: true and an encryption-key-path pointing to a deleted file creates a cloud project and saves its cloud ID before the push discovers that the key cannot be opened. The push then fails without uploading its files, but leaves that project and the local/cloud link behind.

Reproduced on master at 3842533 using real push/project/config managers, a fake filesystem, and a mocked successful API. projects.create was called once, projects.update was never called, and the local config retained the returned cloud-id after push_projects returned False with a missing-file error.

Reproduction

  1. Create a local Python project without a cloud ID.
  2. Encrypt its files with a synthetic key and record the key path in its config.
  3. Delete or move the key file.
  4. Push the project without flags.

Required result

Reject the unusable key before creating or linking a cloud project, or undo those side effects when file preparation fails. Keep successful configured-key pushes unchanged and add a regression test for the failed first push.

Priority P2: the push reports its failure, and the leftover project/link can be removed or reused after restoring the key.

Linguagem predominante
Python
Estrelas
335
Forks
172
Merge médio
6h 54min
PRs com merge (30d)
37

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de QuantConnect/lean-cli

Todas as issues de QuantConnect/lean-cli

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.