Skip to content

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

Description

@Peter7896

Bounty: $25 (LT)

Area: build.py, diagnostic/, tests/

Current state: build.py generates encrypted diagnostic bundles for PR review, but there is no focused regression coverage that validates the generated JSON/logd contract, redacted metadata, and failure behavior.

What's needed: Add deterministic tests or helpers that validate diagnostic metadata and encrypted bundle references without relying on live services.

Acceptance criteria:

  • Validate that a build run produces a matching diagnostic/build-*.json and diagnostic/build-*.logd reference.
  • Assert diagnostic metadata uses repository-relative / paths where artifact paths are reported.
  • Assert local home/repo/temp paths and usernames are redacted from diagnostic metadata.
  • Fail clearly when the JSON is missing, the .logd reference is missing, or the pair is mismatched.
  • Keep validation deterministic on Windows and Unix-like hosts.

Required validation:

  • Run python3 build.py
  • Include the generated diagnostic .logd artifact from diagnostic/build-XXX.logd; also include diagnostic/build-XXX.json if present
  • Use .github/pull_request_template.md for your submission

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions