Skip to content

Commit 256b849

Browse files
committed
Merge remote-tracking branch 'upstream/main' into genai-utils/agent-invocation
2 parents 8485542 + 349ffe3 commit 256b849

220 files changed

Lines changed: 5822 additions & 4096 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: 369 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/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: 2 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

.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:

0 commit comments

Comments
 (0)