Skip to content

Add tests for six bug fixes that had none - #380

Open
GeekFromPH (nikohd12) wants to merge 5 commits into
microsoft:mainfrom
nikohd12:test-uncovered-fixes
Open

GeekFromPH (nikohd12) wants to merge 5 commits into
microsoft:mainfrom
nikohd12:test-uncovered-fixes

Conversation

@nikohd12

Copy link
Copy Markdown

Why

Six earlier bug fixes had no test that fails when the fix is undone. This adds 9 tests so those bugs can't come back unnoticed. No production code changes.

What the tests pin

  • Side calls, flag checks, measure and refresh-catalog start the claude that claude_cli() finds, not bare claude (0e3c970, 89d577d, 6dfdc7a). This includes te doctor with only the native install, the catalog probe killing its process group, and temp folders ignoring cleanup errors (Windows WinError 32).
  • State files for distiller, envfacts and repo-rename get Windows-safe names for a label like C:\Work\Repo. codex_project_trusted compares paths case-blind through normcase (ee1a5e6, 910b906).
  • A single-quoted Codex marketplace table, [marketplaces.'tokeneconomizer'], is matched like the double-quoted one (d20578d).

Verification

  • python -m pytest tests: 563 passed, 8 skipped (the Codex/OpenCode end-to-end tests, the aider test and one Windows-only test), 0 failed, on macOS with Python 3.14.
  • Each new test was run with its fix reverted and failed.

🤖 Generated with Claude Code

Niko Jaro and others added 5 commits November 12, 2026 02:47
Broken references, rules that conflicted with the global CLAUDE.md, and
repeated wording. Findings and diffs: ~/claude-audits/audit-2026-11-12.md

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Niko approved these fixes in the weekly prompt audit. Each one corrects
a stale path, a missing approval step, or a rule that clashed with the
global rules.

Verified: re-read each changed line with grep and git diff --stat; instruction text only, no code or tests changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nds (fixes 0e3c970, 89d577d, 6dfdc7a)

No test failed when these fixes were undone:
- side calls, flag checks, measure and refresh-catalog default to claude_cli(), not bare "claude"
- te doctor lists claude when only the native install has it
- the catalog probe kills the process group claude started
- every measure/probe temp folder ignores cleanup errors (Windows WinError 32)

Verified: python -m pytest tests (563 passed, 8 skipped); each new test fails with its fix undone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e1a5e6, 910b906)

- distiller, envfacts and repo-rename state files get names Windows accepts for a label like C:\Work\Repo
- codex_project_trusted compares both paths through normcase, checked on any system with Windows' normcase

Verified: python -m pytest tests (563 passed, 8 skipped); each new test fails with its fix undone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…578d)

[marketplaces.'tokeneconomizer'] is the same TOML table as [marketplaces."tokeneconomizer"].

Verified: python -m pytest tests (563 passed, 8 skipped); the new test fails with the fix undone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nikohd12

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

1 participant