Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

breg tests: stale re-freeze command, unused migration helpers, and a stale source view copy

オープン 初心者向け
#2,034 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
postgresql, rust
領域
databases, testing

調査の方向性

crates/registry-breg/tests/frozen_rhai_package.rs の re-freeze コマンド、postgres_migration ターゲットからの警告、crates/registry-breg/tests/postgres_statistics_http.rs の再作成されたソースビューを確認してください。文書化されたコマンドに runtime 機能を追加し、一覧にある未使用のヘルパーを削除するか使用し、ビューのオプションをエンジンが生成するものに合わせてください。指定された cargo check コマンドで確認し、fixture コマンドが fixture を書き込むことを検証してください。

索引モデルが issue の本文から書いたものです。

説明

area:breg rust

Three small leftovers in the registry-breg test tree, noticed while working on #1564. None changes behaviour.

  1. The re-freeze command for the frozen Rhai package fixture runs no test. The header of crates/registry-breg/tests/frozen_rhai_package.rs documents cargo test --locked -p registry-breg --test frozen_rhai_package -- --ignored write_frozen_fixture. The file is gated on #![cfg(feature = "runtime")] and runtime is not a default feature, so the command exits green with 0 tests and writes nothing. It needs --features runtime.

  2. postgres_migration builds with 10 unused-code warnings under --features postgres-test,tooling, on main as of 2026-10-13:

    • unused imports successor_plan_is_empty_for_predecessor and successor_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_bytes and drop_null_members from tests/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-test targets.

  3. Once #2030 merges, one test keeps a stale copy of the source view options. crates/registry-breg/tests/postgres_statistics_http.rs recreates a source view WITH (security_invoker=true, security_barrier=true) to inject a delay. The engine no longer emits security_barrier there. 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_migration is free of warnings.
  • The statistics test recreates the view with the options the engine generates.
主要言語
Rust
スター
2
フォーク
0
平均マージ
11時間 3分
マージ済み PR(30日)
246

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

registrystack/registry-stack のほかの issue

registrystack/registry-stack の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。