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

Fixes 0.6.0 version compatibility issues #223

Merged
merged 2 commits into from
Aug 21, 2019

Conversation

hrishin
Copy link
Member

@hrishin hrishin commented Aug 20, 2019

Changes

The pipeline version 0.6.0 has introduced following changes

  • Pipeline/PipelineParam was the string value, now it has
    changed to ArrayOrString
  • SeedTestData method were accepting two params, now it has
    introduced context as 3rd param

which essentially broke the compatibility with existing pipeline
API's

This patch fixes,

  • Pipeline/PipelineRun params, now refers to type of ArrayOrString
  • SeedTestData() utility fixes the context param issue, by extracting
    the function call at one place. So in future if API changes, hopefully
    need to fix at one place

Fixes #220

Submitter Checklist

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

See the contribution guide
for more details.

Release Notes

Breaking change with pipeline versions < 0.6.0

@tekton-robot tekton-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 20, 2019
@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/cmd/pipelinerun/describe.go 92.1% 89.5% -2.6

@hrishin hrishin changed the title fixes 0.6.0 version comptability issues fixes 0.6.0 version compatibility issues Aug 20, 2019
@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/cmd/pipelinerun/describe.go 92.1% 89.5% -2.6

@hrishin
Copy link
Member Author

hrishin commented Aug 20, 2019

/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 20, 2019
@hrishin
Copy link
Member Author

hrishin commented Aug 20, 2019

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 20, 2019
@vdemeester vdemeester added this to the 0.3.0 🐱 milestone Aug 21, 2019
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.

/lgtm

We need to test how it react to array parameters when doing a tkn pipeline start, but at least it doesn't panic anymore 👼

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2019
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hrishin, 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

The perline version 0.6.0 has introduced following changes
 - Pipeline/PipelineParam was the string value, now it has
   changed to ArrayOrString
 - SeedTestData method were accpeting two params, now it has
   introduced `context` as 3rd param

which essentially broke the compatbility with execsting pipeline
API's

This patch fixes,
- Pipeline/PipelineRun params now refers to type of ArrayOrString
- SeedTestData() utility fixes the context param issue, by extracting
  the function call at one place. So in future if API changes, hopefully
  need to fix at one place

Fixes tektoncd#220
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2019
@vdemeester
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2019
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2019
@vdemeester
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2019
@tekton-robot tekton-robot merged commit 1a1d7a5 into tektoncd:master Aug 21, 2019
@hrishin hrishin changed the title fixes 0.6.0 version compatibility issues Fixes 0.6.0 version compatibility issues Aug 22, 2019
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 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.

tkn throw errors for array type params
4 participants