Release runs create no Git tags since 3.34.3
Mantenedores costumam responder em até 2 dias
Um pull request relacionado já foi integrado.
- #4168 de @anth-volk — integrado
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Start with .github/publish-git-tag.sh and the "Publish Git Tag" job in push.yml, then read pyproject.toml for the [project] version. The .github/scripts ci-scripts guard shows how the new script and its tests in tests/unit must be set up. Done when the script reads the version from pyproject.toml, creates and pushes only the tag for this commit, and a rerun on the same commit passes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
The "Publish Git Tag" job in push.yml runs .github/publish-git-tag.sh on each release commit:
git tag `python setup.py --version`
git push --tags || true # update the repository version
It hasn't created a tag since 3.34.3 (release e81ed3db, 2026-02-24), but the job passes on every release. On release run 41723443801 it logged:
python: can't open file '/home/runner/work/policyengine-api/policyengine-api/setup.py': [Errno 2] No such file or directory
Everything up-to-date
setup.pywas removed on 2026-03-06 (#3319); the version is in[project]inpyproject.toml.- With no version, the script runs a bare
git tag, which lists tags and exits 0.git push --tagsthen has nothing to push, and|| truewould hide a failure anyway. The script has noset -e, so it exits 0. - Tagging stopped before
setup.pywas removed. Commit 1e182346 (2026-02-24) moved the step to Python 3.12, which setup-python ships without setuptools, andsetup.pybegan withfrom setuptools import setup. The job installs nothing before the step. (Inferred: the February job logs are no longer available.)
The script is outside .github/scripts, so the ci-scripts guard doesn't run shellcheck on it or require a test for it.
Proposal
- Move the script to
.github/scripts/publish_git_tag.sh, so the ci-scripts guard covers it, with tests intests/unit. - Read the version from
[project]inpyproject.toml, and fail if it's missing or isn't a release version. - Create a tag on the release commit named after the version, as the existing tags are (
3.34.3), and push only that tag. - If the tag already exists on the remote and names this commit, succeed without changes, so a rerun of a release passes. If it names a different commit, fail.
- Run with
set -euo pipefail, without|| true.
The releases from 3.35.0 to the current version have no tags. Whether to create those afterwards is a separate decision.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 33
- Merge médio
- 2d 21h
- PRs com merge (30d)
- 93
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
-
Assign every v2 route and service file to a layer and enforce the doc-only v2 layer rulesTalvez já em andamento @anth-volk assumiu hoje. Abertaenhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 20/100
PolicyEngine/policyengine-api#4190 ·
Mantenedores costumam responder em até 2 dias
-
Check that every test function asserts somethingTalvez já em andamento @anth-volk assumiu hoje. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
PolicyEngine/policyengine-api#4187 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de PolicyEngine/policyengine-api
Issues semelhantes
-
flow-measurement measurement
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 76/100
MichaelYcJo/SpecSeal#1366 ·
-
bug c/evals c/ui size:L
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Arize-ai/phoenix#17633 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
TransformerLensOrg/TransformerLens#1980 ·
Mantenedores costumam responder em até 1 dia
-
Module: Solr Needs: Lead Needs: Triage Theme: Search Type: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
internetarchive/openlibrary#14284 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 69/100
SpaceCowMedia/commander-spellbook-backend#1292 · 1 comentário ·
Mantenedores costumam responder em até 1 dia