Skip to content

feat: get image build logs - #648

Merged
leafty merged 6 commits into
kpack-resourcesfrom
leafty/buildrun-logs
Feb 24, 2025
Merged

leafty merged 6 commits into
kpack-resourcesfrom
leafty/buildrun-logs

Conversation

@leafty

@leafty leafty commented Feb 17, 2025 •

Copy link
Copy Markdown
Member

PR Stack:

Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:

type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: https://github.com/knative/serving/issues/912
x-kubernetes-preserve-unknown-fields: true

In other words, there is no API spec! (In openAPI format)

/deploy #notest renku=build/session-env-builders renku-ui=leafty/session-env-builders-5 renku-notebooks=leafty/shipwright-buildrun-cache extra-values=dataService.imageBuilders.enabled=true,dataService.imageBuilders.outputImagePrefix=harbor.dev.renku.ch/flora-dev/,dataService.imageBuilders.pushSecretName=flora-docker-secret

@leafty
leafty temporarily deployed to renku-ci-ds-648 February 17, 2025 14:53 — with GitHub Actions Inactive
@RenkuBot

Copy link
Copy Markdown
Contributor

build_model = build.dump()

if self.shipwright_client is None:
raise errors.MissingResourceError(message=f"Build with id '{build_id}' does not have logs.")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

question: shouldn't this be a 5xx server error? this happening would mean the server is not set up correctly?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For now, shipwright_client is meant to be None in two cases: when the feature is not enabled and when running tests. In the future, it would be nicer to setup mocks like in components/renku_data_services/k8s/clients.py to improve tests.
In #656 (not ready yet), it should not be possible to run code which would touch shipwright when the feature is not enabled (the routes are not enabled).

@leafty
leafty temporarily deployed to renku-ci-ds-648 February 20, 2025 08:36 — with GitHub Actions Inactive
@leafty
leafty force-pushed the leafty/buildruns-cache branch from 21a8a83 to 89ba296 Compare February 24, 2025 09:35
Base automatically changed from leafty/buildruns-cache to kpack-resources February 24, 2025 09:45
@leafty
leafty force-pushed the leafty/buildrun-logs branch from 3e69fd9 to 40f01df Compare February 24, 2025 09:52
@leafty
leafty merged commit b893871 into kpack-resources Feb 24, 2025
@leafty
leafty deleted the leafty/buildrun-logs branch February 24, 2025 10:09
@RenkuBot

Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

Panaetius pushed a commit that referenced this pull request Feb 24, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)
leafty added a commit that referenced this pull request Feb 25, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)
Panaetius pushed a commit that referenced this pull request Feb 28, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)
Panaetius pushed a commit that referenced this pull request Mar 3, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)
Panaetius pushed a commit that referenced this pull request Mar 5, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)
leafty added a commit that referenced this pull request Mar 5, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)
Panaetius pushed a commit that referenced this pull request Mar 6, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)
leafty added a commit that referenced this pull request Mar 6, 2025
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
```yaml
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: knative/serving#912
x-kubernetes-preserve-unknown-fields: true
```
In other words, there is no API spec!  (In openAPI format)

This branch was successfully deployed

1 active deployment
renku-ci-ds-648 — 40f01dfa Deployed Feb 24, 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