tektoncd / results

Long term storage of execution results.
Apache License 2.0
77 stars 73 forks source link

handle all terminal states when processing logs #699

Closed gabemontero closed 8 months ago

gabemontero commented 8 months ago

Changes

Fixes https://github.com/tektoncd/results/issues/698

/kind bug

The prior check for whether the results Object had completed did not account for objects which had been cancelled. Rather then check every conceivable terminal state, this commit instead makes sure it is not in the Unknown state, which means it has not terminated.

rh-pre-commit.version: 2.1.0 rh-pre-commit.check-secrets: ENABLED

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you review them:

Release Notes

Tekton results will now store logs when the supported runs in question are cancelled
gabemontero commented 8 months ago

/assign @avinal /assign @sayan-biswas

@enarha @ramessesii2 @khrm FYI

tekton-robot commented 8 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ramessesii2, sayan-biswas

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

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tektoncd/results/blob/main/OWNERS)~~ [sayan-biswas] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
khrm commented 8 months ago

/cherry-pick release-v0.9.x

tekton-robot commented 8 months ago

@khrm: new pull request created: #701

In response to [this](https://github.com/tektoncd/results/pull/699#issuecomment-1922907009): > >/cherry-pick release-v0.9.x > > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.