Vacuous CLI tests and untested --files, --changed-since, targetVersion edges
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- godot, typescript
- 領域
- cli, testing-qa
調査の方向性
Start with the listed cases in test/cli.test.ts, test/entry.test.ts, and test/removed-api.test.ts, then read the related CLI and version inference code in src/project/godot-version.ts. Run npm run build && npm test and check how the tests handle relative paths, Git errors, skipped built CLI tests, and version parsing. Done when the listed edge cases are covered and the tests run or skip with clear reasons.
索引モデルが issue の本文から書いたものです。
説明
Summary
Several CLI tests claim more than they check or can pass without running anything, and --files, --changed-since and targetVersion inference have untested edges.
Where
test/cli.test.ts:210-217: the "--files lints only the named files (relative or absolute ...)" test passes only absolute paths.test/cli.test.ts:238-242: the--changed-sincetestreturns, and so passes, ifgit initthrows. Its commits also lack-c commit.gpgsign=false, so a developer with global commit signing enabled gets a confusing failure.test/entry.test.ts:50,57,64,73: the built-CLI exit-code tests callctx.skip()whendist/cli.jsis missing. Runningnpm testwithout a build silently skips the only real-process exit-code tests. CI builds first, so CI is fine.src/project/godot-version.ts:6-40andtest/removed-api.test.ts:80-118.
Test cases and fixes
- Relative
--fileswith the cwd at the root, and with the cwd elsewhere (vi.spyOn(process, "cwd")). -
--changed-sincewith the root atrepo/game: only files undergame/are returned, root-relative, including untracked files. -
--files x.gd --changed-since HEAD: the union, without duplicates. - A file deleted since the ref: not reported, and no crash.
- A renamed file reports the new path.
- A root that is not a git work tree: exit 2 with "git diff failed".
-
--changed-since=-x: rejected with exit 2. - Replace the bare
returnwithctx.skip("git unavailable"), and pass-c commit.gpgsign=false. - Fail loudly when
CIis set anddist/is missing, or build in a vitestglobalSetup. -
config/features=PackedStringArray("4.10"): ordering is numeric."4.3", "4.5"gives"4.5". -
"5.0": pin the behaviour. Today it maps to"4.5"and applies the 4.x DB to Godot 5; it should probably benullor warn. - An unparseable
project.godotgivesgodotVersion: nulland does not throw.
Getting started
- Relevant files:
test/cli.test.ts,test/entry.test.ts,test/removed-api.test.ts - How to run tests:
npm run build && npm test
Filed by repo-audit/full-audit at e836036. Severity: low. Effort: S. audit-key: testing|test/cli.test.ts|--files/--changed-since
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 6
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TMHSDigital/godot-correctness-mcp のほかの issue
-
enhancement good first issue severity: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
TMHSDigital/godot-correctness-mcp#123 ·
メンテナーはふだん 2 日以内に返信
-
dependencies good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/godot-correctness-mcp#116 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
TMHSDigital/godot-correctness-mcp#107 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
TMHSDigital/godot-correctness-mcp#106 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue severity: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
TMHSDigital/godot-correctness-mcp#105 ·
メンテナーはふだん 2 日以内に返信
TMHSDigital/godot-correctness-mcp の issue をすべて見る
似ている issue
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openclaw/openclaw#203385 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nwverse/persona#12800 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
microsoft/playwright#44289 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 半日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信