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

Fix issue for upload of pullrequest resource #1715

Closed
wants to merge 1 commit into from

Conversation

vincent-pli
Copy link
Member

Seems the PR instance not Unmarshal from pr.json on the dist when uploading
fix issue: #1714

Changes

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.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes
- Bug fixes
- Any changes in behavior

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign abayer
You can assign the PR to them by writing /assign @abayer in a comment when ready.

The full list of commands accepted by this bot can be found 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 size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 10, 2019
@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Dec 10, 2019
Seems the PR instance not `Unmarshal` from pr.json on the dist when uploading
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 10, 2019
@vincent-pli
Copy link
Member Author

/test pull-tekton-pipeline-integration-tests

1 similar comment
@vincent-pli
Copy link
Member Author

/test pull-tekton-pipeline-integration-tests

@afrittoli
Copy link
Member

Thanks! Is this a follow-up to c87aa79?

/assign @wlynch

@wlynch
Copy link
Member

wlynch commented Dec 10, 2019

Thanks! Is this a follow-up to c87aa79?

/assign @wlynch

I think this is aiming to solve the same issue as #1693. It looks like there was a mix up when cherrypicking that commit for v0.9.1, since it relied on other changes post-v.0.9.0 release cut (the code for v0.9.1 looks significantly different from master - in particular, pkg/pullrequest is completely missing).

@imjasonh @afrittoli To solve #1704 I think we need to pick other pullrequest-init commits into the latest release. In particular:

  • d478e7d Add gitlab support to the PR resource.
  • 780d9bd Handle error opening missing pull-request parts.

I'm fine with proceeding with this change, but we should probably undo the changes made in #1693.

@vincent-pli
Copy link
Member Author

@wlynch
I hit the same issue with branch master, seems there are so many background.
Feel free to close this pr if it's duplicated, thanks.

@afrittoli
Copy link
Member

Thanks! Is this a follow-up to c87aa79?
/assign @wlynch

I think this is aiming to solve the same issue as #1693. It looks like there was a mix up when cherrypicking that commit for v0.9.1, since it relied on other changes post-v.0.9.0 release cut (the code for v0.9.1 looks significantly different from master - in particular, pkg/pullrequest is completely missing).

@imjasonh @afrittoli To solve #1704 I think we need to pick other pullrequest-init commits into the latest release. In particular:

* [d478e7d](https://github.com/tektoncd/pipeline/commit/d478e7d6d576d2e309c6a42ecf8da75c536df681) Add gitlab support to the PR resource.

This is a rather large patch, but I guess it would be difficult to cherry-pick more changes without it?

* [780d9bd](https://github.com/tektoncd/pipeline/commit/780d9bd23a90ddf5282f737a4b42aa1253f62d4a) Handle error opening missing pull-request parts.

I'm fine with proceeding with this change, but we should probably undo the changes made in #1693.

As per @vincent-pli comment, #1693 does not fix the upload issue even on master, and this patch works on top of #1693. Do we still need to revert #1693 then? If so it might be good to include the revert in this PR.

@wlynch
Copy link
Member

wlynch commented Dec 12, 2019

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 12, 2019
@imjasonh
Copy link
Member

Is this fix still needed with the changes at head and in v0.9.2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants