Skip to content

Fix: [$25 BOUNTY] [Python] Add diagnostic bundle validation tests#15

Open
Nexussyn wants to merge 1 commit into
Peter7896:mainfrom
Nexussyn:bounty-fix/issue-1-1782118889684
Open

Fix: [$25 BOUNTY] [Python] Add diagnostic bundle validation tests#15
Nexussyn wants to merge 1 commit into
Peter7896:mainfrom
Nexussyn:bounty-fix/issue-1-1782118889684

Conversation

@Nexussyn

Copy link
Copy Markdown

Closes #1

CONFIDENCE: 0.75

SOLUTION_SUMMARY: Added comprehensive diagnostic bundle validation tests that verify JSON/logd contract integrity, path redaction, repository-relative paths, and cross-platform determinism without relying on live services.

FILES_CHANGED:

  • tests/test_diagnostic_bundle.py
  • tests/conftest.py
  • diagnostic/.gitkeep

CODE:

### FILE: tests/test_diagnostic_bundle.py
"""
Diagnostic bundle validation tests.

This module provides deterministic tests that validate:
- Matching JSON and .logd file pairs
- Repository-relative path formatting
- Redaction of sensitive local paths and usernames
- Proper failure modes for missing/mismatched artifacts
"""

import json
import os
import re
import sys
import tempfile
import platform
from pathlib import Path
from typing import Dict,

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.

[$25 BOUNTY] [Python] Add diagnostic bundle validation tests

1 participant