Split the release tests over six runners, and stop repeating the merge run's checks on the release commit
Mantenedores costumam responder em até 2 dias
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
Start with the release workflow and the existing release tests, then inspect the checks and merge-run status referenced by issues #4124 and #4129. Map how the release commit is created and how make test collects tests so the six shards can be deterministic and a completeness check can detect missing or repeated tests. Done means eligible release commits skip the repeated checks only when the merge checks passed, all tests run exactly once across six runners, and failures block the release.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
Once the release tests run in their own job (#4124) and beside the database jobs (#4129), a Public API release run is still about 18 minutes from its start to the staging Cloud Run deploy, for two reasons that only help together:
- The release run repeats the merge run's checks. It runs lint, the quality guards, both Alembic checks and the cross-database integration tests again, about 10 minutes before
publish-git-tagand the staging database jobs can start. The merge run passed them on a tree that differs only in release files:versioningchanges the version inpyproject.toml, refreshesuv.lock, rebuildsCHANGELOG.mdand removes the fragments it built. Nothing checks that the release commit changes nothing else, so today the repeat is the only protection against, for example, auv lockthat re-resolved dependencies. - The release test suite runs in one process.
make test(about 3,900 tests) takes 14 to 18 minutes on one runner, so skipping the checks alone would leave the tests as the longer branch.
Expected behaviour
- A new job checks the release commit before the checks start. The release run skips lint, the quality guards, both Alembic checks and the integration tests only when:
- the release commit changes nothing but release files: the
[project]version inpyproject.toml, the project's own version entry inuv.lock,CHANGELOG.md, and fragments it removes fromchangelog.d/; and - the merge commit's Push run passed all five checks.
- the release commit changes nothing but release files: the
- If either fails, the checks run as today, and
publish-git-tagrequires the same ones to pass as today. - The release tests run on six runners, split deterministically so that every test runs exactly once, and a check fails the release when any collected test did not run in exactly one shard.
- No new dependency.
Expected saving: about 10 to 12 minutes per release beyond #4124 and #4129 (estimate), with the staging deploy starting about 7 minutes into the release run instead of about 19.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 33
- Merge médio
- 2d 7h
- PRs com merge (30d)
- 64
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-api
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
PolicyEngine/policyengine-api#4037 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
PolicyEngine/policyengine-api#3911 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
PolicyEngine/policyengine-api#3910 ·
Mantenedores costumam responder em até 2 dias
-
Serve household reports at /v2/reportsTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
PolicyEngine/policyengine-api#4131 ·
Mantenedores costumam responder em até 2 dias
-
Upgrade the v1 Cloud SQL schema and seed the v2 database side by side in the release runTalvez já em andamento @anth-volk assumiu hoje. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
PolicyEngine/policyengine-api#4129 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de PolicyEngine/policyengine-api
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
aws-samples/sample-per-model-bedrock#639 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
awslabs/visual-asset-management-system#937 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
project-codeflare/codeflare-sdk#1195 ·
Mantenedores costumam responder em até 1 dia
-
Bump numpy dependencyAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
pandas-dev/pandas-stubs#2051 ·
Mantenedores costumam responder em até 1 dia