CI never runs the Casework task_grant_invalidation suite
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
调研方向
从 .github/workflows/ci.yml 开始,特别是 Casework 的 PostgreSQL job 以及设置 CASEWORK_ASSIGNMENT_TEST_DATABASE_URL 的 assignment/routing 步骤。阅读 crates/registry-casework/tests/task_grant_invalidation.rs 以及 crates/registry-casework/Cargo.toml 中带 required-features = ["postgres-test"] 的 [[test]] 条目,看看它的 fixtures 期望哪个数据库环境变量。完成标准:当 Casework 发生变更时,CI job 会调用 cargo test --test task_grant_invalidation,并且该测试套件中任一失败的测试会使构建失败;可选地添加一个脚本,将 Cargo.toml 的测试目标与 ci.yml 中的 --test 名称进行比较。
由索引模型根据 Issue 内容生成。
描述
Problem
crates/registry-casework/tests/task_grant_invalidation.rs is a PostgreSQL suite (required-features = ["postgres-test"]) that proves task grants are revoked when authority is lost:
directory_loss_is_permanent_but_atomic_replacement_preserves_grantsholder_and_proposal_loss_are_permanent_but_revision_churn_is_alloweditem_erasure_removes_selector_bearing_grant_records
No job in .github/workflows/ci.yml names --test task_grant_invalidation, so CI never builds or runs it. A regression in grant revocation would merge unnoticed. The suite passes locally (3 tests, run against a disposable database while verifying #1933).
Proposal
Run it in the Casework PostgreSQL job. It reads CASEWORK_ASSIGNMENT_TEST_DATABASE_URL, like the "assignment and routing" step, so it can join that step if its fixture isolates itself from the other two suites; otherwise give it its own database the way the review and task-approval steps do.
Also worth a one-off check: whether any other [[test]] target in a product crate with required-features = ["postgres-test"] is missing from CI. A small script comparing the targets declared in Cargo.toml with the --test names in ci.yml would catch the next one.
Done when
CI runs task_grant_invalidation on every change that touches Casework, and fails when a test in it fails.
- 主要语言
- Rust
- 星标
- 2
- 派生
- 0
- 平均合并
- 9 小时 24 分钟
- 30 天内合并 PR
- 271
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
registrystack/registry-stack 的其他 Issue
-
area:docs documentation
难度 2/5 1-3 小时 新手友好度 76/100
registrystack/registry-stack#2253 ·
维护者通常 1 天内回复
-
area:coordinator bug
难度 2/5 1-3 小时 新手友好度 82/100
registrystack/registry-stack#2252 ·
维护者通常 1 天内回复
-
area:release bug
难度 2/5 1-3 小时 新手友好度 74/100
registrystack/registry-stack#2248 ·
维护者通常 1 天内回复
-
area:breg documentation
难度 1/5 1-3 小时 新手友好度 88/100
registrystack/registry-stack#2233 ·
维护者通常 1 天内回复
-
area:breg bug
难度 2/5 1-3 小时 新手友好度 90/100
registrystack/registry-stack#2231 ·
维护者通常 1 天内回复
查看 registrystack/registry-stack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
rustls/rustls-platform-verifier#262 · 2 条评论 · 2 个 reaction ·
-
needs-triage
难度 2/5 1-3 小时 新手友好度 73/100
bherbruck/solvecraft#4493 ·
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
IngvarConsulting/unica#1911 ·
维护者通常 1 天内回复