Skip to content

test(diagnostic): add redaction regression tests for build.py#17

Open
zjwjing wants to merge 1 commit into
Peter7896:mainfrom
zjwjing:feat/diagnostic-redaction-tests
Open

test(diagnostic): add redaction regression tests for build.py#17
zjwjing wants to merge 1 commit into
Peter7896:mainfrom
zjwjing:feat/diagnostic-redaction-tests

Conversation

@zjwjing

@zjwjing zjwjing commented Jun 21, 2026

Copy link
Copy Markdown

Summary

Add deterministic regression tests for diagnostic redaction, artifact pairing, and path normalization in build.py.

Changes

  • Added tests/test_diagnostic_redaction.py (23 tests, 6 test classes)
  • All 23 tests pass locally

Checklist

  • Tests pass locally (23/23 OK)

  • Diagnostic build log is committed

  • I would like to request that my diagnostic build log is removed before merging

Add 23 regression tests covering:
- Path normalization (forward slashes, repo-relative, no Windows drive letters)
- Sensitive data redaction (home, username, hostname, temp, full commit hash)
- Artifact pairing (.logd reference matches actual file)
- Missing file handling (clear failure when JSON/.logd missing or mismatched)
- build.py integration (required functions, UTC timestamps, no hardcoded passwords)
- Edge cases for cross-platform path normalization

All 23 tests pass. Addresses Issue #1.
@zjwjing

zjwjing commented Jun 23, 2026

Copy link
Copy Markdown
Author

Hi — following up on this PR. The refactored diagnostic redaction regression tests (23 tests, 6 test classes) are ready for review. Happy to address any feedback!

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