Skip to content

fix(ci): make compiled_size fail when firmware size cannot be measured #4525

Closed

Description

@zackees

Context

ci/compiled_size.py main catches missing metadata, malformed JSON, and unexpected errors, prints a message, then returns normally. Its command-line entry point consequently exits 0 even when no size was measured. A nonexistent board is a concrete reproducer.

Proposal

Return or raise a nonzero status for measurement failures while retaining useful diagnostics.

Acceptance criteria

  • Add a focused RED→GREEN CLI test for a nonexistent board and malformed build-info input: both exit nonzero with an informative error.
  • A valid firmware-size measurement still exits 0 and reports the size.

Decisions

  • Priority: medium; false-green size checks can bypass a release gate.
  • Scope is process exit status, not changing size-source precedence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions