-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Migrate PipelineRun Reconciler Tests to use YAMLParser #4610
Comments
/label "help wanted" |
/help |
@pritidesai: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
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. |
I don't think pipeline/pkg/reconciler/pipelinerun/pipelinerun_test.go Lines 1471 to 1490 in 9c529d3
|
Indeed, there are no changed needed in this test as part of this migration, thank you! |
Refactor the pipelineRun and taskRun create helpers to parse yaml. Requires passing `*testing.T` through all calls. continued work on tektoncd#4610 Signed-off-by: jbpratt <[email protected]>
Refactor the pipelineRun and taskRun create helpers to parse yaml. Requires passing `*testing.T` through all calls. continued work on tektoncd#4610 Signed-off-by: jbpratt <[email protected]>
Refactor the pipelineRun and taskRun create helpers to parse yaml. Requires passing `*testing.T` through all calls. continued work on #4610 Signed-off-by: jbpratt <[email protected]>
This doesn't switch everything - the "global" tasks and other resources are left as is, for example. But it does move most of the explicit `Task` and `TaskRun` structs to parsed YAML instead. Tangentially related to tektoncd#4610. =) Signed-off-by: Andrew Bayer <[email protected]>
This doesn't switch everything - the "global" tasks and other resources are left as is, for example. But it does move most of the explicit `Task` and `TaskRun` structs to parsed YAML instead. Tangentially related to #4610. =) Signed-off-by: Andrew Bayer <[email protected]>
This doesn't switch everything - the "global" tasks and other resources are left as is, for example. But it does move most of the explicit `Task` and `TaskRun` structs to parsed YAML instead. Tangentially related to tektoncd#4610. =) Signed-off-by: Andrew Bayer <[email protected]>
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/lifecycle frozen |
Wanted to bring to light that the |
Noticed that most of the tests have been refactored thanks to #4749. |
Due to the authorization issue, I am not able to edit on the issue itself. So instead leaving this comment to suggest closing this. While some of tests might be outdated, the ones that are left could be marked completed. Tests that might not require any updates.
Outdated:
To confirm:
|
Here's an updated list I compiled.
In addition to the YAML Parser migration, move these three tests to
|
Migration was completed, thank you for the contributions! |
YAML
parsers take aYAML
in a string and returns respective deserialized objects includingTasks
,TaskRuns
,Pipelines
andPipelineRun
- thank you @imjasonh 🎉These parsers can help us simplify the many tests we have in pipelinerun_test.go, and make it easier to add more reconciler tests so that we can safely make changes to the reconciler, such as refactoring and supporting TEP-0090: Matrix.
Because the functions are long, we will use this issue to claim tests (to avoid duplicate work) and track progress. We'd appreciate any contributions to this migration 😸
cc @pritidesai
TestReconcile_InvalidPipelineRunNames- no changes neededIn addition to the YAML Parser migration, move these three tests to
pipelinerunstate_test.go
- these three tests are mainly testingfunc (state PipelineRunState) GetTaskRunsStatus
:The text was updated successfully, but these errors were encountered: