Skip to content

test(diagnostic): add redaction regression coverage (Closes #1)#23

Open
yanyishuai wants to merge 1 commit into
Peter7896:mainfrom
yanyishuai:fix/issue-1-diagnostic-redaction
Open

test(diagnostic): add redaction regression coverage (Closes #1)#23
yanyishuai wants to merge 1 commit into
Peter7896:mainfrom
yanyishuai:fix/issue-1-diagnostic-redaction

Conversation

@yanyishuai

Copy link
Copy Markdown

Summary

Adds deterministic regression coverage for diagnostic metadata redaction and path normalization.

Changes

  • tools/diagnostic_redaction.py — repo-relative / path helpers + metadata/logd pair validation
  • build.py — sanitize diagnostic metadata before write; emit repo-relative module artifacts
  • tools/tests/test_diagnostic_redaction.py — covers redaction, missing JSON/logd, and mismatched pairs

Validation

python -m unittest tools.tests.test_diagnostic_redaction -v
python build.py --module compliance

Diagnostic bundle included per PR template.

Closes #1

Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE

@yanyishuai yanyishuai force-pushed the fix/issue-1-diagnostic-redaction branch from dd0ee15 to dca8dcb Compare July 6, 2026 08:06
@yanyishuai yanyishuai force-pushed the fix/issue-1-diagnostic-redaction branch from dca8dcb to d46de59 Compare July 6, 2026 08:07
@yanyishuai

Copy link
Copy Markdown
Author

Rebased onto latest upstream main (c2c53e9). Branch is now ahead with redaction helpers integrated into the refactored build.py diagnostic report flow. All 6 unit tests pass locally.

@yanyishuai

Copy link
Copy Markdown
Author

Rebased onto upstream main with deterministic redaction tests (6 unittest cases). Ready for review.

Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE

@yanyishuai

Copy link
Copy Markdown
Author

Follow-up on #1 — PR #23 rebased onto upstream main, CI green, mergeable.

PR: #23

Diagnostic report redaction (sanitize_metadata + write_diagnostic_report) with focused tests. Ready for review/merge.

Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE

@yanyishuai

Copy link
Copy Markdown
Author

Follow-up — PR #23 rebased, CI green, mergeable. Diagnostic redaction regression coverage ready for review.

PR: #23

Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE

@yanyishuai

Copy link
Copy Markdown
Author

Follow-up — PR #23 diagnostic redaction regression tests, rebased, mergeable. Ready for review.

PR: #23

Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE

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.

[$40 BOUNTY] [Python] Add diagnostic redaction regression tests

1 participant