-
Notifications
You must be signed in to change notification settings - Fork 263
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
Integration tests for Tekton #528
Conversation
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.
@mgencur: 0 warnings.
In response to this:
Fixes #
Proposed Changes
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.
0cb353f
to
14640f8
Compare
f30ae82
to
2d4095f
Compare
* also put back the e2e-tests into its original format where it doesn't run the tekton tests
The "build-tests" check is failing but I'm not sure why. They error message is |
The only change I did not commit after running ./hack/build.sh was |
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 a lot @mgencur for putting this together, I've added few comments rest lgtm. We should reference the used tasks from catalog.
test/e2e/tekton_test.go
Outdated
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/buildah-task.yaml"}, runOpts{}) | ||
assert.NilError(t, err) | ||
|
||
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/kn-task.yaml"}, runOpts{}) |
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.
same as for buildah task, lets grab them from catalog
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.
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/kn-task.yaml"}, runOpts{}) | |
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", "https://raw.githubusercontent.com/tektoncd/catalog/master/kn/kn.yaml"}, runOpts{}) |
I think it's because of the golang version used, if you retry( |
test/e2e/tekton_test.go
Outdated
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/buildah-task.yaml"}, runOpts{}) | ||
assert.NilError(t, err) | ||
|
||
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/kn-task.yaml"}, runOpts{}) |
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.
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/kn-task.yaml"}, runOpts{}) | |
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", "https://raw.githubusercontent.com/tektoncd/catalog/master/kn/kn.yaml"}, runOpts{}) |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
apiVersion: tekton.dev/v1alpha1 |
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.
Should the version be parametrized?
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.
If the tests fail with a newer version of Tekton then these files will need to be updated at that point and committed. The tests are there for testing regressions with future versions of Tekton / kn. They're not there to test compatibility of multiple versions of Tekton with different apiVersion
versions; so IMO adding this as a parameter would not bring any benefits.
This reverts commit 3800adb.
84b7a63
to
71a3d33
Compare
This run shows latest changes: https://prow.knative.dev/view/gcs/knative-prow/pr-logs/pull/knative_client/528/pull-knative-client-integration-tests/1202199261303803905 , tests passed. I'll remove the last commit to get it ready for integration. |
This reverts commit 71a3d33.
Hey! Thanks for reviews. All comments addressed. Please review the latest changes. |
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.
/lgtm
@@ -25,15 +25,7 @@ | |||
# the cluster. | |||
|
|||
source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/e2e-tests.sh |
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.
source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/e2e-tests.sh |
@@ -29,29 +29,10 @@ | |||
# of this specified version will be installed in the Kubernetes cluster, and | |||
# all the tests will run against Knative serving of this specific version. | |||
source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/e2e-tests.sh |
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.
source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/e2e-tests.sh |
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.
/lgtm
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.
/lgtm
/approve
Thanks @mgencur !
Logged knative/test-infra#1575 to configure running these e2e as nightly and pre-release Job.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mgencur, navidshaikh 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 |
Addresses knative#527. So it's easy to check them when running E2E tests locally. `e2e-tests.sh` now displays where the artifacts were written once it finishes. For local runs, this is a new temporary directory and will contain both the JUnit XML file and the full go test log.
Fixes #471
Proposed Changes
kn
task to create a Knative Service