[BUGFIX] Parameterize usage stats endpoint in test dockerfile. #6169
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Our azure test pipelines should be hitting our
qa
usage statistics endpoint. This PR parameterizes the usage stats endpoint in our Dockerfile. In the build step for our test image, we set the url to ourqa
endpoint.I manually ran this pipeline and I see this new variable being set in the build step:
docker buildx build -f docker/Dockerfile.tests --tag greatexpectations/test:3.9_develop_1666134761_16296 --target test --build-arg PYTHON_VERSION=3.9 --build-arg GE_USAGE_STATISTICS_URL="https://qa.stats.greatexpectations.io/great_expectations/v1/usage_statistics" --build-arg SOURCE=github --build-arg BRANCH=develop .
I also built this image locally and see this get set in my data context:
I've manually run all the failing tests from https://superconductive.atlassian.net/browse/GREAT-1304 in my docker image and they succeed.