From 3e9cceb582fa66e94524a873be733a00fd2eefd4 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Wed, 11 Mar 2026 09:52:30 -0700 Subject: [PATCH 1/8] ci: Add support to test Python 3.15.0 Using GitHub Actions. Signed-off-by: Paulo Vital --- .github/workflows/python_next_test.yml | 35 +++++++++++++++++++ ...nts-pre314.txt => requirements-pre315.txt} | 30 +++++++++------- 2 files changed, 53 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/python_next_test.yml rename tests/{requirements-pre314.txt => requirements-pre315.txt} (52%) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml new file mode 100644 index 00000000..81fea6cd --- /dev/null +++ b/.github/workflows/python_next_test.yml @@ -0,0 +1,35 @@ +name: Test Python future version + +on: + workflow_dispatch: # Manual trigger. + schedule: + - cron: '3 1 * * 1-5' # Every Monday to Friday at 03:01 AM. + push: + branches: + - main + + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 + - name: Set up Python 3.15.0 + uses: actions/setup-python@v5 + with: + python-version: 3.15.0-alpha.7 + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Install Python test dependencies + run: | + pip install -r tests/requirements-pre315.txt + - name: Test with pytest + run: | + pytest -v --doctest-modules --junitxml=junit/test-results.xml tests + + diff --git a/tests/requirements-pre314.txt b/tests/requirements-pre315.txt similarity index 52% rename from tests/requirements-pre314.txt rename to tests/requirements-pre315.txt index 2ad1e026..ad141a85 100644 --- a/tests/requirements-pre314.txt +++ b/tests/requirements-pre315.txt @@ -1,18 +1,20 @@ --r requirements-minimal.txt +# requirements-minimal.txt +-r requirements-minimal.txt +pytest-timeout>=2.4.0 +# setuptools upperbound pinning is temporary and will remain in place until +# packages resolve the failures caused by the pkg_resources deprecation. +setuptools<=81.0.0 +# requirements.txt aioamqp>=0.15.0 aiofiles>=0.5.0 -aiohttp>=3.8.3 +aiohttp>=3.12.14 aio-pika>=9.5.2 boto3>=1.17.74 bottle>=0.12.25 celery>=5.2.7 Django>=4.2.16 -# FastAPI depends on pydantic-core which requires rust to be installed and -# it's not compiling due to python_version restrictions. -# fastapi>=0.115.0; python_version >= "3.13" +# fastapi>=0.115.0 flask>=2.3.2 -# gevent is taking more than 20min to build on 3.14 -# gevent>=23.9.0.post1 grpcio>=1.14.1 google-cloud-pubsub>=2.0.0 google-cloud-storage>=1.24.0 @@ -24,6 +26,7 @@ mysqlclient>=2.0.3 PyMySQL[rsa]>=1.0.2 psycopg2-binary>=2.8.6 pika>=1.2.0 +# protobuf<=6.30.2 pymongo>=3.11.4 pyramid>=2.0.1 pytest-mock>=3.12.0 @@ -31,13 +34,16 @@ pytz>=2024.1 redis>=3.5.3 requests-mock responses<=0.17.0 -# Sanic doesn't support python-3.14 yet -# sanic>=19.9.0 -# sanic-testing>=24.6.0 -starlette>=0.38.2 +sanic>=19.9.0 +sanic-testing>=24.6.0 +spyne>=2.14.0 sqlalchemy>=2.0.0 +starlette>=0.38.2; tornado>=6.4.1 uvicorn>=0.13.4 urllib3>=1.26.5 httpx>=0.27.0 -protobuf<=6.30.2 +gevent>=23.9.0.post1 +confluent-kafka>=2.0.0 +kafka-python-ng>=2.0.0 + From 0e348156f7fc8d93fbf38524c94b29d0182e5b79 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Thu, 12 Mar 2026 05:26:22 -0700 Subject: [PATCH 2/8] start gh action Signed-off-by: Paulo Vital --- .github/workflows/python_next_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml index 81fea6cd..f50e9261 100644 --- a/.github/workflows/python_next_test.yml +++ b/.github/workflows/python_next_test.yml @@ -7,7 +7,7 @@ on: push: branches: - main - + - python3150_ghaction jobs: test: From 2e2f1677021d857dac4cdc9f3649e52d391f3daa Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Thu, 12 Mar 2026 05:53:49 -0700 Subject: [PATCH 3/8] fix up Signed-off-by: Paulo Vital --- .github/workflows/python_next_test.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml index f50e9261..b2cd8419 100644 --- a/.github/workflows/python_next_test.yml +++ b/.github/workflows/python_next_test.yml @@ -12,22 +12,23 @@ on: jobs: test: runs-on: ubuntu-latest - + container: + image: ghcr.io/pvital/pvital-python:latest steps: - uses: actions/checkout@v5 - - name: Set up Python 3.15.0 - uses: actions/setup-python@v5 - with: - python-version: 3.15.0-alpha.7 + #- name: Set up Python 3.15.0 + # uses: actions/setup-python@v5 + # with: + # python-version: 3.15.0-alpha.7 - name: Display Python version run: python -c "import sys; print(sys.version)" - name: Install Python dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - - name: Install Python test dependencies - run: | - pip install -r tests/requirements-pre315.txt + #- name: Install Python test dependencies + # run: | + # pip install -r tests/requirements-pre315.txt - name: Test with pytest run: | pytest -v --doctest-modules --junitxml=junit/test-results.xml tests From 861008957a4421aea456e37b54f057b1f13af47e Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Thu, 12 Mar 2026 07:23:03 -0700 Subject: [PATCH 4/8] adding service containers Signed-off-by: Paulo Vital --- .github/workflows/python_next_test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml index b2cd8419..f56a901e 100644 --- a/.github/workflows/python_next_test.yml +++ b/.github/workflows/python_next_test.yml @@ -14,6 +14,29 @@ jobs: runs-on: ubuntu-latest container: image: ghcr.io/pvital/pvital-python:latest + services: + postgres: + image: public.ecr.aws/docker/library/postgres:16.10-trixie + environment: + POSTGRES_USER: root + POSTGRES_PASSWORD: passw0rd + POSTGRES_DB: instana_test_db + mariadb: + image: public.ecr.aws/docker/library/mariadb:11.3.2 + environment: + MYSQL_ROOT_PASSWORD: passw0rd + MYSQL_DATABASE: instana_test_db + redis: + image: public.ecr.aws/docker/library/redis:7.2.4-bookworm + rabbitmq: + image: public.ecr.aws/docker/library/rabbitmq:3.13.0 + mongo: + image: public.ecr.aws/docker/library/mongo:7.0.6 + gcloud-pubsub: + image: quay.io/thekevjames/gcloud-pubsub-emulator:latest + environment: + PUBSUB_EMULATOR_HOST: 0.0.0.0:8681 + PUBSUB_PROJECT1: test-project,test-topic steps: - uses: actions/checkout@v5 #- name: Set up Python 3.15.0 From 03d62674605c02179b12722f5098708b69233c49 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Thu, 12 Mar 2026 07:49:52 -0700 Subject: [PATCH 5/8] fix up Signed-off-by: Paulo Vital --- .github/workflows/python_next_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml index f56a901e..800acd94 100644 --- a/.github/workflows/python_next_test.yml +++ b/.github/workflows/python_next_test.yml @@ -47,6 +47,7 @@ jobs: run: python -c "import sys; print(sys.version)" - name: Install Python dependencies run: | + . venv/bin/activate python -m pip install --upgrade pip pip install -r requirements.txt #- name: Install Python test dependencies @@ -54,6 +55,7 @@ jobs: # pip install -r tests/requirements-pre315.txt - name: Test with pytest run: | - pytest -v --doctest-modules --junitxml=junit/test-results.xml tests + . venv/bin/activate + pytest -v tests From 42c940dd8274e3470d7a1c3496224a7af2962919 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Thu, 12 Mar 2026 07:54:58 -0700 Subject: [PATCH 6/8] fix up services Signed-off-by: Paulo Vital --- .github/workflows/python_next_test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml index 800acd94..5ba1db73 100644 --- a/.github/workflows/python_next_test.yml +++ b/.github/workflows/python_next_test.yml @@ -17,13 +17,13 @@ jobs: services: postgres: image: public.ecr.aws/docker/library/postgres:16.10-trixie - environment: + env: POSTGRES_USER: root POSTGRES_PASSWORD: passw0rd POSTGRES_DB: instana_test_db mariadb: image: public.ecr.aws/docker/library/mariadb:11.3.2 - environment: + env: MYSQL_ROOT_PASSWORD: passw0rd MYSQL_DATABASE: instana_test_db redis: @@ -34,7 +34,7 @@ jobs: image: public.ecr.aws/docker/library/mongo:7.0.6 gcloud-pubsub: image: quay.io/thekevjames/gcloud-pubsub-emulator:latest - environment: + env: PUBSUB_EMULATOR_HOST: 0.0.0.0:8681 PUBSUB_PROJECT1: test-project,test-topic steps: From e43d846bd93137cfdc952b1f12a6ca7f65a918c2 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Thu, 12 Mar 2026 12:18:30 -0300 Subject: [PATCH 7/8] print pwd --- .github/workflows/python_next_test.yml | 59 ++++++++++++++------------ 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml index 5ba1db73..d3fe1236 100644 --- a/.github/workflows/python_next_test.yml +++ b/.github/workflows/python_next_test.yml @@ -14,29 +14,29 @@ jobs: runs-on: ubuntu-latest container: image: ghcr.io/pvital/pvital-python:latest - services: - postgres: - image: public.ecr.aws/docker/library/postgres:16.10-trixie - env: - POSTGRES_USER: root - POSTGRES_PASSWORD: passw0rd - POSTGRES_DB: instana_test_db - mariadb: - image: public.ecr.aws/docker/library/mariadb:11.3.2 - env: - MYSQL_ROOT_PASSWORD: passw0rd - MYSQL_DATABASE: instana_test_db - redis: - image: public.ecr.aws/docker/library/redis:7.2.4-bookworm - rabbitmq: - image: public.ecr.aws/docker/library/rabbitmq:3.13.0 - mongo: - image: public.ecr.aws/docker/library/mongo:7.0.6 - gcloud-pubsub: - image: quay.io/thekevjames/gcloud-pubsub-emulator:latest - env: - PUBSUB_EMULATOR_HOST: 0.0.0.0:8681 - PUBSUB_PROJECT1: test-project,test-topic + # services: + # postgres: + # image: public.ecr.aws/docker/library/postgres:16.10-trixie + # env: + # POSTGRES_USER: root + # POSTGRES_PASSWORD: passw0rd + # POSTGRES_DB: instana_test_db + # mariadb: + # image: public.ecr.aws/docker/library/mariadb:11.3.2 + # env: + # MYSQL_ROOT_PASSWORD: passw0rd + # MYSQL_DATABASE: instana_test_db + # redis: + # image: public.ecr.aws/docker/library/redis:7.2.4-bookworm + # rabbitmq: + # image: public.ecr.aws/docker/library/rabbitmq:3.13.0 + # mongo: + # image: public.ecr.aws/docker/library/mongo:7.0.6 + # gcloud-pubsub: + # image: quay.io/thekevjames/gcloud-pubsub-emulator:latest + # env: + # PUBSUB_EMULATOR_HOST: 0.0.0.0:8681 + # PUBSUB_PROJECT1: test-project,test-topic steps: - uses: actions/checkout@v5 #- name: Set up Python 3.15.0 @@ -45,6 +45,11 @@ jobs: # python-version: 3.15.0-alpha.7 - name: Display Python version run: python -c "import sys; print(sys.version)" + - name: Check code + run: | + pwd + ls -l + ls -l ${HOME} - name: Install Python dependencies run: | . venv/bin/activate @@ -53,9 +58,9 @@ jobs: #- name: Install Python test dependencies # run: | # pip install -r tests/requirements-pre315.txt - - name: Test with pytest - run: | - . venv/bin/activate - pytest -v tests + # - name: Test with pytest + # run: | + # . venv/bin/activate + # pytest -v tests From c2fa8400a627bd1476593e2075726a77f805b285 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Thu, 12 Mar 2026 09:30:20 -0700 Subject: [PATCH 8/8] list dirs Signed-off-by: Paulo Vital --- .github/workflows/python_next_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python_next_test.yml b/.github/workflows/python_next_test.yml index d3fe1236..67e94b5e 100644 --- a/.github/workflows/python_next_test.yml +++ b/.github/workflows/python_next_test.yml @@ -48,8 +48,8 @@ jobs: - name: Check code run: | pwd - ls -l ls -l ${HOME} + ls -l /root/base - name: Install Python dependencies run: | . venv/bin/activate