Retry run-time dataset downloads, and move latest only after a deploy's checks
Mantenedores costumam responder em até 2 dias
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- github-actions, google-cloud, python
- Domínio
- backend-api-design, ci-cd, devops
Direção de pesquisa
Start with the failed release run and inspect the runtime dataset download in policyengine.py 6.12.1, then trace the routing finalizer, "Publish routing after all services pass," and simulation-deployment-ready.sh in the deployment workflow. Check linked pull request #1023 for current work. Done means downloads retry only the specified transient failures, routing publication and latest promotion follow the described order, and rerunning failed jobs completes the deploy.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Release run 42040665530 (attempt 1) failed one staging integration test, test_calculate_uk_local_area_breakdown, because the executor timed out reading the UK local-area dataset from Hugging Face's CDN (requests.exceptions.ConnectionError: ... Read timed out.). A dataset other than the image's default is downloaded into a temporary folder by each new container, and policyengine.py 6.12.1 makes a single request per file with no retry.
Because a check failed, the routing finalizer restored staging's routing and recorded "restored". Attempt 2 ("Re-run failed jobs") passed every check, but the job "Publish routing after all services pass" had succeeded in attempt 1 and did not run again, so the finalizer returned attempt 1's recorded "restored", and simulation-deployment-ready.sh, which requires "completed", failed. Re-running only the failed jobs cannot complete such a deploy.
What should change
- Retry the executor's run-time dataset load with bounded backoff on connection errors, read timeouts and 5xx responses, never retrying 401, 403, 404 or a SHA-256 mismatch, and never reusing a partial download.
- Split the routing publication:
- Before the checks, publish only the release's routes (its policyengine.py version and its US and UK model versions, mapped to the deployed app) and its bundle manifest, leaving
latest. - After every check and the Cloud Run promotion, move
latestwhen the release is newer, check that unpinned requests reach the release, and putlatestback if that check fails. - "Re-run failed jobs" then completes a deploy without republishing the routes, and no "restored" outcome from an earlier attempt remains.
- Before the checks, publish only the release's routes (its policyengine.py version and its US and UK model versions, mapped to the deployed app) and its bundle manifest, leaving
- Linguagem predominante
- Python
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 2d 6min
- PRs com merge (30d)
- 88
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PolicyEngine/policyengine-sim-api
-
Update policyengine to 6.7.3Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 Meio dia Facilidade para iniciantes 70/100
PolicyEngine/policyengine-sim-api#823 ·
Mantenedores costumam responder em até 2 dias
-
Integration tests fail due to missing UV virtual environment setupTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
PolicyEngine/policyengine-sim-api#314 ·
Mantenedores costumam responder em até 2 dias
-
Records written during a gateway request carry the route <unmatched>Talvez já em andamento @anth-volk assumiu há 2 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 30/100
PolicyEngine/policyengine-sim-api#1018 ·
Mantenedores costumam responder em até 2 dias
-
Update policyengine to 6.15.0Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 1/100
PolicyEngine/policyengine-sim-api#1014 ·
Mantenedores costumam responder em até 2 dias
-
Move the simulation executor to policyengine.py 6.14.0 and keep accepting US 2022 and 2023Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
PolicyEngine/policyengine-sim-api#1012 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de PolicyEngine/policyengine-sim-api
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
adafruit/Fruit-Jam-OS#98 ·
-
python triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
microsoft/semantic-kernel#14753 ·
Mantenedores costumam responder em até 5 dias
-
area:cli area:configuration documentation priority:low size:small
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 80/100
RonaldHensbergen/composable-data-stack#1222 ·
Mantenedores costumam responder em até 1 dia
-
bug python
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
pvlib/pvlib-python#2939 ·
Mantenedores costumam responder em até 1 dia