Skip to content

Commit 1cd3c19

Browse files
authored
Merge branch 'main' into openai-v2-hook-and-fixes
2 parents 644b694 + 22879d6 commit 1cd3c19

154 files changed

Lines changed: 594 additions & 1411 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/core_contrib_test_0.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -957,36 +957,6 @@ jobs:
957957
- name: Run tests
958958
run: tox -e py39-test-instrumentation-dbapi-wrapt2 -- -ra
959959

960-
py39-test-instrumentation-boto:
961-
name: instrumentation-boto
962-
runs-on: ubuntu-latest
963-
timeout-minutes: 30
964-
steps:
965-
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
966-
uses: actions/checkout@v4
967-
with:
968-
repository: open-telemetry/opentelemetry-python-contrib
969-
ref: ${{ env.CONTRIB_REPO_SHA }}
970-
971-
- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
972-
uses: actions/checkout@v4
973-
with:
974-
repository: open-telemetry/opentelemetry-python
975-
ref: ${{ env.CORE_REPO_SHA }}
976-
path: opentelemetry-python
977-
978-
- name: Set up Python 3.9
979-
uses: actions/setup-python@v5
980-
with:
981-
python-version: "3.9"
982-
architecture: "x64"
983-
984-
- name: Install tox
985-
run: pip install tox-uv
986-
987-
- name: Run tests
988-
run: tox -e py39-test-instrumentation-boto -- -ra
989-
990960
py39-test-instrumentation-asyncclick:
991961
name: instrumentation-asyncclick
992962
runs-on: ubuntu-latest
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
"""
2+
This script builds a text file with the list of required checks based on
3+
the tox environments. Similarly to the system we are using to build the
4+
github workflows.
5+
The output is in the format than can be cut-and-pasted into the python-contrib
6+
terraform configuration in the admin repository.
7+
"""
8+
9+
from pathlib import Path
10+
11+
from generate_workflows_lib import (
12+
get_lint_job_datas,
13+
get_misc_job_datas,
14+
get_test_job_datas,
15+
get_tox_envs,
16+
)
17+
18+
tox_ini_path = Path(__file__).parent.parent.parent.joinpath("tox.ini")
19+
20+
21+
def get_gh_contexts_from_jobs(job_datas):
22+
def get_job_name(job):
23+
if isinstance(job, str):
24+
return job
25+
return job["ui_name"]
26+
27+
return [
28+
f""" {{ context = "{get_job_name(job)}" }},\n"""
29+
for job in job_datas
30+
]
31+
32+
33+
jobs = sorted(
34+
get_gh_contexts_from_jobs(get_lint_job_datas(get_tox_envs(tox_ini_path)))
35+
+ get_gh_contexts_from_jobs(
36+
get_test_job_datas(get_tox_envs(tox_ini_path), ["ubuntu-latest"])
37+
)
38+
+ get_gh_contexts_from_jobs(get_misc_job_datas(get_tox_envs(tox_ini_path)))
39+
)
40+
with open("opentelemetry-admin-jobs.txt", "w") as f:
41+
for job in jobs:
42+
f.write(job)

.github/workflows/lint_0.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -393,25 +393,6 @@ jobs:
393393
- name: Run tests
394394
run: tox -e lint-instrumentation-dbapi
395395

396-
lint-instrumentation-boto:
397-
name: instrumentation-boto
398-
runs-on: ubuntu-latest
399-
timeout-minutes: 30
400-
steps:
401-
- name: Checkout repo @ SHA - ${{ github.sha }}
402-
uses: actions/checkout@v4
403-
404-
- name: Set up Python 3.14
405-
uses: actions/setup-python@v5
406-
with:
407-
python-version: "3.14"
408-
409-
- name: Install tox
410-
run: pip install tox-uv
411-
412-
- name: Run tests
413-
run: tox -e lint-instrumentation-boto
414-
415396
lint-instrumentation-asyncclick:
416397
name: instrumentation-asyncclick
417398
runs-on: ubuntu-latest

.github/workflows/test_0.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4079,63 +4079,6 @@ jobs:
40794079
- name: Run tests
40804080
run: tox -e pypy3-test-instrumentation-dbapi-wrapt2 -- -ra
40814081

4082-
py39-test-instrumentation-boto_ubuntu-latest:
4083-
name: instrumentation-boto 3.9 Ubuntu
4084-
runs-on: ubuntu-latest
4085-
timeout-minutes: 30
4086-
steps:
4087-
- name: Checkout repo @ SHA - ${{ github.sha }}
4088-
uses: actions/checkout@v4
4089-
4090-
- name: Set up Python 3.9
4091-
uses: actions/setup-python@v5
4092-
with:
4093-
python-version: "3.9"
4094-
4095-
- name: Install tox
4096-
run: pip install tox-uv
4097-
4098-
- name: Run tests
4099-
run: tox -e py39-test-instrumentation-boto -- -ra
4100-
4101-
py310-test-instrumentation-boto_ubuntu-latest:
4102-
name: instrumentation-boto 3.10 Ubuntu
4103-
runs-on: ubuntu-latest
4104-
timeout-minutes: 30
4105-
steps:
4106-
- name: Checkout repo @ SHA - ${{ github.sha }}
4107-
uses: actions/checkout@v4
4108-
4109-
- name: Set up Python 3.10
4110-
uses: actions/setup-python@v5
4111-
with:
4112-
python-version: "3.10"
4113-
4114-
- name: Install tox
4115-
run: pip install tox-uv
4116-
4117-
- name: Run tests
4118-
run: tox -e py310-test-instrumentation-boto -- -ra
4119-
4120-
py311-test-instrumentation-boto_ubuntu-latest:
4121-
name: instrumentation-boto 3.11 Ubuntu
4122-
runs-on: ubuntu-latest
4123-
timeout-minutes: 30
4124-
steps:
4125-
- name: Checkout repo @ SHA - ${{ github.sha }}
4126-
uses: actions/checkout@v4
4127-
4128-
- name: Set up Python 3.11
4129-
uses: actions/setup-python@v5
4130-
with:
4131-
python-version: "3.11"
4132-
4133-
- name: Install tox
4134-
run: pip install tox-uv
4135-
4136-
- name: Run tests
4137-
run: tox -e py311-test-instrumentation-boto -- -ra
4138-
41394082
py39-test-instrumentation-asyncclick_ubuntu-latest:
41404083
name: instrumentation-asyncclick 3.9 Ubuntu
41414084
runs-on: ubuntu-latest
@@ -4781,3 +4724,60 @@ jobs:
47814724

47824725
- name: Run tests
47834726
run: tox -e pypy3-test-instrumentation-elasticsearch-1 -- -ra
4727+
4728+
pypy3-test-instrumentation-elasticsearch-2_ubuntu-latest:
4729+
name: instrumentation-elasticsearch-2 pypy-3.9 Ubuntu
4730+
runs-on: ubuntu-latest
4731+
timeout-minutes: 30
4732+
steps:
4733+
- name: Checkout repo @ SHA - ${{ github.sha }}
4734+
uses: actions/checkout@v4
4735+
4736+
- name: Set up Python pypy-3.9
4737+
uses: actions/setup-python@v5
4738+
with:
4739+
python-version: "pypy-3.9"
4740+
4741+
- name: Install tox
4742+
run: pip install tox-uv
4743+
4744+
- name: Run tests
4745+
run: tox -e pypy3-test-instrumentation-elasticsearch-2 -- -ra
4746+
4747+
py39-test-instrumentation-falcon-0_ubuntu-latest:
4748+
name: instrumentation-falcon-0 3.9 Ubuntu
4749+
runs-on: ubuntu-latest
4750+
timeout-minutes: 30
4751+
steps:
4752+
- name: Checkout repo @ SHA - ${{ github.sha }}
4753+
uses: actions/checkout@v4
4754+
4755+
- name: Set up Python 3.9
4756+
uses: actions/setup-python@v5
4757+
with:
4758+
python-version: "3.9"
4759+
4760+
- name: Install tox
4761+
run: pip install tox-uv
4762+
4763+
- name: Run tests
4764+
run: tox -e py39-test-instrumentation-falcon-0 -- -ra
4765+
4766+
py39-test-instrumentation-falcon-1_ubuntu-latest:
4767+
name: instrumentation-falcon-1 3.9 Ubuntu
4768+
runs-on: ubuntu-latest
4769+
timeout-minutes: 30
4770+
steps:
4771+
- name: Checkout repo @ SHA - ${{ github.sha }}
4772+
uses: actions/checkout@v4
4773+
4774+
- name: Set up Python 3.9
4775+
uses: actions/setup-python@v5
4776+
with:
4777+
python-version: "3.9"
4778+
4779+
- name: Install tox
4780+
run: pip install tox-uv
4781+
4782+
- name: Run tests
4783+
run: tox -e py39-test-instrumentation-falcon-1 -- -ra

.github/workflows/test_1.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -32,63 +32,6 @@ env:
3232

3333
jobs:
3434

