Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Add E2E test to python-base #117

Closed
mitar opened this issue Feb 19, 2019 · 11 comments
Closed

Add E2E test to python-base #117

mitar opened this issue Feb 19, 2019 · 11 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@mitar
Copy link
Contributor

mitar commented Feb 19, 2019

Instead of mocked API. To really test if things work. There is now kind which can help setup a Kubernetes cluster inside a CI against which then to test.

@micw523
Copy link
Contributor

micw523 commented Feb 23, 2019

It's finally arrived for k8s 1.11+...

Yet we've set up the environment for the main repo. It's using minikube inside the CI to run the tests under e2e_test. If you want to make sure it works, you could potentially put some tests there.

@roycaihw roycaihw added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Mar 14, 2019
@roycaihw
Copy link
Member

we have e2e env set up in the main repo and we do run all tests from both repos in python-base CI (e.g. search for "e2e" here)

I think we could add e2e tests in base repo without extra env change. Question is how we manage dependency and packaging for the tests

@roycaihw
Copy link
Member

on the other hand we can improve https://github.com/kubernetes-client/python/blob/master/kubernetes/e2e_test/test_client.py to test watch/follow behavior after #93 is included in the main repo

@micw523
Copy link
Contributor

micw523 commented Mar 25, 2019

If we add e2e tests to the main repo, we'll need to potentially merge a feature / bug fix PR to the base repo first, then check in the base repo commit and the e2e test into the main repo at the same time. It's kind of a pain but it's not impossible.

On the other hand, if we set up e2e in the base repo, we should be fine with the dependencies since the CI are run from the main repo but we do need to tune CI testing. If somebody takes #118 some of the obstacles should be cleared out of the way.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
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.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 23, 2019
@roycaihw
Copy link
Member

/remove-lifecycle stale
/lifecycle frozen
/area test

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 24, 2019
@yliaog
Copy link
Contributor

yliaog commented Aug 13, 2019

/cc @roycaihw

@roycaihw roycaihw changed the title Tests should use proper Kubernetes Add E2E test to python-base Aug 13, 2019
@roycaihw
Copy link
Member

I think #117 (comment) and #117 (comment) still hold. The problem is in python-base developer UX. Developers should be able to add E2E tests in the same PR as their add new features / fix bugs.

Two naive ways of fixing this:

  • just port some e2e tests from the main repo to the base repo and verify if they work. If so, it can be the starting point of adding more e2e tests to python-base
  • merge python and python-base into one repo

@mitar
Copy link
Contributor Author

mitar commented Oct 27, 2021

merge python and python-base into one repo

Yea, I am not sure why these are separate at all. I mean, Python code is generally not used in space-constraint environments, so having base be simply a sub-package of the main Python package is good enough for code reuse (if somebody wants to build a new Python package using code from base). The fact that you would have some extra files around should not bother you.

So, I would propose combining repositories into one Python package, where base becomes a sub-package of the main package with the client.

@roycaihw
Copy link
Member

This repo has been merged into the main python repo. We are archiving this repo. Please open a new issue in the main repo. Thanks!

/close

@k8s-ci-robot
Copy link
Contributor

@roycaihw: Closing this issue.

In response to this:

This repo has been merged into the main python repo. We are archiving this repo. Please open a new issue in the main repo. Thanks!

/close

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

6 participants