Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ jobs:

python314:
docker:
- image: public.ecr.aws/docker/library/python:3.14.0a5
- image: public.ecr.aws/docker/library/python:3.14.0a6
- image: public.ecr.aws/docker/library/postgres:16.2-bookworm
environment:
POSTGRES_USER: root
Expand Down
4 changes: 2 additions & 2 deletions .tekton/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ spec:
- "sha256:ae24158f83adcb3ec1dead14356e6debc9f3125167624408d95338faacc5cce3"
# public.ecr.aws/docker/library/python:3.13.2-bookworm
- "sha256:90a15cf04e17111d514958f3b17186f2e239546f75530b1e301059f0b70de41f"
# public.ecr.aws/docker/library/python:3.14.0a5-bookworm
- "sha256:c00e5b4b511a77e0b11c52b88cb195c0dcc371e71d2f7ebb3ba1173387d71f92"
# public.ecr.aws/docker/library/python:3.14.0a6-bookworm
- "sha256:cc1702492859ae14ce2c417060215a94153a51f42954eb7fd5f275b5b3039926"
taskRef:
name: python-tracer-unittest-default-task
workspaces:
Expand Down
4 changes: 2 additions & 2 deletions .tekton/python-tracer-prepuller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ spec:
image: public.ecr.aws/docker/library/python@sha256:90a15cf04e17111d514958f3b17186f2e239546f75530b1e301059f0b70de41f
command: ["sh", "-c", "'true'"]
- name: prepuller-314
# public.ecr.aws/docker/library/python:3.14.0a5-bookworm
image: public.ecr.aws/docker/library/python@sha256:c00e5b4b511a77e0b11c52b88cb195c0dcc371e71d2f7ebb3ba1173387d71f92
# public.ecr.aws/docker/library/python:3.14.0a6-bookworm
image: public.ecr.aws/docker/library/python@sha256:cc1702492859ae14ce2c417060215a94153a51f42954eb7fd5f275b5b3039926
command: ["sh", "-c", "'true'"]

# Use the pause container to ensure the Pod goes into a `Running` phase
Expand Down
50 changes: 50 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env bash
set -x

POSITIONAL_ARGS=()
TESTS=("tests")

while [[ $# -gt 0 ]]; do
case $1 in
--aws)
TESTS=("tests_aws")
shift # past argument
shift # past value
;;
--default)
TESTS=("tests")
shift # past argument
shift # past value
;;
--all)
TESTS=("tests tests_aws")
shift # past argument
shift # past value
;;
--cov)
COVERAGE=True
shift # past argument
shift # past value
;;
-*|--*)
echo "Unknown option 1" # save positional arg
shift # past argument
;;
esac
done

set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters

if [ -z ${COVERAGE} ]; then
pytest -vv "${TESTS[@]}"
else
coverage run \
--source=instana \
--module pytest \
--verbose \
--junitxml=test-results \
"${TESTS[@]}" # pytest options (not coverage options anymore)

coverage report -m
coverage html
fi
Loading