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

refactor getTaskRunCreations in the pipelineRun reconciler test suite #6293

Merged
merged 1 commit into from
Apr 18, 2023
Merged

refactor getTaskRunCreations in the pipelineRun reconciler test suite #6293

merged 1 commit into from
Apr 18, 2023

Conversation

airycanon
Copy link
Contributor

@airycanon airycanon commented Mar 5, 2023

Changes

This commit refactors the getTaskRunCreations function in the pipelineRun reconciler test suite. Previously, during PipelineRun reconciliation, getTaskRunCreations checked for the creation action of a TaskRun. With this update, the function first retrieves the TaskRun created by the PipelineRun, and then checks for the creation result of the TaskRun.

closes: #6143

/kind cleanup

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Mar 5, 2023
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 5, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: airycanon / name: Yukun Wang (7ad3197)

@tekton-robot tekton-robot requested a review from jerop March 5, 2023 07:28
@tekton-robot
Copy link
Collaborator

Hi @airycanon. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 tekton-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 5, 2023
@airycanon
Copy link
Contributor Author

airycanon commented Mar 5, 2023

/label area/testing

@tekton-robot
Copy link
Collaborator

@airycanon: The label(s) /label area/testing cannot be applied. These labels are supported: ``

In response to this:

/label area/testing

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.

@airycanon
Copy link
Contributor Author

/area testing

@tekton-robot tekton-robot added the area/testing Issues or PRs related to testing label Mar 5, 2023
@airycanon airycanon changed the title refactor getTaskRunCreations to be explicit on getting TaskRuns refactor getTaskRunCreations to be explicit on getting TaskRuns in the pipelineRun reconciler test suite Mar 5, 2023
@airycanon airycanon changed the title refactor getTaskRunCreations to be explicit on getting TaskRuns in the pipelineRun reconciler test suite refactor getTaskRunCreations in the pipelineRun reconciler test suite Mar 5, 2023
@airycanon
Copy link
Contributor Author

/kind cleanup

@tekton-robot tekton-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Mar 5, 2023
@airycanon
Copy link
Contributor Author

/test check-pr-has-kind-label

@tekton-robot
Copy link
Collaborator

@airycanon: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test check-pr-has-kind-label

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.

@airycanon
Copy link
Contributor Author

/test pull-tekton-pipeline-go-coverage-df

@tekton-robot
Copy link
Collaborator

@airycanon: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test pull-tekton-pipeline-go-coverage-df

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.

@dibyom
Copy link
Member

dibyom commented Mar 6, 2023

/ok-to-test

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 6, 2023
@JeromeJu
Copy link
Member

JeromeJu commented Mar 6, 2023

Thanks @airycanon for the contributions!
/assign

@JeromeJu
Copy link
Member

JeromeJu commented Mar 6, 2023

/meow

@tekton-robot
Copy link
Collaborator

@JeromeJu: 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.

Copy link
Member

@JeromeJu JeromeJu left a comment

Choose a reason for hiding this comment

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

Thanks @airycanon . this looks good to me

@airycanon
Copy link
Contributor Author

/assign @vdemeester

Copy link
Member

@lbernick lbernick left a comment

Choose a reason for hiding this comment

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

thank you @airycanon!

pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
@tekton-robot tekton-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 8, 2023
@airycanon airycanon requested review from lbernick and removed request for jerop March 12, 2023 18:50
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
pkg/reconciler/pipelinerun/pipelinerun_test.go Outdated Show resolved Hide resolved
@tekton-robot tekton-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 10, 2023
@airycanon airycanon requested a review from lbernick April 10, 2023 06:43
@airycanon
Copy link
Contributor Author

@lbernick I have made changes to the code in response to the comments you raised. Could you please review my code again and provide any further feedback? Thanks.

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 12, 2023
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 13, 2023
@airycanon
Copy link
Contributor Author

Hi @lbernick, could you please review my pull request one more time? I made changes based on your feedback and want to make sure it meets your standards. Thanks!

Copy link
Member

@lbernick lbernick left a comment

Choose a reason for hiding this comment

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

thank you for these changes! I think this will make our tests much easier to understand.

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JeromeJu, lbernick

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 14, 2023
@airycanon
Copy link
Contributor Author

@JeromeJu @lbernick This PR seems to be ready now, could you please add an LGTM label to it?

@lbernick
Copy link
Member

We typically have different people approve and LGTM, but maybe @JeromeJu can add LGTM now since he's gotten LGTM permissions since first approving this!

@JeromeJu
Copy link
Member

Thanks for the cleanup!
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 18, 2023
@tekton-robot tekton-robot merged commit 50fa5f1 into tektoncd:main Apr 18, 2023
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. area/testing Issues or PRs related to testing kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesnt merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor getTaskRunCreations to be explicit on getting TaskRuns
6 participants