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

Federation end2end test scripts and Makefile targets #1341

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

jschaul
Copy link
Member

@jschaul jschaul commented Jan 26, 2021

For easier review, this PR is a small piece from the now-long-running "federation" branch #1319 with the following purpose:

  • introduces telepresence as a new development dependency (right now only for running end2end federation tests spanning multiple backends)
  • prepares using brig as a place to keep some federation end2end tests spanning more than one backend, by using pattern matching on brig-federation: those tests will not run by default locally or on CI, until they are more stable and CI can actually run them.
  • Makefile targets and bash scripts to spawn up two backends (one backend will have a namespace-suffix-by-convention)
  • Each ephemeral backend will have a unique federationDomain (based on the kubernetes namespace), so that tests spanning multiple backends become possible.

(if you want to try this out for real, the following can be run:

git fetch
git checkout mu # yeah, not everything is available on this branch yet)
export NAMESPACE=joe-dev # or any other namespace as long as kubernetes still has enough ram/cpu
export DOCKER_TAG=0.0.1-pr.3300
make kube-integration-setup-federation # sets up two backends
make kube-integration-federation # runs one test using telepresence

For easier review, this PR is a small piece from the now-long-running
"federation" branch #1319 with the
following purpose:

* introduces telepresence as a new development dependency (right now only for
  running end2end federation tests spanning multiple backends)
* prepares using brig as a place to keep some federation end2end tests spanning
  more than one backend, by using pattern matching on `brig-federation`: those
tests will not run by default locally or on CI, until they are more stable and
CI can actually run them.
* Makefile targets and bash scripts to spawn up two backends (one backend will
  have a namespace-suffix-by-convention) and run a telepresence-based
integration test.
* Each ephemeral backend will have a unique federationDomain (based on the
  kubernetes namespace), so that tests spanning multiple backends become
possible.
jschaul added a commit that referenced this pull request Jan 26, 2021
For easier review, this PR is a small piece from the now-long-running "federation" branch #1319 with the following purpose:

* refactor some brig-integration setup code (remove looking at environment
  variables)
* brig now knows about federator's existence in the config file. This is
  an optional field. (should it be required?)
* introduce a first test that needs two backends. This test is failing
  on this branch (but working to success on #1319 currently), but will
  be disabled-by-default to run both on CI and locally, as long as this PR
  is merged *after* #1341
@jschaul jschaul mentioned this pull request Jan 26, 2021
Copy link
Member

@akshaymankar akshaymankar left a comment

Choose a reason for hiding this comment

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

Looks good, this PR ideally should've just been merged with #1342 some assumptions here are only programmed there.

@jschaul jschaul merged commit 545e961 into develop Jan 27, 2021
@jschaul jschaul deleted the federation-end2end-tests branch January 27, 2021 10:19
jschaul added a commit that referenced this pull request Jan 27, 2021
For easier review, this PR is a small piece from the now-long-running "federation" branch #1319 with the following purpose:

* refactor some brig-integration setup code (remove looking at environment
  variables)
* brig now knows about federator's existence in the config file. This is
  an optional field. (should it be required?)
* introduce a first test that needs two backends. This test is failing
  on this branch (but working to success on #1319 currently), but will
  be disabled-by-default to run both on CI and locally, as long as this PR
  is merged *after* #1341
jschaul added a commit that referenced this pull request Jan 27, 2021
* Brig integration/end2end initial test for federation

For easier review, this PR is a small piece from the now-long-running "federation" branch #1319 with the following purpose:

* refactor some brig-integration setup code (remove looking at environment
  variables)
* brig now knows about federator's existence in the config file. This is
  an optional field. (should it be required?)
* introduce a first test that needs two backends. This test is failing
  on this branch (but working to success on #1319 currently), but will
  be disabled-by-default to run both on CI and locally, as long as this PR
  is merged *after* #1341
* log pods and maybe errors when something (helm upgrade) fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants