-
Notifications
You must be signed in to change notification settings - Fork 123
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 #733 the pipeline parameter consumed as file #740
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@pugangxa Create PR and try to resolve the #733. And run the case as attachment, it could add step to use the pipeline parameter content to file, then be consumed as file. But because this file |
Took a look and I think the root cause is that the parameter is in fact from pipeline parameter but not the dependent tasks, so what about match pipeline parameter and add the copy steps, like this:
I tested it can add copy steps but still some issues in the code:
Thanks |
9b96e51
to
902d776
Compare
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
902d776
to
14fe58e
Compare
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
/ok-to-test |
@@ -537,6 +548,24 @@ def big_data_passing_tasks(task: dict, pipelinerun_template: dict, | |||
return task | |||
|
|||
|
|||
def input_artifacts_tasks1(template: dict, artifact: dict) -> dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we manage to reuse the input_artifacts_tasks? If it's too messed up, at least should change the name to something like input_artifacts_tasks_pr_params.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Gang. Yes, it's different function behavior for input_artifacts_tasks and input_artifacts_tasks1. I will update the input_artifacts_tasks1 name.
Thanks very much @huixa for your hard work.
|
Thanks Gang very much. Will follow these issues. |
@googlebot I signed it! |
14fe58e
to
176b376
Compare
@Tomcli Had followed all the comments, could you help review again. Thanks. |
thanks @huixa, can you run For the python lint, you can run |
Thanks @Tomcli. Had fixed these issues and run these 2 commands successfully. Please help review again.
|
176b376
to
822635f
Compare
thanks @huixa for your contributions. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: huixa, Tomcli 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 |
Congratulations! This is your first PR and is a good start point! |
Which issue is resolved by this Pull Request:
Resolves #733
Description of your changes:
Remove the limitations for the pipeline parameter consumed as file.
Environment tested:
python --version
): Python 3.8.6tkn version
):kubectl version
): v1.21.1/etc/os-release
): RHEL8.4Checklist: