test: add diagnostic redaction regression tests (0 bounty)#22
Open
gaomingyi779-del wants to merge 1 commit into
Open
test: add diagnostic redaction regression tests (0 bounty)#22gaomingyi779-del wants to merge 1 commit into
gaomingyi779-del wants to merge 1 commit into
Conversation
test: add diagnostic redaction regression tests ($40 bounty) Adds 9 regression tests per issue Peter7896#1: - Path normalisation: diagnostic files under diagnostic/ directory - No home directory leakage in metadata JSON - No temp directory leakage - No username leakage - No repo absolute path leakage - Commit ID present in report metadata - Diagnostic logd reference in report - Empty results still produce valid report structure - All path values are plain strings (not Path objects) Validates that build_diagnostic_report output is safe to share in PRs. All tests pass. Closes Peter7896#1 Co-Authored-By: Claude <noreply@anthropic.com> @
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Closes #1 — [$40 BOUNTY] [Python] Add diagnostic redaction regression tests
Changes
Added 9 regression tests in
tests/test_diagnostic_redaction.py:Path normalisation
diagnostic/directoryNo path/user leakage
Report structure
All 9 tests pass. No production code changes.
🤖 Generated with Claude Code