Release runs create no Git tags since 3.34.3
维护者通常 2 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 45/100
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 18
- 派生
- 33
- 平均合并
- 2 天 21 小时
- 30 天内合并 PR
- 88
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-api 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
PolicyEngine/policyengine-api#4037 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
PolicyEngine/policyengine-api#3911 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
PolicyEngine/policyengine-api#3910 ·
维护者通常 2 天内回复
-
v1 household copies to v2 fail when the household leaves out group collections可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
PolicyEngine/policyengine-api#4164 ·
维护者通常 2 天内回复
-
Record each run of a v2 simulation and report, and key results by run可能已有人在做 @anth-volk 于 1 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 12/100
PolicyEngine/policyengine-api#4161 ·
维护者通常 2 天内回复
查看 PolicyEngine/policyengine-api 的全部 Issue
相似的 Issue
-
bug module:nodes tests
难度 2/5 1-3 小时 新手友好度 78/100
rocketride-org/rocketride-server#3020 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
bretterer/home-assistant-rivian#335 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
mampfes/hacs_waste_collection_schedule#8114 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
TIGER-AI-Lab/ClawBench#475 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
UKGovernmentBEIS/inspect_ai#6322 ·
维护者通常 1 天内回复