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

switch to pubsub implementation of e2e tests #137

Merged
merged 13 commits into from
May 18, 2021

Conversation

aabmass
Copy link
Collaborator

@aabmass aabmass commented May 10, 2021

  • remove gunicorn and flask app (for now)
  • use two pubsub channels to communicate between test runner and instrumented test server
  • status codes are now represented with canonical google.rcp.Code
  • update docker file and cloudbuild config

See passing tests, logs attached for ease of review, or click the link in the Checks section of this PR:

Build logs
starting build "c66ea36e-a9c5-4126-bb08-1317ea1de683"

FETCHSOURCE
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /workspace/.git/
From https://github.com/GoogleCloudPlatform/opentelemetry-operations-python
 * branch            ebf6975dbd6536477638bca6f5e295829f821f89 -> FETCH_HEAD
HEAD is now at ebf6975 use substitution vars
BUILD
Starting Step #0 - "build-test-server"
Step #0 - "build-test-server": Pulling image: docker
Step #0 - "build-test-server": Using default tag: latest
Step #0 - "build-test-server": latest: Pulling from library/docker
Step #0 - "build-test-server": 540db60ca938: Pulling fs layer
Step #0 - "build-test-server": 5a38b3726f4b: Pulling fs layer
Step #0 - "build-test-server": e5fa5deb3340: Pulling fs layer
Step #0 - "build-test-server": 2b7e0e3b7545: Pulling fs layer
Step #0 - "build-test-server": 493333e9491f: Pulling fs layer
Step #0 - "build-test-server": 28d445cfca76: Pulling fs layer
Step #0 - "build-test-server": 32eb6dfb9227: Pulling fs layer
Step #0 - "build-test-server": 2b7e0e3b7545: Waiting
Step #0 - "build-test-server": 493333e9491f: Waiting
Step #0 - "build-test-server": 28d445cfca76: Waiting
Step #0 - "build-test-server": 32eb6dfb9227: Waiting
Step #0 - "build-test-server": e5fa5deb3340: Download complete
Step #0 - "build-test-server": 5a38b3726f4b: Verifying Checksum
Step #0 - "build-test-server": 5a38b3726f4b: Download complete
Step #0 - "build-test-server": 540db60ca938: Verifying Checksum
Step #0 - "build-test-server": 540db60ca938: Download complete
Step #0 - "build-test-server": 493333e9491f: Download complete
Step #0 - "build-test-server": 28d445cfca76: Verifying Checksum
Step #0 - "build-test-server": 28d445cfca76: Download complete
Step #0 - "build-test-server": 32eb6dfb9227: Verifying Checksum
Step #0 - "build-test-server": 32eb6dfb9227: Download complete
Step #0 - "build-test-server": 540db60ca938: Pull complete
Step #0 - "build-test-server": 5a38b3726f4b: Pull complete
Step #0 - "build-test-server": e5fa5deb3340: Pull complete
Step #0 - "build-test-server": 2b7e0e3b7545: Verifying Checksum
Step #0 - "build-test-server": 2b7e0e3b7545: Download complete
Step #0 - "build-test-server": 2b7e0e3b7545: Pull complete
Step #0 - "build-test-server": 493333e9491f: Pull complete
Step #0 - "build-test-server": 28d445cfca76: Pull complete
Step #0 - "build-test-server": 32eb6dfb9227: Pull complete
Step #0 - "build-test-server": Digest: sha256:ad50b8d78b41dc52f42ab123ce0e3f48c54437ed70ecc2a44c99e889924c8e56
Step #0 - "build-test-server": Status: Downloaded newer image for docker:latest
Step #0 - "build-test-server": docker.io/library/docker:latest
Step #0 - "build-test-server": Sending build context to Docker daemon    322kB

Step #0 - "build-test-server": Step 1/13 : FROM python:3.9-slim as python-base
Step #0 - "build-test-server": 3.9-slim: Pulling from library/python
Step #0 - "build-test-server": f7ec5a41d630: Pulling fs layer
Step #0 - "build-test-server": 388aab6f3954: Pulling fs layer
Step #0 - "build-test-server": f8d31dc90ab0: Pulling fs layer
Step #0 - "build-test-server": 9d4ee0e5b63b: Pulling fs layer
Step #0 - "build-test-server": 56f49306e49e: Pulling fs layer
Step #0 - "build-test-server": 9d4ee0e5b63b: Waiting
Step #0 - "build-test-server": 56f49306e49e: Waiting
Step #0 - "build-test-server": 388aab6f3954: Verifying Checksum
Step #0 - "build-test-server": 388aab6f3954: Download complete
Step #0 - "build-test-server": f8d31dc90ab0: Verifying Checksum
Step #0 - "build-test-server": f8d31dc90ab0: Download complete
Step #0 - "build-test-server": 9d4ee0e5b63b: Download complete
Step #0 - "build-test-server": f7ec5a41d630: Verifying Checksum
Step #0 - "build-test-server": f7ec5a41d630: Download complete
Step #0 - "build-test-server": 56f49306e49e: Verifying Checksum
Step #0 - "build-test-server": 56f49306e49e: Download complete
Step #0 - "build-test-server": f7ec5a41d630: Pull complete
Step #0 - "build-test-server": 388aab6f3954: Pull complete
Step #0 - "build-test-server": f8d31dc90ab0: Pull complete
Step #0 - "build-test-server": 9d4ee0e5b63b: Pull complete
Step #0 - "build-test-server": 56f49306e49e: Pull complete
Step #0 - "build-test-server": Digest: sha256:655f71f243ee31eea6774e0b923b990cd400a0689eff049facd2703e57892447
Step #0 - "build-test-server": Status: Downloaded newer image for python:3.9-slim
Step #0 - "build-test-server":  ---> 916173fd88c8
Step #0 - "build-test-server": Step 2/13 : ENV PYTHONFAULTHANDLER=1     PYTHONUNBUFFERED=1     PYTHONHASHSEED=random     PIP_NO_CACHE_DIR=off     PIP_DISABLE_PIP_VERSION_CHECK=on     PIP_DEFAULT_TIMEOUT=100     SRC="/src"
Step #0 - "build-test-server":  ---> Running in c59aa4ce2fc4
Step #0 - "build-test-server": Removing intermediate container c59aa4ce2fc4
Step #0 - "build-test-server":  ---> f6d9aefea01a
Step #0 - "build-test-server": Step 3/13 : WORKDIR $SRC
Step #0 - "build-test-server":  ---> Running in ac9f4d8b9627
Step #0 - "build-test-server": Removing intermediate container ac9f4d8b9627
Step #0 - "build-test-server":  ---> 7de8b65f4535
Step #0 - "build-test-server": Step 4/13 : FROM python-base as build-base
Step #0 - "build-test-server":  ---> 7de8b65f4535
Step #0 - "build-test-server": Step 5/13 : COPY opentelemetry-exporter-gcp-trace opentelemetry-exporter-gcp-trace
Step #0 - "build-test-server":  ---> 4b42b6ce92a9
Step #0 - "build-test-server": Step 6/13 : WORKDIR $SRC/e2e-test-server
Step #0 - "build-test-server":  ---> Running in 924bb544a363
Step #0 - "build-test-server": Removing intermediate container 924bb544a363
Step #0 - "build-test-server":  ---> 47aba2005708
Step #0 - "build-test-server": Step 7/13 : COPY e2e-test-server/requirements.txt e2e-test-server/constraints.txt ./
Step #0 - "build-test-server":  ---> 685563ac2de1
Step #0 - "build-test-server": Step 8/13 : RUN python -m venv venv && ./venv/bin/pip install -r requirements.txt
Step #0 - "build-test-server":  ---> Running in c5c0e14661cd
Step #0 - "build-test-server": Processing /src/opentelemetry-exporter-gcp-trace
Step #0 - "build-test-server": �[91m  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
Step #0 - "build-test-server":    pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Step #0 - "build-test-server": �[0mCollecting opentelemetry-sdk
Step #0 - "build-test-server":   Downloading opentelemetry_sdk-1.1.0-py3-none-any.whl (36 kB)
Step #0 - "build-test-server": Collecting opentelemetry-api
Step #0 - "build-test-server":   Downloading opentelemetry_api-1.1.0-py3-none-any.whl (37 kB)
Step #0 - "build-test-server": Collecting Flask
Step #0 - "build-test-server":   Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Step #0 - "build-test-server": Collecting google-cloud-pubsub
Step #0 - "build-test-server":   Downloading google_cloud_pubsub-2.4.1-py2.py3-none-any.whl (212 kB)
Step #0 - "build-test-server": Collecting googleapis-common-protos
Step #0 - "build-test-server":   Downloading googleapis_common_protos-1.53.0-py2.py3-none-any.whl (198 kB)
Step #0 - "build-test-server": Collecting google-cloud-trace<1.0.0,>=0.24.0
Step #0 - "build-test-server":   Downloading google_cloud_trace-0.24.0-py2.py3-none-any.whl (77 kB)
Step #0 - "build-test-server": Collecting opentelemetry-semantic-conventions==0.20b0
Step #0 - "build-test-server":   Downloading opentelemetry_semantic_conventions-0.20b0-py3-none-any.whl (20 kB)
Step #0 - "build-test-server": Collecting google-cloud-core<2.0dev,>=1.0.3
Step #0 - "build-test-server":   Downloading google_cloud_core-1.6.0-py2.py3-none-any.whl (28 kB)
Step #0 - "build-test-server": Collecting google-api-core[grpc]<2.0.0dev,>=1.14.0
Step #0 - "build-test-server":   Downloading google_api_core-1.26.3-py2.py3-none-any.whl (93 kB)
Step #0 - "build-test-server": Collecting six>=1.13.0
Step #0 - "build-test-server":   Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Step #0 - "build-test-server": Collecting protobuf>=3.12.0
Step #0 - "build-test-server":   Downloading protobuf-3.15.8-cp39-cp39-manylinux1_x86_64.whl (1.0 MB)
Step #0 - "build-test-server": Collecting pytz
Step #0 - "build-test-server":   Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Step #0 - "build-test-server": Collecting packaging>=14.3
Step #0 - "build-test-server":   Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
Step #0 - "build-test-server": Requirement already satisfied: setuptools>=40.3.0 in ./venv/lib/python3.9/site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-trace<1.0.0,>=0.24.0->opentelemetry-exporter-gcp-trace==1.1.0.dev0->-r requirements.txt (line 2)) (56.0.0)
Step #0 - "build-test-server": Collecting google-auth<2.0dev,>=1.21.1
Step #0 - "build-test-server":   Downloading google_auth-1.30.0-py2.py3-none-any.whl (146 kB)
Step #0 - "build-test-server": Collecting requests<3.0.0dev,>=2.18.0
Step #0 - "build-test-server":   Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
Step #0 - "build-test-server": Collecting grpcio<2.0dev,>=1.29.0
Step #0 - "build-test-server":   Downloading grpcio-1.37.0-cp39-cp39-manylinux2014_x86_64.whl (4.2 MB)
Step #0 - "build-test-server": Collecting rsa<5,>=3.1.4
Step #0 - "build-test-server":   Downloading rsa-4.7.2-py3-none-any.whl (34 kB)
Step #0 - "build-test-server": Collecting cachetools<5.0,>=2.0.0
Step #0 - "build-test-server":   Downloading cachetools-4.2.2-py3-none-any.whl (11 kB)
Step #0 - "build-test-server": Collecting pyasn1-modules>=0.2.1
Step #0 - "build-test-server":   Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Step #0 - "build-test-server": Collecting pyparsing>=2.0.2
Step #0 - "build-test-server":   Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Step #0 - "build-test-server": Collecting pyasn1<0.5.0,>=0.4.6
Step #0 - "build-test-server":   Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Step #0 - "build-test-server": Collecting chardet<5,>=3.0.2
Step #0 - "build-test-server":   Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Step #0 - "build-test-server": Collecting certifi>=2017.4.17
Step #0 - "build-test-server":   Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Step #0 - "build-test-server": Collecting urllib3<1.27,>=1.21.1
Step #0 - "build-test-server":   Downloading urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
Step #0 - "build-test-server": Collecting idna<3,>=2.5
Step #0 - "build-test-server":   Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Step #0 - "build-test-server": Collecting Jinja2>=2.10.1
Step #0 - "build-test-server":   Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Step #0 - "build-test-server": Collecting Werkzeug>=0.15
Step #0 - "build-test-server":   Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Step #0 - "build-test-server": Collecting itsdangerous>=0.24
Step #0 - "build-test-server":   Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Step #0 - "build-test-server": Collecting click>=5.1
Step #0 - "build-test-server":   Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Step #0 - "build-test-server": Collecting MarkupSafe>=0.23
Step #0 - "build-test-server":   Downloading MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl (32 kB)
Step #0 - "build-test-server": Collecting proto-plus>=1.7.1
Step #0 - "build-test-server":   Downloading proto_plus-1.18.1-py3-none-any.whl (42 kB)
Step #0 - "build-test-server": Collecting libcst>=0.3.10
Step #0 - "build-test-server":   Downloading libcst-0.3.18-py3-none-any.whl (512 kB)
Step #0 - "build-test-server": Collecting grpc-google-iam-v1<0.13dev,>=0.12.3
Step #0 - "build-test-server":   Downloading grpc-google-iam-v1-0.12.3.tar.gz (13 kB)
Step #0 - "build-test-server": Collecting pyyaml>=5.2
Step #0 - "build-test-server":   Downloading PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Step #0 - "build-test-server": Collecting typing-inspect>=0.4.0
Step #0 - "build-test-server":   Downloading typing_inspect-0.6.0-py3-none-any.whl (8.1 kB)
Step #0 - "build-test-server": Collecting typing-extensions>=3.7.4.2
Step #0 - "build-test-server":   Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Step #0 - "build-test-server": Collecting mypy-extensions>=0.3.0
Step #0 - "build-test-server":   Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Step #0 - "build-test-server": Using legacy 'setup.py install' for opentelemetry-exporter-gcp-trace, since package 'wheel' is not installed.
Step #0 - "build-test-server": Using legacy 'setup.py install' for grpc-google-iam-v1, since package 'wheel' is not installed.
Step #0 - "build-test-server": Installing collected packages: six, pyasn1, urllib3, rsa, pyparsing, pyasn1-modules, protobuf, idna, chardet, certifi, cachetools, requests, pytz, packaging, googleapis-common-protos, google-auth, typing-extensions, mypy-extensions, grpcio, google-api-core, typing-inspect, pyyaml, opentelemetry-semantic-conventions, opentelemetry-api, MarkupSafe, google-cloud-core, Werkzeug, proto-plus, opentelemetry-sdk, libcst, Jinja2, itsdangerous, grpc-google-iam-v1, google-cloud-trace, click, opentelemetry-exporter-gcp-trace, google-cloud-pubsub, Flask
Step #0 - "build-test-server":     Running setup.py install for grpc-google-iam-v1: started
Step #0 - "build-test-server":     Running setup.py install for grpc-google-iam-v1: finished with status 'done'
Step #0 - "build-test-server":     Running setup.py install for opentelemetry-exporter-gcp-trace: started
Step #0 - "build-test-server":     Running setup.py install for opentelemetry-exporter-gcp-trace: finished with status 'done'
Step #0 - "build-test-server": Successfully installed Flask-1.1.2 Jinja2-2.11.3 MarkupSafe-1.1.1 Werkzeug-1.0.1 cachetools-4.2.2 certifi-2020.12.5 chardet-4.0.0 click-7.1.2 google-api-core-1.26.3 google-auth-1.30.0 google-cloud-core-1.6.0 google-cloud-pubsub-2.4.1 google-cloud-trace-0.24.0 googleapis-common-protos-1.53.0 grpc-google-iam-v1-0.12.3 grpcio-1.37.0 idna-2.10 itsdangerous-1.1.0 libcst-0.3.18 mypy-extensions-0.4.3 opentelemetry-api-1.1.0 opentelemetry-exporter-gcp-trace-1.1.0.dev0 opentelemetry-sdk-1.1.0 opentelemetry-semantic-conventions-0.20b0 packaging-20.9 proto-plus-1.18.1 protobuf-3.15.8 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyparsing-2.4.7 pytz-2021.1 pyyaml-5.4.1 requests-2.25.1 rsa-4.7.2 six-1.15.0 typing-extensions-3.10.0.0 typing-inspect-0.6.0 urllib3-1.26.4
Step #0 - "build-test-server": Removing intermediate container c5c0e14661cd
Step #0 - "build-test-server":  ---> 508633b31599
Step #0 - "build-test-server": Step 9/13 : FROM python-base
Step #0 - "build-test-server":  ---> 7de8b65f4535
Step #0 - "build-test-server": Step 10/13 : WORKDIR $SRC/e2e-test-server
Step #0 - "build-test-server":  ---> Running in cb82d5af41ab
Step #0 - "build-test-server": Removing intermediate container cb82d5af41ab
Step #0 - "build-test-server":  ---> 13e49c10a923
Step #0 - "build-test-server": Step 11/13 : COPY --from=build-base $SRC/e2e-test-server/venv venv/
Step #0 - "build-test-server":  ---> 8b6e439df1ac
Step #0 - "build-test-server": Step 12/13 : COPY e2e-test-server/ ./
Step #0 - "build-test-server":  ---> 1959c5431cdd
Step #0 - "build-test-server": Step 13/13 : ENTRYPOINT ["./venv/bin/python", "main.py"]
Step #0 - "build-test-server":  ---> Running in 93a17e8836e7
Step #0 - "build-test-server": Removing intermediate container 93a17e8836e7
Step #0 - "build-test-server":  ---> 0590a5906255
Step #0 - "build-test-server": Successfully built 0590a5906255
Step #0 - "build-test-server": Successfully tagged gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-python-e2e-test-server:ebf6975
Finished Step #0 - "build-test-server"
Starting Step #1 - "push-test-server-image"
Step #1 - "push-test-server-image": Already have image: docker
Step #1 - "push-test-server-image": The push refers to repository [gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-python-e2e-test-server]
Step #1 - "push-test-server-image": ee8ae8cfc55a: Preparing
Step #1 - "push-test-server-image": 905bd3720fbc: Preparing
Step #1 - "push-test-server-image": 8b20deaa86eb: Preparing
Step #1 - "push-test-server-image": 399a4e2f07de: Preparing
Step #1 - "push-test-server-image": 63baf9aeb161: Preparing
Step #1 - "push-test-server-image": d65571482b5c: Preparing
Step #1 - "push-test-server-image": 0bc14b74f645: Preparing
Step #1 - "push-test-server-image": 371ce8b24b31: Preparing
Step #1 - "push-test-server-image": 7e718b9c0c8c: Preparing
Step #1 - "push-test-server-image": d65571482b5c: Waiting
Step #1 - "push-test-server-image": 0bc14b74f645: Waiting
Step #1 - "push-test-server-image": 371ce8b24b31: Waiting
Step #1 - "push-test-server-image": 7e718b9c0c8c: Waiting
Step #1 - "push-test-server-image": 63baf9aeb161: Layer already exists
Step #1 - "push-test-server-image": d65571482b5c: Layer already exists
Step #1 - "push-test-server-image": 0bc14b74f645: Layer already exists
Step #1 - "push-test-server-image": 371ce8b24b31: Layer already exists
Step #1 - "push-test-server-image": 7e718b9c0c8c: Layer already exists
Step #1 - "push-test-server-image": 399a4e2f07de: Pushed
Step #1 - "push-test-server-image": 8b20deaa86eb: Pushed
Step #1 - "push-test-server-image": ee8ae8cfc55a: Pushed
Step #1 - "push-test-server-image": 905bd3720fbc: Pushed
Step #1 - "push-test-server-image": ebf6975: digest: sha256:1a3ef66325a18c794fb6a915da3192a2225aa6fd51b92baadb418e06b3b98fc0 size: 2204
Finished Step #1 - "push-test-server-image"
Starting Step #2 - "run-tests"
Step #2 - "run-tests": Pulling image: gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-e2e-testing:0.5.12
Step #2 - "run-tests": 0.5.12: Pulling from opentelemetry-ops-e2e/opentelemetry-operations-e2e-testing
Step #2 - "run-tests": 7a0880b10a0a: Pulling fs layer
Step #2 - "run-tests": 969870e631c3: Pulling fs layer
Step #2 - "run-tests": 7a90b02b776f: Pulling fs layer
Step #2 - "run-tests": d04ae11027df: Pulling fs layer
Step #2 - "run-tests": d797098b4dd2: Pulling fs layer
Step #2 - "run-tests": d04ae11027df: Waiting
Step #2 - "run-tests": d797098b4dd2: Waiting
Step #2 - "run-tests": 969870e631c3: Verifying Checksum
Step #2 - "run-tests": 969870e631c3: Download complete
Step #2 - "run-tests": 7a90b02b776f: Verifying Checksum
Step #2 - "run-tests": 7a90b02b776f: Download complete
Step #2 - "run-tests": d04ae11027df: Verifying Checksum
Step #2 - "run-tests": d04ae11027df: Download complete
Step #2 - "run-tests": 7a0880b10a0a: Verifying Checksum
Step #2 - "run-tests": 7a0880b10a0a: Download complete
Step #2 - "run-tests": 7a0880b10a0a: Pull complete
Step #2 - "run-tests": d797098b4dd2: Verifying Checksum
Step #2 - "run-tests": d797098b4dd2: Download complete
Step #2 - "run-tests": 969870e631c3: Pull complete
Step #2 - "run-tests": 7a90b02b776f: Pull complete
Step #2 - "run-tests": d04ae11027df: Pull complete
Step #2 - "run-tests": d797098b4dd2: Pull complete
Step #2 - "run-tests": Digest: sha256:ca3947c8e21436b5ae45c18cad1aa0e69b787dfec48d2a330beed8cc0634bd95
Step #2 - "run-tests": Status: Downloaded newer image for gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-e2e-testing:0.5.12
Step #2 - "run-tests": gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-e2e-testing:0.5.12
Step #2 - "run-tests": TestMain: 2021/05/11 22:18:41 setuptf.go:73: Applying any changes to persistent resources
Step #2 - "run-tests": TestMain: 2021/05/11 22:18:41 setuptf.go:47: Running command: /bin/terraform init -input=false -backend-config=bucket=opentelemetry-ops-e2e-e2e-tfstate
Step #2 - "run-tests": 
Step #2 - "run-tests": �[0m�[1mInitializing the backend...�[0m
Step #2 - "run-tests": �[0m�[32m
Step #2 - "run-tests": Successfully configured the backend "gcs"! Terraform will automatically
Step #2 - "run-tests": use this backend unless the backend configuration changes.�[0m
Step #2 - "run-tests": 
Step #2 - "run-tests": �[0m�[1mInitializing provider plugins...�[0m
Step #2 - "run-tests": - Finding hashicorp/google versions matching "3.67.0"...
Step #2 - "run-tests": - Finding hashicorp/kubernetes versions matching "2.1.0"...
Step #2 - "run-tests": - Installing hashicorp/google v3.67.0...
Step #2 - "run-tests": - Installed hashicorp/google v3.67.0 (signed by HashiCorp)
Step #2 - "run-tests": - Installing hashicorp/kubernetes v2.1.0...
Step #2 - "run-tests": - Installed hashicorp/kubernetes v2.1.0 (signed by HashiCorp)
Step #2 - "run-tests": 
Step #2 - "run-tests": Terraform has created a lock file �[1m.terraform.lock.hcl�[0m to record the provider
Step #2 - "run-tests": selections it made above. Include this file in your version control repository
Step #2 - "run-tests": so that Terraform can guarantee to make the same selections by default when
Step #2 - "run-tests": you run "terraform init" in the future.�[0m
Step #2 - "run-tests": 
Step #2 - "run-tests": �[0m�[1m�[32mTerraform has been successfully initialized!�[0m�[32m�[0m
Step #2 - "run-tests": �[0m�[32m
Step #2 - "run-tests": You may now begin working with Terraform. Try running "terraform plan" to see
Step #2 - "run-tests": any changes that are required for your infrastructure. All Terraform commands
Step #2 - "run-tests": should now work.
Step #2 - "run-tests": 
Step #2 - "run-tests": If you ever set or change modules or backend configuration for Terraform,
Step #2 - "run-tests": rerun this command to reinitialize your working directory. If you forget, other
Step #2 - "run-tests": commands will detect it and remind you to do so if necessary.�[0m
Step #2 - "run-tests": TestMain: 2021/05/11 22:18:45 setuptf.go:47: Running command: /bin/terraform workspace select default
Step #2 - "run-tests": TestMain: 2021/05/11 22:18:45 setuptf.go:47: Running command: /bin/terraform apply -input=false -auto-approve -var=project_id=opentelemetry-ops-e2e
Step #2 - "run-tests": �[0m�[1mgoogle_container_cluster.default: Refreshing state... [id=projects/opentelemetry-ops-e2e/locations/us-central1/clusters/e2etest-default]�[0m
Step #2 - "run-tests": �[0m�[1m�[32m
Step #2 - "run-tests": Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Step #2 - "run-tests": �[0mTestMain: 2021/05/11 22:18:49 setuptf.go:47: Running command: /bin/terraform init -input=false -backend-config=bucket=opentelemetry-ops-e2e-e2e-tfstate -var=project_id=opentelemetry-ops-e2e
Step #2 - "run-tests": �[0m�[1mInitializing modules...�[0m
Step #2 - "run-tests": - pubsub in ../modules/pubsub
Step #2 - "run-tests": 
Step #2 - "run-tests": �[0m�[1mInitializing the backend...�[0m
Step #2 - "run-tests": �[0m�[32m
Step #2 - "run-tests": Successfully configured the backend "gcs"! Terraform will automatically
Step #2 - "run-tests": use this backend unless the backend configuration changes.�[0m
Step #2 - "run-tests": 
Step #2 - "run-tests": �[0m�[1mInitializing provider plugins...�[0m
Step #2 - "run-tests": - Finding hashicorp/kubernetes versions matching "2.1.0"...
Step #2 - "run-tests": - Finding hashicorp/google versions matching "3.67.0"...
Step #2 - "run-tests": - Installing hashicorp/kubernetes v2.1.0...
Step #2 - "run-tests": - Installed hashicorp/kubernetes v2.1.0 (signed by HashiCorp)
Step #2 - "run-tests": - Installing hashicorp/google v3.67.0...
Step #2 - "run-tests": - Installed hashicorp/google v3.67.0 (signed by HashiCorp)
Step #2 - "run-tests": 
Step #2 - "run-tests": Terraform has created a lock file �[1m.terraform.lock.hcl�[0m to record the provider
Step #2 - "run-tests": selections it made above. Include this file in your version control repository
Step #2 - "run-tests": so that Terraform can guarantee to make the same selections by default when
Step #2 - "run-tests": you run "terraform init" in the future.�[0m
Step #2 - "run-tests": 
Step #2 - "run-tests": �[0m�[1m�[32mTerraform has been successfully initialized!�[0m�[32m�[0m
Step #2 - "run-tests": �[0m�[32m
Step #2 - "run-tests": You may now begin working with Terraform. Try running "terraform plan" to see
Step #2 - "run-tests": any changes that are required for your infrastructure. All Terraform commands
Step #2 - "run-tests": should now work.
Step #2 - "run-tests": 
Step #2 - "run-tests": If you ever set or change modules or backend configuration for Terraform,
Step #2 - "run-tests": rerun this command to reinitialize your working directory. If you forget, other
Step #2 - "run-tests": commands will detect it and remind you to do so if necessary.�[0m
Step #2 - "run-tests": TestMain: 2021/05/11 22:18:52 setuptf.go:47: Running command: /bin/terraform workspace new 1a517de958a4
Step #2 - "run-tests": �[0m�[32m�[1mCreated and switched to workspace "1a517de958a4"!�[0m�[32m
Step #2 - "run-tests": 
Step #2 - "run-tests": You're now on a new, empty workspace. Workspaces isolate their state,
Step #2 - "run-tests": so if you run "terraform plan" Terraform will not see any existing state
Step #2 - "run-tests": for this configuration.�[0m
Step #2 - "run-tests": TestMain: 2021/05/11 22:18:53 setuptf.go:47: Running command: /bin/terraform apply -input=false -auto-approve -var=project_id=opentelemetry-ops-e2e
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.response: Creating...�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.request: Creating...�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.request: Creation complete after 1s [id=projects/opentelemetry-ops-e2e/topics/request-1a517de958a4]�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.request_subscription: Creating...�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.response: Creation complete after 1s [id=projects/opentelemetry-ops-e2e/topics/response-1a517de958a4]�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.response_subscription: Creating...�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.request_subscription: Creation complete after 2s [id=projects/opentelemetry-ops-e2e/subscriptions/request-1a517de958a4-pull]�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.response_subscription: Creation complete after 2s [id=projects/opentelemetry-ops-e2e/subscriptions/response-1a517de958a4-pull]�[0m
Step #2 - "run-tests": �[0m�[1m�[32m
Step #2 - "run-tests": Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
Step #2 - "run-tests": �[0m�[0m�[1m�[32m
Step #2 - "run-tests": Outputs:
Step #2 - "run-tests": 
Step #2 - "run-tests": �[0mpubsub_info = {
Step #2 - "run-tests":   "request_topic" = {
Step #2 - "run-tests":     "subscription_name" = "request-1a517de958a4-pull"
Step #2 - "run-tests":     "topic_name" = "request-1a517de958a4"
Step #2 - "run-tests":   }
Step #2 - "run-tests":   "response_topic" = {
Step #2 - "run-tests":     "subscription_name" = "response-1a517de958a4-pull"
Step #2 - "run-tests":     "topic_name" = "response-1a517de958a4"
Step #2 - "run-tests":   }
Step #2 - "run-tests": }
Step #2 - "run-tests": TestMain: 2021/05/11 22:19:02 main_test.go:81: Waiting for health check on pub/sub channel (will timeout after 2m0s)
Step #2 - "run-tests": Listening on subscription request-1a517de958a4-pull for pub/sub messages
Step #2 - "run-tests": publishing data=b'' and attributes={'test_id': '', 'status_code': '0'}
Step #2 - "run-tests": === RUN   TestBasicTrace
Step #2 - "run-tests": publishing data=b'' and attributes={'test_id': '10669411003833723570', 'status_code': '0'}
Step #2 - "run-tests":     trace_test.go:85: Retrying ListSpans: Got zero spans in trace
Step #2 - "run-tests":     trace_test.go:85: Retrying ListSpans: Got zero spans in trace
Step #2 - "run-tests": === RUN   TestBasicTrace/Span_has_label_g.co/agent
Step #2 - "run-tests": === RUN   TestBasicTrace/Span_has_label_test_id
Step #2 - "run-tests": --- PASS: TestBasicTrace (4.86s)
Step #2 - "run-tests":     --- PASS: TestBasicTrace/Span_has_label_g.co/agent (0.00s)
Step #2 - "run-tests":     --- PASS: TestBasicTrace/Span_has_label_test_id (0.00s)
Step #2 - "run-tests": === RUN   TestComplexTrace
Step #2 - "run-tests": publishing data=b'' and attributes={'test_id': '14777274624266125435', 'status_code': '12'}
Step #2 - "run-tests":     trace_test.go:51: test server does not support this scenario, skipping
Step #2 - "run-tests": --- SKIP: TestComplexTrace (1.99s)
Step #2 - "run-tests": PASS
Step #2 - "run-tests": TestMain: 2021/05/11 22:19:13 setuplocal.go:82: Stopping and removing container ID a6981a0ba3a0b2a772ed37fd0f2557526686d1deff7aecb8bdf918dbe2fae81e
Step #2 - "run-tests": TestMain: 2021/05/11 22:19:28 setuptf.go:47: Running command: /bin/terraform destroy -input=false -auto-approve -var=project_id=opentelemetry-ops-e2e
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.request: Refreshing state... [id=projects/opentelemetry-ops-e2e/topics/request-1a517de958a4]�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.response: Refreshing state... [id=projects/opentelemetry-ops-e2e/topics/response-1a517de958a4]�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.request_subscription: Refreshing state... [id=projects/opentelemetry-ops-e2e/subscriptions/request-1a517de958a4-pull]�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.response_subscription: Refreshing state... [id=projects/opentelemetry-ops-e2e/subscriptions/response-1a517de958a4-pull]�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.request_subscription: Destroying... [id=projects/opentelemetry-ops-e2e/subscriptions/request-1a517de958a4-pull]�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.response_subscription: Destroying... [id=projects/opentelemetry-ops-e2e/subscriptions/response-1a517de958a4-pull]�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.response_subscription: Destruction complete after 0s�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.response: Destroying... [id=projects/opentelemetry-ops-e2e/topics/response-1a517de958a4]�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_subscription.request_subscription: Destruction complete after 0s�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.request: Destroying... [id=projects/opentelemetry-ops-e2e/topics/request-1a517de958a4]�[0m�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.request: Destruction complete after 0s�[0m
Step #2 - "run-tests": �[0m�[1mmodule.pubsub.google_pubsub_topic.response: Destruction complete after 0s�[0m
Step #2 - "run-tests": �[0m�[1m�[32m
Step #2 - "run-tests": Destroy complete! Resources: 4 destroyed.
Step #2 - "run-tests": �[0mTestMain: 2021/05/11 22:19:32 setuptf.go:47: Running command: /bin/terraform workspace select default
Step #2 - "run-tests": �[0m�[32mSwitched to workspace "default".�[0m
Step #2 - "run-tests": TestMain: 2021/05/11 22:19:33 setuptf.go:47: Running command: /bin/terraform workspace delete 1a517de958a4
Step #2 - "run-tests": �[0m�[32mDeleted workspace "1a517de958a4"!�[0m
Finished Step #2 - "run-tests"
PUSH
Pushing gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-python-e2e-test-server:ebf6975
The push refers to repository [gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-python-e2e-test-server]
ee8ae8cfc55a: Preparing
905bd3720fbc: Preparing
8b20deaa86eb: Preparing
399a4e2f07de: Preparing
63baf9aeb161: Preparing
d65571482b5c: Preparing
0bc14b74f645: Preparing
371ce8b24b31: Preparing
7e718b9c0c8c: Preparing
d65571482b5c: Waiting
0bc14b74f645: Waiting
371ce8b24b31: Waiting
7e718b9c0c8c: Waiting
63baf9aeb161: Layer already exists
905bd3720fbc: Layer already exists
8b20deaa86eb: Layer already exists
ee8ae8cfc55a: Layer already exists
399a4e2f07de: Layer already exists
371ce8b24b31: Layer already exists
d65571482b5c: Layer already exists
7e718b9c0c8c: Layer already exists
0bc14b74f645: Layer already exists
ebf6975: digest: sha256:1a3ef66325a18c794fb6a915da3192a2225aa6fd51b92baadb418e06b3b98fc0 size: 2204
DONE

@google-cla google-cla bot added the cla: yes label May 10, 2021
@aabmass aabmass force-pushed the pubsub-e2e branch 6 times, most recently from f573120 to 0830835 Compare May 10, 2021 18:48
- remove gunicorn remnants and flask app (for now)
- make a package for code
- update docker file and cloudbuild config
@aabmass aabmass force-pushed the pubsub-e2e branch 2 times, most recently from f401a5c to c4937da Compare May 11, 2021 22:11
@aabmass aabmass requested a review from a team May 11, 2021 22:21
@aabmass aabmass marked this pull request as ready for review May 11, 2021 22:24
@aabmass aabmass changed the title switch to pubsub implementation switch to pubsub implementation of e2e tests May 11, 2021
@aabmass aabmass requested a review from punya May 17, 2021 21:13
@punya
Copy link
Contributor

punya commented May 17, 2021

LGTM

@aabmass aabmass merged commit 8730aa6 into GoogleCloudPlatform:master May 18, 2021
@aabmass aabmass deleted the pubsub-e2e branch May 18, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants