TEST: Add e2e tests for shp buildrun gather#402
Conversation
Signed-off-by: karthik balasubramanian <karthikbalasubramanian08@gmail.com>
|
@kaizakin: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull request overview
Adds an end-to-end Bats test to validate the shp buildrun gather workflow, ensuring BuildRun diagnostics can be collected into a directory and packaged as an archive.
Changes:
- Introduces an e2e test that creates a Build + BuildRun and runs
shp buildrun gatherto validate gathered artifacts. - Verifies log collection under the gathered diagnostics directory.
- Adds coverage for
--archiveoutput behavior (creates.tar.gzand removes the expanded directory).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| assert_file_exist "${gather_dir}/buildrun.yaml" | ||
| assert_file_exist "${gather_dir}/taskrun.yaml" | ||
| assert_file_exist "${gather_dir}/pod.yaml" |
| run shp build create ${build_name} \ | ||
| --source-git-url=https://github.com/shipwright-io/sample-go \ | ||
| --source-context-dir=source-build \ | ||
| --output-image=${output_image} |
Changes
shp buildrun gatherRelated Issue
Fixes #401
Type of PR
/kind test
/kind feature
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes