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 trusted resources test code #5820

Closed
2 tasks
Yongxuanzhang opened this issue Dec 1, 2022 · 8 comments
Closed
2 tasks

Refactor trusted resources test code #5820

Yongxuanzhang opened this issue Dec 1, 2022 · 8 comments
Assignees
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@Yongxuanzhang
Copy link
Member

Yongxuanzhang commented Dec 1, 2022

Test helper functions in https://github.com/tektoncd/pipeline/blob/main/test/trustedresources.go should be refactored into files where they are called, this will improved the readability

  1. try to remove the https://github.com/tektoncd/pipeline/blob/main/test/trustedresources.go by adding helper functions to each file
  1. Clean up the test code to meet go style
@Yongxuanzhang
Copy link
Member Author

/assign

@jerop
Copy link
Member

jerop commented Dec 13, 2022

/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 Dec 13, 2022
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jan 4, 2023
This commit fixes tektoncd#5820. It refactors the trusted resouces testing
functions into a testing pkg. This will avoid running unit test on these
functions.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jan 4, 2023
This commit fixes tektoncd#5820. It refactors the trusted resouces testing
functions into a testing pkg. This will avoid running unit test on these
functions.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 13, 2023
@Yongxuanzhang
Copy link
Member Author

/remove-lifecycle stale

@tekton-robot tekton-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 22, 2023
@Yongxuanzhang Yongxuanzhang changed the title Refactor trusted resources test code into a internal pkg Refactor trusted resources test code Mar 22, 2023
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jun 8, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedTask helper
function and use a var in each test file instead to improve the
readability for developers.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jun 8, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedPipeline helper function and use a var in each test file instead to improve the readability for developers.

No functional change.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jun 12, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedPipeline helper function and use a var in each test file instead to improve the readability for developers.

No functional change.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jun 12, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedTask helper
function and use a var in each test file instead to improve the
readability for developers.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jun 20, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedTask helper
function and use a var in each test file instead to improve the
readability for developers.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Jun 20, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedPipeline helper function and use a var in each test file instead to improve the readability for developers.

No functional change.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 6, 2023
tekton-robot pushed a commit that referenced this issue Sep 7, 2023
This commit is part of #5820. It removes the GetUnsignedPipeline helper function and use a var in each test file instead to improve the readability for developers.

No functional change.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
@tekton-robot
Copy link
Collaborator

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 6, 2023
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Oct 27, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedTask helper
function and use a var in each test file instead to improve the
readability for developers.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this issue Oct 27, 2023
This commit is part of tektoncd#5820. It removes the GetUnsignedTask helper
function and use a var in each test file instead to improve the
readability for developers.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
tekton-robot pushed a commit that referenced this issue Oct 30, 2023
This commit is part of #5820. It removes the GetUnsignedTask helper
function and use a var in each test file instead to improve the
readability for developers.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
@tekton-robot
Copy link
Collaborator

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link
Collaborator

@tekton-robot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants