Skip to content

Commit 8b59879

Browse files
Merge branch 'main' into xray-sampler-pr1
2 parents 13d2aae + 6fb4918 commit 8b59879

439 files changed

Lines changed: 21939 additions & 8867 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: 493 additions & 39 deletions
Large diffs are not rendered by default.
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/generate_workflows_lib/src/generate_workflows_lib/core_contrib_test.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ env:
2020
CORE_REPO_SHA: ${% raw %}{{ inputs.CORE_REPO_SHA }}{% endraw %}
2121
CONTRIB_REPO_SHA: ${% raw %}{{ inputs.CONTRIB_REPO_SHA }}{% endraw %}
2222
PIP_EXISTS_ACTION: w
23+
CORE_REPO_API: ${% raw %}{{ github.workspace }}{% endraw %}/opentelemetry-python/opentelemetry-api
24+
CORE_REPO_SDK: ${% raw %}{{ github.workspace }}{% endraw %}/opentelemetry-python/opentelemetry-sdk
25+
CORE_REPO_SEMCONV: ${% raw %}{{ github.workspace }}{% endraw %}/opentelemetry-python/opentelemetry-semantic-conventions
26+
CORE_REPO_TEST_UTILS: ${% raw %}{{ github.workspace }}{% endraw %}/opentelemetry-python/tests/opentelemetry-test-utils
2327

2428
jobs:
2529
{%- for job_data in job_datas %}

.github/workflows/generate_workflows_lib/src/generate_workflows_lib/lint.yml.j2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ name: Lint {{ file_number }}
55

66
on:
77
push:
8-
branches-ignore:
9-
- 'release/*'
10-
- 'otelbot/*'
8+
branches:
9+
- 'main'
1110
pull_request:
1211

1312
permissions:

.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ name: Misc {{ file_number }}
55

66
on:
77
push:
8-
branches-ignore:
9-
- 'release/*'
10-
- 'otelbot/*'
8+
branches:
9+
- 'main'
1110
pull_request:
1211

1312
permissions:

.github/workflows/generate_workflows_lib/src/generate_workflows_lib/test.yml.j2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ name: Test {{ file_number }}
55

66
on:
77
push:
8-
branches-ignore:
9-
- 'release/*'
10-
- 'otelbot/*'
8+
branches:
9+
- 'main'
1110
pull_request:
1211

1312
permissions:

.github/workflows/lint_0.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ name: Lint 0
55

66
on:
77
push:
8-
branches-ignore:
9-
- 'release/*'
10-
- 'otelbot/*'
8+
branches:
9+
- 'main'
1110
pull_request:
1211

1312
permissions:
@@ -393,25 +392,6 @@ jobs:
393392
- name: Run tests
394393
run: tox -e lint-instrumentation-dbapi
395394

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-
415395
lint-instrumentation-asyncclick:
416396
name: instrumentation-asyncclick
417397
runs-on: ubuntu-latest
@@ -1361,3 +1341,22 @@ jobs:
13611341

13621342
- name: Run tests
13631343
run: tox -e lint-processor-baggage
1344+
1345+
lint-opamp-client:
1346+
name: opamp-client
1347+
runs-on: ubuntu-latest
1348+
timeout-minutes: 30
1349+
steps:
1350+
- name: Checkout repo @ SHA - ${{ github.sha }}
1351+
uses: actions/checkout@v4
1352+
1353+
- name: Set up Python 3.14
1354+
uses: actions/setup-python@v5
1355+
with:
1356+
python-version: "3.14"
1357+
1358+
- name: Install tox
1359+
run: pip install tox-uv
1360+
1361+
- name: Run tests
1362+
run: tox -e lint-opamp-client

.github/workflows/misc_0.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ name: Misc 0
55

66
on:
77
push:
8-
branches-ignore:
9-
- 'release/*'
10-
- 'otelbot/*'
8+
branches:
9+
- 'main'
1110
pull_request:
1211

1312
permissions:

.github/workflows/package-prepare-patch-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
package:
66
type: choice
77
options:
8+
- opentelemetry-opamp-client
89
- opentelemetry-propagator-aws-xray
910
- opentelemetry-resource-detector-azure
1011
- opentelemetry-sdk-extension-aws

.github/workflows/package-prepare-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
package:
66
type: choice
77
options:
8+
- opentelemetry-opamp-client
89
- opentelemetry-propagator-aws-xray
910
- opentelemetry-resource-detector-azure
1011
- opentelemetry-sdk-extension-aws

0 commit comments

Comments
 (0)