Skip to content

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

Description

@Peter7896

Bounty: $40 (LT)

Area: build.py, diagnostic/, tests/

Current state: build.py generates diagnostic metadata and encrypted .logd artifacts, but there is no focused regression coverage that protects the redaction and path-normalization contract across Windows and Unix-like hosts.

What's needed: Add deterministic tests or helpers that validate diagnostic redaction, artifact pairing, and repository-relative path reporting without relying on live services.

Acceptance criteria:

  • Validate that diagnostic metadata reports artifact paths as repository-relative / paths.
  • Assert local home, repo, temp paths, machine names, and usernames are not leaked in diagnostic metadata.
  • Confirm the .logd reference in JSON matches a generated encrypted artifact in diagnostic/.
  • Fail clearly when the JSON is missing, the .logd artifact is missing, or the pair is mismatched.
  • Keep the coverage 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

Tracker note: This issue is opened for the upstream LT bounty tracker; bounty eligibility and payout are determined by upstream review, merge, and tracker rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions