Skip to content

revert: undo external PRs #34 and #35 for quality review#40

Merged
Nelson Spence (Fieldnote-Echo) merged 1 commit intomainfrom
fix/revert-external-prs-v2
Mar 12, 2026
Merged

revert: undo external PRs #34 and #35 for quality review#40
Nelson Spence (Fieldnote-Echo) merged 1 commit intomainfrom
fix/revert-external-prs-v2

Conversation

@Fieldnote-Echo
Copy link
Member

Summary

Issues #30 and #32 remain open for proper reimplementation.

Files changed

  • src/navi_bootstrap/cli.py — removed help text additions
  • src/navi_bootstrap/init.py — reverted regex to sync-only
  • tests/test_init.py — removed async test function test

Reverts changes from:
- #35 (passionworkeer): CLI help text additions
- #34 (RogueTex): async test detection regex

Issues #30 and #32 remain open for proper reimplementation.
Copilot AI review requested due to automatic review settings March 12, 2026 04:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts two recently merged external changes to return the codebase to its prior behavior while the underlying improvements receive a quality review before being reintroduced.

Changes:

  • Removes previously added Click help= strings for several CLI options in validate, render, apply, and diff.
  • Reverts pytest test-function counting back to synchronous-only (def test_...) detection.
  • Removes the test that asserted async test detection behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/navi_bootstrap/cli.py Reverts added option help text to restore prior CLI help output.
src/navi_bootstrap/init.py Reverts the regex used to count pytest tests back to sync-only detection.
tests/test_init.py Removes the async test-counting unit test that no longer matches the reverted implementation.

@@ -249,7 +249,7 @@ def detect_test_info(target: Path) -> dict[str, Any]:
content = test_file.read_text(errors="replace")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 MEDIUM: Async test detection reverted-potential test undercount

Confidence: 90%

The regular expression for counting test functions in detect_test_info was reverted from detecting both sync and async tests (r"^\s*(?:async\s+)?def test_") to only sync (r"^\s*def test_"). This will miss async test functions, underreporting test count if async test functions exist.

Suggestion: If async test functions should be counted, reinstate the previous regex: r"^\s*(?:async\s+)?def test_". If not, document why async test functions should be excluded.

— Reverting this means async test functions are no longer counted. If that's intentional, make sure everyone agrees. If not, expect confusion later.

@@ -449,14 +449,6 @@ def test_ignores_non_test_files(self, tmp_path: Path) -> None:
result = detect_test_info(tmp_path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 LOW: Async test detection test removed

Confidence: 95%

The test case for detecting async test functions was removed. With the regex reverted to match only sync tests, async test coverage detection is no longer tested. This reduces confidence that the test counting function will be accurate if async test support is reintroduced.

Suggestion: If async test support is removed intentionally, consider documenting the decision and, if possible, revisiting the need for such tests before merging future related changes.

— The coverage for async test detection goes with the code. Makes sense, but if async detection returns, so should its test.

@@ -53,9 +53,8 @@ def cli() -> None:
"--spec",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 LOW: Loss of CLI help text

Confidence: 98%

Several help parameter strings from click options were removed as part of this revert. This reduces CLI discoverability and user experience for newcomers or users unfamiliar with argument usage.

Suggestion: When reintroducing these features, preserve detailed help text for all CLI options where possible. Consider adding a governance rule requiring help text on CLI arguments.

— It's a revert, so not a bug-but the CLI's self-documentation takes a hit. Just make sure these help texts come back.

@github-actions
Copy link
Contributor

✅ Grippy Review — PASS

Score: 89/100 | Findings: 3

Delta: 3 new


Commit: 0b5ddcb

Copy link
Collaborator

@project-navi-bot project-navi-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All required CI checks passed. Auto-approved by navi-bot.

Copy link
Collaborator

@project-navi-bot project-navi-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All required CI checks passed. Auto-approved by navi-bot.

@Fieldnote-Echo Nelson Spence (Fieldnote-Echo) merged commit 6fb2afb into main Mar 12, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants