Skip to content

feat: return build error reason - #675

Merged
leafty merged 5 commits into
kpack-resourcesfrom
leafty/build-error-reason
Feb 28, 2025
Merged

leafty merged 5 commits into
kpack-resourcesfrom
leafty/build-error-reason

Conversation

@leafty

@leafty leafty commented Feb 27, 2025 •

Copy link
Copy Markdown
Member

Propagate the reason an image build failed by capturing the corresponding condition.reason from Shipwright.

See docs: Understanding the state of a BuildRun

Example response:

GET /environments/01JN3MZ8E9WMQX34Z860ZT6NV3/builds
[
    {
        "id": "01JN5SF67AHKYHEN2F6H5HYFJH",
        "environment_id": "01JN3MZ8E9WMQX34Z860ZT6NV3",
        "created_at": "2025-02-28T08:06:21.119234Z",
        "error_reason": "StepOutOfMemory",
        "status": "failed"
    }
]

Also, the build cancellation is now done according to Shipwright's cancellation docs (https://shipwright.io/docs/build/buildrun/#canceling-a-buildrun).

/deploy #notest renku=build/session-env-builders renku-notebooks=leafty/shipwright-buildrun-cache renku-ui=build/session-env-builders extra-values=dataService.imageBuilders.enabled=true,dataService.imageBuilders.pushSecretName=flora-docker-secret,dataService.imageBuilders.buildRunRetentionAfterFailedSeconds=86400,dataService.imageBuilders.nodeSelector.renku.io/node-purpose=image-build,dataService.imageBuilders.tolerations[0].key=renku.io/dedicated,dataService.imageBuilders.tolerations[0].operator=Equal,dataService.imageBuilders.tolerations[0].effect=NoSchedule,dataService.imageBuilders.tolerations[0].value=image-build,dataService.imageBuilders.outputImagePrefix=harbor.dev.renku.ch/flora-dev/

@leafty
leafty temporarily deployed to renku-ci-ds-675 February 27, 2025 11:58 — with GitHub Actions Inactive
@RenkuBot

Copy link
Copy Markdown
Contributor

@leafty
leafty temporarily deployed to renku-ci-ds-675 February 27, 2025 12:14 — with GitHub Actions Inactive
@leafty
leafty force-pushed the leafty/node-selection branch from f2eefad to a50d439 Compare February 28, 2025 09:16
@leafty
leafty force-pushed the leafty/build-error-reason branch from 62aa49a to b982d12 Compare February 28, 2025 09:26
Base automatically changed from leafty/node-selection to kpack-resources February 28, 2025 10:06
@leafty
leafty force-pushed the leafty/build-error-reason branch from b982d12 to ed01442 Compare February 28, 2025 10:07
@leafty
leafty temporarily deployed to renku-ci-ds-675 February 28, 2025 10:07 — with GitHub Actions Inactive
@leafty
leafty marked this pull request as ready for review February 28, 2025 10:27
@leafty
leafty requested a review from a team as a code owner February 28, 2025 10:27
@leafty
leafty deleted the leafty/build-error-reason branch February 28, 2025 14:49
@RenkuBot

Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

Panaetius pushed a commit that referenced this pull request Mar 3, 2025
Propagate the reason an image build failed by capturing the corresponding `condition.reason` from Shipwright.

Also, the build cancellation is now done properly.
Panaetius pushed a commit that referenced this pull request Mar 5, 2025
Propagate the reason an image build failed by capturing the corresponding `condition.reason` from Shipwright.

Also, the build cancellation is now done properly.
leafty added a commit that referenced this pull request Mar 5, 2025
Propagate the reason an image build failed by capturing the corresponding `condition.reason` from Shipwright.

Also, the build cancellation is now done properly.
Panaetius pushed a commit that referenced this pull request Mar 6, 2025
Propagate the reason an image build failed by capturing the corresponding `condition.reason` from Shipwright.

Also, the build cancellation is now done properly.
leafty added a commit that referenced this pull request Mar 6, 2025
Propagate the reason an image build failed by capturing the corresponding `condition.reason` from Shipwright.

Also, the build cancellation is now done properly.

This branch was successfully deployed

1 active deployment
renku-ci-ds-675 — 95c61614 Deployed Feb 28, 2025 by leafty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants