Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Upgrade simulation workers to PolicyEngine 6.2.3 for UK region filtering

已关闭
#732 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

已经有一个关联 PR 被合并了。

  • #733 来自 @anth-volk —— 已合并

评估

难度
3/5
预计耗时
1-3 小时
新手友好度
15/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
backend, devops

调研方向

The change is a policyengine pin in both dependency locations: the simulation executor's lockfile and the Modal image group. Check that the published release exists before editing, since PyPI currently returns 404 for 6.2.3. Done means the pin is updated, uv lock --upgrade-package policyengine regenerates the lockfile, and the executor tests pass. Linked PR #733 already implements this, so coordinate there rather than starting a parallel change.

由索引模型根据 Issue 内容生成。

描述

Require the corrected UK country filtering from PolicyEngine/policyengine.py#565 (tracking issue PolicyEngine/policyengine.py#564) in the simulation executor and its Modal image. The expected next patch release is policyengine==6.2.3; PyPI currently publishes 6.2.2 and returns HTTP 404 for 6.2.3.

Pin policyengine[models]==6.2.3 in both dependency locations. Scotland, Wales, and Northern Ireland must select the stored household region values SCOTLAND, WALES, and NORTHERN_IRELAND. England selects the nine English regions. The worker must not require a raw household country column.

Open the dependency PR now. Dependency-resolution failure because 6.2.3 does not yet exist is expected. Keep the actual existing lockfile until the package is published; do not invent release artifact URLs or hashes, use a Git checkout as a substitute, or weaken the version pin.

Before merge: confirm the published release contains the upstream fix, regenerate the executor lockfile with uv lock --upgrade-package policyengine, run its tests and image checks, and verify the same requirement applies to the Modal image group. If another release takes 6.2.3 first, update the proposed pin to the actual fixed release.

Implementation PR: #733. After merge: deploy and qualify the corrected simulation worker and confirm the gateway advertises the fixed bundle before API v1 restores the Scotland population test in PolicyEngine/policyengine-api#3877 (issue PolicyEngine/policyengine-api#3876). Temporary test removal: PolicyEngine/policyengine-api#3875 (issue PolicyEngine/policyengine-api#3874).

主要语言
Python
星标
1
派生
1
平均合并
1 天 6 小时
30 天内合并 PR
24

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PolicyEngine/policyengine-sim-api 的其他 Issue

查看 PolicyEngine/policyengine-sim-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。