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

Run CI YAML Example tests using go test #2685

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

thomaschandler
Copy link
Contributor

@thomaschandler thomaschandler commented May 23, 2020

Changes

Update to accurately report specific example failures by name. E2E YAML
tests now use same harness and output format as other tests. Fixes #1251

Add a new yaml build tag so that existing integration tests aren't
affected. Future updates to SubEnv may allow e2e tests to be run entirely
locally by avoiding external deps, see #1372

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

N/A

@tekton-robot tekton-robot requested review from dibyom and a user May 23, 2020 21:08
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 23, 2020

CLA Check
The committers are authorized under a signed CLA.

@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 23, 2020
@tekton-robot
Copy link
Collaborator

Hi @thomaschandler. 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
Copy link
Collaborator

This PR cannot be merged: expecting exactly one kind/ label

Available kind/ labels are:

kind/bug: Categorizes issue or PR as related to a bug.
kind/flake: Categorizes issue or PR as related to a flakey test
kind/cleanup: Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/design: Categorizes issue or PR as related to design.
kind/documentation: Categorizes issue or PR as related to documentation.
kind/feature: Categorizes issue or PR as related to a new feature.
kind/misc: Categorizes issue or PR as a miscellaneuous one.

2 similar comments
@tekton-robot
Copy link
Collaborator

This PR cannot be merged: expecting exactly one kind/ label

Available kind/ labels are:

kind/bug: Categorizes issue or PR as related to a bug.
kind/flake: Categorizes issue or PR as related to a flakey test
kind/cleanup: Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/design: Categorizes issue or PR as related to design.
kind/documentation: Categorizes issue or PR as related to documentation.
kind/feature: Categorizes issue or PR as related to a new feature.
kind/misc: Categorizes issue or PR as a miscellaneuous one.

@tekton-robot
Copy link
Collaborator

This PR cannot be merged: expecting exactly one kind/ label

Available kind/ labels are:

kind/bug: Categorizes issue or PR as related to a bug.
kind/flake: Categorizes issue or PR as related to a flakey test
kind/cleanup: Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/design: Categorizes issue or PR as related to design.
kind/documentation: Categorizes issue or PR as related to documentation.
kind/feature: Categorizes issue or PR as related to a new feature.
kind/misc: Categorizes issue or PR as a miscellaneuous one.

@jlpettersson
Copy link
Member

/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 May 24, 2020
@tekton-robot
Copy link
Collaborator

This PR cannot be merged: expecting exactly one kind/ label

Available kind/ labels are:

kind/bug: Categorizes issue or PR as related to a bug.
kind/flake: Categorizes issue or PR as related to a flakey test
kind/cleanup: Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/design: Categorizes issue or PR as related to design.
kind/documentation: Categorizes issue or PR as related to documentation.
kind/feature: Categorizes issue or PR as related to a new feature.
kind/misc: Categorizes issue or PR as a miscellaneuous one.

1 similar comment
@tekton-robot
Copy link
Collaborator

This PR cannot be merged: expecting exactly one kind/ label

Available kind/ labels are:

kind/bug: Categorizes issue or PR as related to a bug.
kind/flake: Categorizes issue or PR as related to a flakey test
kind/cleanup: Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/design: Categorizes issue or PR as related to design.
kind/documentation: Categorizes issue or PR as related to documentation.
kind/feature: Categorizes issue or PR as related to a new feature.
kind/misc: Categorizes issue or PR as a miscellaneuous one.

@thomaschandler thomaschandler force-pushed the ci_yaml_with_go_test branch 2 times, most recently from 3b9dfd7 to eef02f1 Compare May 24, 2020 19:27
@jlpettersson
Copy link
Member

