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

Move the worker to the bundle with the 2022–2036 SPM forecast

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

The work is in projects/policyengine-simulation-executor/pyproject.toml (the policyengine[models] pin) and tests/test_spm_runtime_native.py, in test_worker_year_boundary_matches_real_provider. It cannot start until the certifying policyengine.py release (spm-calculator 1.1.0) exists, so first confirm that release is published. Then bump the pin and move the three unavailable-year cases from 2036 to 2037, and run that test file. Done means the test passes and 2037 still returns SPM_YEAR_UNAVAILABLE.

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

描述

Part of the US 2036 extension, tracked in PolicyEngine/policyengine-api#3926. The worker reads its SPM year boundary from the installed provider, so 2036 becomes available as soon as the worker runs a bundle that certifies spm-calculator 1.1.0 (PolicyEngine/policyengine.py#618). No runtime code changes.

@anth-volk, the steps, once that bundle is released:

  1. Bundle bump. Move policyengine[models] in projects/policyengine-simulation-executor/pyproject.toml (now ==6.3.4) to the certifying release. If the policyengine.py release dispatch doesn't cover this repo, a manual pin PR does it.
  2. Tests. projects/policyengine-simulation-executor/tests/test_spm_runtime_native.py uses 2036 as the unavailable year in test_worker_year_boundary_matches_real_provider. Those cases become available, so move them to 2037:
    • {"time_period": "2037"};
    • {"start_year": "2037", "window_size": 1};
    • {"start_year": "2036", "window_size": 2}.
  3. Deploy order. Deploy the worker before or together with policyengine-api's bundle bump and PolicyEngine/policyengine-api#3928. The API checks that the worker's /versions match.
  4. policyengine-api-v2, if it's still deployed anywhere: it has the same executor layout, so mirror the test change there.

Staging checks:

  • A national 2036 economy run completes, and its SPM receipt includes "2036".
  • budget_window:2027:10 completes all ten years.
  • 2037 still returns SPM_YEAR_UNAVAILABLE.

🤖 Generated with Claude Code

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

环境准备

从这里开始

  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 摘要。