breg tests: stale re-freeze command, unused migration helpers, and a stale source view copy
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
调研方向
阅读 crates/registry-breg/tests/frozen_rhai_package.rs 中的 re-freeze 命令、postgres_migration target 的警告,以及 crates/registry-breg/tests/postgres_statistics_http.rs 中重新创建的源视图。在文档中的命令里添加 runtime 功能,删除或使用列出的未使用 helper,并使视图选项与引擎生成的选项一致。使用给定的 cargo check 命令确认,并验证 fixture 命令会写入 fixture。
由索引模型根据 Issue 内容生成。
描述
Three small leftovers in the registry-breg test tree, noticed while working on #1564. None changes behaviour.
-
The re-freeze command for the frozen Rhai package fixture runs no test. The header of
crates/registry-breg/tests/frozen_rhai_package.rsdocumentscargo test --locked -p registry-breg --test frozen_rhai_package -- --ignored write_frozen_fixture. The file is gated on#![cfg(feature = "runtime")]andruntimeis not a default feature, so the command exits green with 0 tests and writes nothing. It needs--features runtime. -
postgres_migrationbuilds with 10 unused-code warnings under--features postgres-test,tooling, on main as of 2026-10-13:- unused imports
successor_plan_is_empty_for_predecessorandsuccessor_plan_is_empty - unused functions
load_rewritten_person_package,copy_package_tree,person_registration_acceptance_root,person_registration_project,person_registration_assets,compile_person_registration,prepare_and_load_person_registration source_bytesanddrop_null_membersfromtests/support/source_bytes.rs, unused in this binary only
They look like helpers of tests that were removed. No gate reports them because the clippy job does not build the
postgres-testtargets. - unused imports
-
Once #2030 merges, one test keeps a stale copy of the source view options.
crates/registry-breg/tests/postgres_statistics_http.rsrecreates a source viewWITH (security_invoker=true, security_barrier=true)to inject a delay. The engine no longer emitssecurity_barrierthere. The test still passes; the copy should match the engine.
Done when
- The documented re-freeze command writes the fixture.
cargo check --locked -p registry-breg --features postgres-test,tooling --test postgres_migrationis free of warnings.- The statistics test recreates the view with the options the engine generates.
- 主要语言
- Rust
- 星标
- 2
- 派生
- 0
- 平均合并
- 11 小时 3 分钟
- 30 天内合并 PR
- 246
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
registrystack/registry-stack 的其他 Issue
-
agent-ready area:breg area:docs criticality:p3 documentation triage:needs-implementation
难度 1/5 1-3 小时 新手友好度 88/100
registrystack/registry-stack#1989 ·
维护者通常 1 天内回复
-
agent-ready area:breg bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 78/100
registrystack/registry-stack#1941 ·
维护者通常 1 天内回复
-
area:casework bug criticality:p3 rust
难度 2/5 1-3 小时 新手友好度 85/100
registrystack/registry-stack#1934 ·
维护者通常 1 天内回复
-
area:release area:scheduling bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 68/100
registrystack/registry-stack#1909 ·
维护者通常 1 天内回复
-
area:release bug
难度 2/5 1-3 小时 新手友好度 86/100
registrystack/registry-stack#1874 ·
维护者通常 1 天内回复
查看 registrystack/registry-stack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
bytecodealliance/rustix#1703 ·
维护者通常 3 天内回复
-
bug discussion
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
farion1231/cc-switch#8298 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
ajeetdsouza/zoxide#1323 ·
维护者通常 1 天内回复