夜間レビュー: 観点 tests の指摘 (PR #1)

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
shell, swift
Domain
mobile, testing

Research direction

Start with .github/workflows/human-verification-check.yml and the install-device target in Makefile; the issue identifies both as missing test coverage. Check how the workflow parses PR body sections and how the target selects devices from devicectl JSON. Done means tests cover the listed checked, unchecked, section, CRLF, and simulator/device-count cases, or the issue is closed with a comment explaining why the review finding is incorrect.

Written by the indexing model from the issue text.

Description

背景

夜間のマージ後レビュー (run-nightly-review.sh、観点レビュー) が、既定ブランチの差分 (3782b21..fba32cf) で見つけた指摘。

指摘

テスト (tests)
  • 結果: fail
  • モデル: claude-sonnet-5-5
  • 要約: [項目 1,2] Swift の ShopifyCartPermalink は正常系・異常系・境界値が揃っていて、壊した版で落ちることも確かめられている。一方、新規に足したシェルのロジック (human-verification-check.yml の判定、Makefile の install-device の実機解決) にはテストが差分に無い。異常系の挙動を確かめた証跡もない。
  • 根拠:
    • .github/workflows/human-verification-check.yml:14-30 — [項目 1,2] CRLF の除去、セクションが無い時の成功、未チェック項目の検出 (-/*/+/番号付き)、チェック済みのみの成功という分岐がある。これらを通すテストも、[ ] が残る PR body で exit 1 になることを確かめた記録も差分に無い。この PR の body は「なし」で、成功する 1 経路しか実際には通っていない。失敗側 (未チェックで exit 1) と、似ているが通る側 ([x]・本文中の [ ]・別の ## 節にある [ ]) のケースが足りない。
    • Makefile:24-35 — [項目 1,2] install-device は jq で実機が 1 台・複数台・0 台の時の選択を分けている。0 台で exit 1 になるケースと、simulator を除外するケースを確かめるテストが差分に無い。jq の式は devicectl の JSON のフィクスチャで検査できる。PR body には本物の検証が書かれていない。

なぜやるか

  1. どの仮説・指標を動かすか: マージ前のレビューで拾えずに main に入った欠陥を直し、revert 率と Quick の欠陥件数を下げる
  2. 何を観測して思いついたか: 上の夜間のマージ後レビューの指摘
  3. うまくいったら次に何が変わるか: 指摘の箇所の欠陥が利用者と後続の変更に届かなくなる
  4. これの最小の版は何か: 指摘の箇所の修正と、それを確かめるテスト (テストで観測できない修正では、確かめた方法と結果)
  5. 今日これ 1 件しか出せないとしても出すか: P0 / P1 は出す (auto-implement の label 付き)。P2 以下は issue-triage-next の判断に任せる
  6. まともなエンジニアが読んで、やるべきだと納得する理由が書けているか: レビュアーが差分の具体的な箇所を根拠に指摘している。誤検知なら、その理由をコメントに書いて close する

完了条件

  • 指摘の箇所が直り、挙動が変わる修正では直ったことを確かめるテストがあり、テストで観測できない修正 (コメント・文書の書き換え・データの再生成等) では確かめた方法と結果が PR body に書かれている。または誤検知である理由をコメントに書いて close されている
Dominant language
HTML
Stars
0
Forks
0
Avg merge
6h 58m
Merged PRs (30d)
10

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bannzai/quickbuy

All issues in bannzai/quickbuy

Similar issues

More Mobile Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.