Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pipeline results #2178

Merged
merged 1 commit into from
Apr 6, 2020
Merged

Add pipeline results #2178

merged 1 commit into from
Apr 6, 2020

Conversation

othomann
Copy link
Contributor

@othomann othomann commented Mar 6, 2020

Changes

Add pipeline results to the pipeline spec and pipeline run status.

Submitter Checklist

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

Release Notes

Add pipeline results to pipeline specs and pipeline run status.

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Mar 6, 2020
@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Mar 6, 2020
@othomann othomann mentioned this pull request Mar 6, 2020
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.2% 93.5% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 34.0% 28.6% -5.4
test/builder/pipeline.go 86.8% 83.6% -3.2

@ghost ghost requested a review from skaegi March 6, 2020 18:13
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.2% 93.5% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 34.0% 28.6% -5.4
test/builder/pipeline.go 86.8% 83.6% -3.2

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.2% 93.5% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 34.0% 28.6% -5.4
test/builder/pipeline.go 86.8% 83.6% -3.2

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.2% 93.5% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 34.0% 28.6% -5.4
test/builder/pipeline.go 86.8% 83.6% -3.2

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.2% 93.5% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 34.0% 28.6% -5.4
test/builder/pipeline.go 86.8% 83.6% -3.2

@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 10, 2020
@othomann
Copy link
Contributor Author

I rebased on master.

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.2% 93.5% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 34.0% 28.6% -5.4
test/builder/pipeline.go 87.0% 83.8% -3.1

@othomann
Copy link
Contributor Author

@skaegi @sbwsg any update on reviews?

@ghost
Copy link

ghost commented Mar 12, 2020

Apologies, I haven't had time to review much the past week or two due to the Beta release coming up. I'm still quite focused on that work so can't commit to reviewing right now. I will try to carve out some time next week (when I am on buildcop rotation) to pick up reviews again. Sorry for the frustrating lack of feedback so far!

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.2% 93.5% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 34.0% 28.6% -5.4
test/builder/pipeline.go 87.1% 84.0% -3.1

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Really sorry for the delay in reviewing! I've left a bunch of comments but I think the overall approach here is a good way to go.

It would be amazing if we could pull all of the ResultRef-related processing out of the v1beta1 package completely. It lives right now in param_types.go but I feel like it's quickly growing out of the scope of that file. Maybe we could put it in its own package like pkg/result similar to pkg/workspace? Or should we tackle that in a future refactoring PR?

pkg/apis/pipeline/v1beta1/param_types.go Outdated Show resolved Hide resolved
pkg/apis/pipeline/v1beta1/param_types.go Outdated Show resolved Hide resolved
pkg/apis/pipeline/v1beta1/param_types.go Outdated Show resolved Hide resolved
pkg/apis/pipeline/v1beta1/pipelinerun_types.go Outdated Show resolved Hide resolved
pkg/apis/pipeline/v1beta1/pipelinerun_types.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun.go Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun.go Outdated Show resolved Hide resolved
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 96.3% 93.7% -2.6
pkg/apis/pipeline/v1beta1/param_types.go 31.6% 26.9% -4.7
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 94.4% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 70.0% -17.5
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 94.4% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 87.1% -0.4
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 94.4% -2.7
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 87.1% -0.4
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go 76.2% 78.3% 2.1
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 93.2% -3.9
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 78.3% -9.2
pkg/apis/pipeline/v1beta1/resultref.go Do not exist 90.9%
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go 76.2% 78.3% 2.1
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 93.2% -3.9
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 78.3% -9.2
pkg/apis/pipeline/v1beta1/resultref.go Do not exist 90.9%
test/builder/pipeline.go 87.1% 84.0% -3.1

@othomann
Copy link
Contributor Author

othomann commented Apr 3, 2020

/test pull-tekton-pipeline-integration-tests

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go 76.2% 78.3% 2.1
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 93.2% -3.9
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 78.3% -9.2
pkg/apis/pipeline/v1beta1/resultref.go Do not exist 90.9%
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go 76.2% 78.3% 2.1
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 93.2% -3.9
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 78.3% -9.2
pkg/apis/pipeline/v1beta1/resultref.go Do not exist 90.9%
test/builder/pipeline.go 87.1% 84.0% -3.1

@othomann
Copy link
Contributor Author

othomann commented Apr 3, 2020

@sbwsg I think I addressed all your concerns. Could you please review the latest input? Thank you.

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/meow

@tekton-robot
Copy link
Collaborator

@vdemeester: cat image

In response to this:

/meow

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/test-infra repository.

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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:

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 6, 2020
if ok {
got, err := v1beta1.NewResultRefs(expressions)
if tt.wantErr != (err != nil) {
t.Errorf("TestNewResultReference/%s wantErr %v, error = %v", tt.name, tt.wantErr, err)
Copy link

Choose a reason for hiding this comment

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

Now that we have resultref.go we should also move these tests into resultref_test.go:

  • TestNewResultReference
  • TestHasResultReference
  • TestLooksLikeResultRef

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, will do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I change that, a new approval will be needed.

@tekton-robot tekton-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 6, 2020
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go 76.2% 78.3% 2.1
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 93.2% -3.9
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 78.3% -9.2
pkg/apis/pipeline/v1beta1/resultref.go Do not exist 90.9%
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go 76.2% 78.3% 2.1
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 93.2% -3.9
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 78.3% -9.2
pkg/apis/pipeline/v1beta1/resultref.go Do not exist 90.9%
test/builder/pipeline.go 87.1% 84.0% -3.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1alpha1/pipeline_types.go 76.2% 78.3% 2.1
pkg/apis/pipeline/v1alpha1/pipeline_validation.go 97.1% 93.2% -3.9
pkg/apis/pipeline/v1beta1/param_types.go 87.5% 78.3% -9.2
pkg/apis/pipeline/v1beta1/resultref.go Do not exist 90.9%
test/builder/pipeline.go 87.1% 84.0% -3.1

@ghost
Copy link

ghost commented Apr 6, 2020

/lgtm

@tekton-robot tekton-robot assigned ghost Apr 6, 2020
@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 6, 2020
@tekton-robot tekton-robot merged commit a8946d4 into tektoncd:master Apr 6, 2020
@vdemeester
Copy link
Member

🎉

@bobcatfish
Copy link
Collaborator

Hey @othomann @vdemeester @sbwsg I'm having trouble finding an issue and/or use cases associated with this feature, can you point me in the right direction?

@ghost
Copy link

ghost commented Apr 6, 2020

Here's the issue: #1950

@afrittoli afrittoli added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 30, 2020
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. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants