Skip to content

fix(ci): fail --build-info when the requested metadata is absent #4527

Closed

Description

@zackees

Context

After a successful compile, ci/ci-compile.py checks for build_info_<example>.json when --build-info was requested. If absent, it writes an {"error": ...} object to the requested output path but still returns 0. Callers receive success and a file that is not build metadata.

Proposal

Make requested-but-missing metadata a nonzero failure, with an explicit diagnostic and no success-shaped output.

Acceptance criteria

  • Add a focused RED→GREEN test that simulates successful compilation with absent metadata and asserts nonzero exit/status.
  • A present metadata file is copied unchanged and exits 0; failure messaging identifies the missing path.

Decisions

  • Priority: medium; a command-line option promising build info should fail if it cannot provide it.
  • Scope is the --build-info contract; successful compilation without that option remains successful.

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