Skip to content

Conversation

@sayan-biswas
Copy link
Contributor

@sayan-biswas sayan-biswas commented Aug 29, 2025

Changes

  • Check if BuildSpec exists in Status of BuildRun, since it an optional field in the API
  • Try to get SourceOrigin from BuildRunSpec if it doesn't exist in BuildRun status.

Fixes #339

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

Release Notes

Fixes "buildrun list" command for BuildRuns with invalid BuildSpec.

# Changes:
- Check if BuildSpec exists in Status of BuildRun, since it an optional field in the API
- Try to get SourceOrigin from BuildRunSpec if it doesn't exist in BuildRun status.

Signed-off-by: Sayan Biswas <[email protected]>
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 29, 2025
@openshift-ci openshift-ci bot requested review from adambkaplan and rxinui August 29, 2025 10:58
@sayan-biswas sayan-biswas moved this to In Progress in Shipwright Overview Sep 1, 2025
@adambkaplan adambkaplan added this to the release-v0.17.0 milestone Sep 2, 2025
@adambkaplan
Copy link
Member

/kind bug

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 2, 2025
Copy link
Member

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

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

/approve

/lgtm

A good fix to squeeze into the v0.17.0 release.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 2, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 2, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 2, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 1a95935 into shipwright-io:main Sep 2, 2025
11 of 12 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Shipwright Overview Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] panic: runtime error: invalid memory address or nil pointer dereference, when listing BuildRun

2 participants