Skip to content

Fail .image.json build on pipeline errors - #992

Open
leighmcculloch wants to merge 2 commits into
resolve-inherits-in-makefilefrom
pipefail-image-json
Open

leighmcculloch wants to merge 2 commits into
resolve-inherits-in-makefilefrom
pipefail-image-json

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Make the .image.json recipe fail, and delete its output, when any stage of the pipeline fails.

Why

A failure in images-resolve-inherits was masked by the pipe, so the build could succeed with a truncated .image.json (review comment)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The change correctly propagates pipeline failures and removes partial output.

Review effort: Balanced
Findings: None

What changed in this PR

Ensures .image.json generation fails safely when any pipeline stage errors.

Changes:

  • Enables Bash pipefail for the recipe.
  • Deletes incomplete targets after recipe failures.
File Description
Makefile Adds pipeline error propagation and cleanup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 15:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused change correctly propagates pipeline failures and removes incomplete output.

Review effort: Balanced
Findings: None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog (Not Ready)

Development

Successfully merging this pull request may close these issues.

2 participants