Skip to content

Commit

Permalink
Fix Python Failures (#74)
Browse files Browse the repository at this point in the history
* Use docker build instead of minikube to fix incorrect exit status on failure

* Fix bug in grabbing specific release
  • Loading branch information
TimPansino authored Jul 18, 2024
1 parent d251d77 commit 26a54d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,17 @@ jobs:
- name: Build init container
run: |
BUILD_ARGS=${{ inputs.INITCONTAINER_BUILD_ARGS }}
if [[ -n "${BUILD_ARGS}" ]]; then BUILD_ARGS="--build-opt=build-arg=${BUILD_ARGS}"; fi
if [[ -n "${{ env.AGENT_VERSION }}" ]]; then BUILD_ARGS="${BUILD_ARGS:-} --build-opt=build-arg=AGENT_VERSION=${{ env.AGENT_VERSION }}"; fi
minikube image build -t e2e/newrelic-${{ inputs.INITCONTAINER_LANGUAGE }}-init:e2e src/${{ inputs.INITCONTAINER_LANGUAGE }}/ ${BUILD_ARGS}
if [[ -n "${BUILD_ARGS}" ]]; then BUILD_ARGS="--build-arg=${BUILD_ARGS}"; fi
if [[ -n "${{ env.AGENT_VERSION }}" ]]; then BUILD_ARGS="${BUILD_ARGS:-} --build-arg=AGENT_VERSION=${{ env.AGENT_VERSION }}"; fi
eval "$(minikube docker-env)"
docker build -t e2e/newrelic-${{ inputs.INITCONTAINER_LANGUAGE }}-init:e2e src/${{ inputs.INITCONTAINER_LANGUAGE }}/ ${BUILD_ARGS}
- name: Build test app container
run: |
BUILD_ARGS=${{ inputs.TEST_APP_BUILD_ARGS }}
if [[ -n "${BUILD_ARGS}" ]]; then BUILD_ARGS="--build-opt=build-arg=${BUILD_ARGS}"; fi
minikube image build -t e2e/test-app-${{ inputs.INITCONTAINER_LANGUAGE }}:e2e tests/${{ inputs.INITCONTAINER_LANGUAGE }}/ ${BUILD_ARGS}
if [[ -n "${BUILD_ARGS}" ]]; then BUILD_ARGS="--build-arg=${BUILD_ARGS}"; fi
eval "$(minikube docker-env)"
docker build -t e2e/test-app-${{ inputs.INITCONTAINER_LANGUAGE }}:e2e tests/${{ inputs.INITCONTAINER_LANGUAGE }}/ ${BUILD_ARGS}
- name: Run e2e-test
uses: newrelic/newrelic-integration-e2e-action@a97ced80a4841c8c6261d1f9dca6706b1d89acb1 # 1.11.0
Expand Down
1 change: 1 addition & 0 deletions src/python/download_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def main():

if AGENT_VERSION:
# Grab the supplied release version
releases = {release["version"]: release for release in releases}
release = releases[AGENT_VERSION]
else:
# Grab latest release version
Expand Down

0 comments on commit 26a54d3

Please sign in to comment.