35-
pypy3-test-instrumentation-elasticsearch-2_ubuntu-latest:
36-
name: instrumentation-elasticsearch-2 pypy-3.9 Ubuntu
37-
runs-on: ubuntu-latest
38-
timeout-minutes: 30
39-
steps:
40-
- name: Checkout repo @ SHA - ${{ github.sha }}
41-
uses: actions/checkout@v4
42-
43-
- name: Set up Python pypy-3.9
44-
uses: actions/setup-python@v5
45-
with:
46-
python-version: "pypy-3.9"
47-
48-
- name: Install tox
49-
run: pip install tox-uv
50-
51-
- name: Run tests
52-
run: tox -e pypy3-test-instrumentation-elasticsearch-2 -- -ra
53-
54-
py39-test-instrumentation-falcon-0_ubuntu-latest:
55-
name: instrumentation-falcon-0 3.9 Ubuntu
56-
runs-on: ubuntu-latest
57-
timeout-minutes: 30
58-
steps:
59-
- name: Checkout repo @ SHA - ${{ github.sha }}
60-
uses: actions/checkout@v4
61-
62-
- name: Set up Python 3.9
63-
uses: actions/setup-python@v5
64-
with:
65-
python-version: "3.9"
66-
67-
- name: Install tox
68-
run: pip install tox-uv
69-
70-
- name: Run tests
71-
run: tox -e py39-test-instrumentation-falcon-0 -- -ra
72-
73-
py39-test-instrumentation-falcon-1_ubuntu-latest:
74-
name: instrumentation-falcon-1 3.9 Ubuntu
75-
runs-on: ubuntu-latest
76-
timeout-minutes: 30
77-
steps:
78-
- name: Checkout repo @ SHA - ${{ github.sha }}
79-
uses: actions/checkout@v4
80-
81-
- name: Set up Python 3.9
82-
uses: actions/setup-python@v5
83-
with:
84-
python-version: "3.9"
85-
86-
- name: Install tox
87-
run: pip install tox-uv
88-
89-
- name: Run tests
90-
run: tox -e py39-test-instrumentation-falcon-1 -- -ra
91-
9235
py39-test-instrumentation-falcon-2_ubuntu-latest:
9336
name: instrumentation-falcon-2 3.9 Ubuntu
9437
runs-on: ubuntu-latest
@@ -4781,3 +4724,60 @@ jobs:
47814724

47824725
- name: Run tests
47834726
run: tox -e py313-test-instrumentation-sqlite3 -- -ra
4727+
4728+
py314-test-instrumentation-sqlite3_ubuntu-latest:
4729+
name: instrumentation-sqlite3 3.14 Ubuntu
4730+
runs-on: ubuntu-latest
4731+
timeout-minutes: 30
4732+
steps:
4733+
- name: Checkout repo @ SHA - ${{ github.sha }}
4734+
uses: actions/checkout@v4
4735+
4736+
- name: Set up Python 3.14
4737+
uses: actions/setup-python@v5
4738+
with:
4739+
python-version: "3.14"
4740+
4741+
- name: Install tox
4742+
run: pip install tox-uv
4743+
4744+
- name: Run tests
4745+
run: tox -e py314-test-instrumentation-sqlite3 -- -ra
4746+
4747+
pypy3-test-instrumentation-sqlite3_ubuntu-latest:
4748+
name: instrumentation-sqlite3 pypy-3.9 Ubuntu
4749+
runs-on: ubuntu-latest
4750+
timeout-minutes: 30
4751+
steps:
4752+
- name: Checkout repo @ SHA - ${{ github.sha }}
4753+
uses: actions/checkout@v4
4754+
4755+
- name: Set up Python pypy-3.9
4756+
uses: actions/setup-python@v5
4757+
with:
4758+
python-version: "pypy-3.9"
4759+
4760+
- name: Install tox
4761+
run: pip install tox-uv
4762+
4763+
- name: Run tests
4764+
run: tox -e pypy3-test-instrumentation-sqlite3 -- -ra
4765+
4766+
py39-test-instrumentation-wsgi_ubuntu-latest:
4767+
name: instrumentation-wsgi 3.9 Ubuntu
4768+
runs-on: ubuntu-latest
4769+
timeout-minutes: 30
4770+
steps:
4771+
- name: Checkout repo @ SHA - ${{ github.sha }}
4772+
uses: actions/checkout@v4
4773+
4774+
- name: Set up Python 3.9
4775+
uses: actions/setup-python@v5
4776+
with:
4777+
python-version: "3.9"
4778+
4779+
- name: Install tox
4780+
run: pip install tox-uv
4781+
4782+
- name: Run tests
4783+
run: tox -e py39-test-instrumentation-wsgi -- -ra

0 commit comments

Comments
 (0)