The sidecar-test is known for being flaky :( #2656

@thomaschandler
Copy link
Contributor Author

The sidecar-test is known for being flaky :( #2656

@jlpettersson Thanks for the heads up :) I've been flaky and not pushed all my changes, fingers crossed all is well now!

@jlpettersson
Copy link
Member

/cc @bobcatfish

@ghost
Copy link

ghost commented May 26, 2020

Thanks for this! Just so you are aware, we have an existing PR open to tackle this here: #2685 #2541

Probably worth coordinating to figure out which one to merge.

@bobcatfish
Copy link
Collaborator

Whoops, sorry @thomaschandler that we both ended up working on this one at the same time :( I think that #2541 which I've been working on is passing tests right now (or did last week crossed fingers) - looking at this one and at #2541 it seems like they are very similar, but this one has some improvements in that it's making use of the test libs vs calling out to kubectl constantly like I'm doing - assuming #2541 continues passing, what do you think if we merge that one and then you could merge the improvements that this PR adds?

@thomaschandler
Copy link
Contributor Author

Whoops, sorry @thomaschandler that we both ended up working on this one at the same time :( I think that #2541 which I've been working on is passing tests right now (or did last week crossed fingers) - looking at this one and at #2541 it seems like they are very similar, but this one has some improvements in that it's making use of the test libs vs calling out to kubectl constantly like I'm doing - assuming #2541 continues passing, what do you think if we merge that one and then you could merge the improvements that this PR adds?

@bobcatfish No worries! Promising to see the overlap so that I know I'm somewhat on the money.

I'll rebase once #2541 is merged in. Am I ok to keep this MR open and attached to #1251? Do you have any design suggestions as I integrate with your changes?

@bobcatfish
Copy link
Collaborator

Promising to see the overlap so that I know I'm somewhat on the money.

There was a lot more overlap than I expected!! Both PRs had the tests each running in their own namespace and both were making use of the cleanup interrupt handler :D

Do you have any design suggestions as I integrate with your changes?

I think the biggest difference is that you were using our existing libs to poll instead of recreating the logic and shelling out to kubectl like I am, which is a big improvement! :D

So no particular feedback from me - sorry again about this!

@tekton-robot
Copy link
Collaborator

This PR cannot be merged: expecting exactly one kind/ label

Available kind/ labels are:

kind/bug: Categorizes issue or PR as related to a bug.
kind/flake: Categorizes issue or PR as related to a flakey test
kind/cleanup: Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/design: Categorizes issue or PR as related to design.
kind/documentation: Categorizes issue or PR as related to documentation.
kind/feature: Categorizes issue or PR as related to a new feature.
kind/misc: Categorizes issue or PR as a miscellaneuous one.

@afrittoli
Copy link
Member

/kind misc

@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 7, 2020
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 8, 2020
Copy link
Collaborator

@bobcatfish bobcatfish left a comment

Choose a reason for hiding this comment

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

This is great, looks really clean!! Thanks @thomaschandler (and sorry it took so long to get back to this)

I'm very very excited to have this!

/lgtm
/approve
/meow

@@ -17,7 +17,7 @@ spec:
tasks:
- name: cluster-task-pipeline-4
taskRef:
name: cluster-task-pipeline-4
name: cluster-task-pipeline-4-v1alpha1
Copy link
Collaborator

Choose a reason for hiding this comment

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

🎉

failed=1
fi
done
go_test_e2e -tags=examples -timeout=20m ./test/ || failed=1
Copy link
Collaborator

Choose a reason for hiding this comment

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

good catch, i didnt notice this script!

@tekton-robot
Copy link
Collaborator

@bobcatfish: cat image

In response to this:

This is great, looks really clean!! Thanks @thomaschandler (and sorry it took so long to get back to this)

I'm very very excited to have this!

/lgtm
/approve
/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.

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bobcatfish

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 Jun 22, 2020
@bobcatfish
Copy link
Collaborator

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 22, 2020
@tekton-robot tekton-robot merged commit 4fb1078 into tektoncd:master Jun 22, 2020
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 22, 2023
Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the apply_resources function to enable the 2nd
scenario of the upgrade test work by applying the resources from the old
server version of pipeline. It was preivously renamed and removed in
tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test.

part of: tektoncd#5193
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 22, 2023
Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the apply_resources function to enable the 2nd
scenario of the upgrade test work by applying the resources from the old
server version of pipeline. It was preivously renamed and removed in
tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates resources in v1 examples that are
not under beta or no-ci.

part of: tektoncd#5193
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 22, 2023
Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the apply_resources function to enable the 2nd
scenario of the upgrade test work by applying the resources from the old
server version of pipeline. It was preivously renamed and removed in
tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates resources in v1 examples that are
not under beta or no-ci.

part of: tektoncd#5193
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 23, 2023
Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the apply_resources function to enable the 2nd
scenario of the upgrade test work by applying the resources from the old
server version of pipeline. It was preivously renamed and removed in
tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates resources in v1 examples that are
not under beta or no-ci.

part of: tektoncd#5193
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 28, 2023
Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed and removed in tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes tektoncd#6868
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 28, 2023
Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the apply_resources function to enable the 2nd
scenario of the upgrade test work by applying the resources from the old
server version of pipeline. It was preivously renamed and removed in
tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates resources in v1 examples that are
not under beta or no-ci.

part of: tektoncd#5193
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 28, 2023
Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed and removed in tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes tektoncd#6868
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 29, 2023
…esources

Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed in tektoncd#1351 and then removed in tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes tektoncd#6868
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 29, 2023
…esources

Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed in tektoncd#1351 and then removed in tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes tektoncd#6868
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 29, 2023
…esources

Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed in tektoncd#1351 and then removed in tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes tektoncd#6868
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 29, 2023
…esources

Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed in tektoncd#1351 and then removed in tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes tektoncd#6868
JeromeJu added a commit to JeromeJu/pipeline that referenced this pull request Jun 30, 2023
…esources

Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed in tektoncd#1351 and then removed in tektoncd#2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes tektoncd#6868
tekton-robot pushed a commit that referenced this pull request Jul 10, 2023
…esources

Scenario 2 of the upgrade test aims to install pipeline server from the
preivous release, create resources from that version and test on those
resources against the client of the current release.

This commit restores the resources creation of simple Task and Pipeline
resources to enable the 2nd scenario of the upgrade test to work by
applying the resources from the old server version of pipeline. It was
preivously renamed in #1351 and then removed in #2685.

It fixes the missing piece where the required resources from the previous
release have not been created to accomplish scenario 2 of the upgrade
test. More specifically, it creates a simple Task and Pipeline resources
and then runs the two simple resources with a TaskRun and PipelineRun
created after upgrading to the current version and verify that they both
run successfully.

/kind misc
Closes #6868
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. kind/misc Categorizes issue or PR as a miscellaneuous one. 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. 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.

Run CI's YAML tests as a go test instead of bash scripts
6 participants