Skip to content

[$30 BOUNTY] [Python] Add build diagnostic metadata tests #3

Description

@jackjin1997

Bounty: $30 (LT)

Area: build.py

Current state: The build script writes diagnostic JSON metadata and encrypted .logd artifacts that gate PR review, but the metadata shape and logd reference behavior are not protected by focused regression tests.

What is needed: Add tests for diagnostic report generation so future build.py changes cannot break the JSON/logd contract expected by the GitHub diagnostic check.

Acceptance criteria:

  • Cover successful report metadata including commit id, module result summaries, and diagnostic_logd path.
  • Cover logd generation failure populating diagnostic_logd_error without claiming a valid archive.
  • Cover chunked or multi-file logd references if the script emits split artifacts.
  • Keep tests deterministic and avoid requiring external toolchains or network access.
  • Document the local command for running the new tests.

Required validation:

  • Run the new Python test command, for example python3 -m pytest -q if pytest is used.
  • Run python3 build.py.
  • Include the generated diagnostic/build-*.logd artifact from diagnostic/; include the matching diagnostic/build-*.json if present.
  • Use .github/pull_request_template.md for the 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