File tree 3 files changed +18
-10
lines changed
3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ CONTRIB_REPO_SHA=dde62cebffe519c35875af6d06fae053b3be65ec tox
122
122
```
123
123
124
124
The continuation integration overrides that environment variable with as per the configuration
125
- [ here] ( https://github.com/open-telemetry/opentelemetry-python/blob/main/.github/workflows/test .yml#L13 ) .
125
+ [ here] ( https://github.com/open-telemetry/opentelemetry-python/blob/main/.github/workflows/test_0 .yml#L14 ) .
126
126
127
127
### Benchmarks
128
128
@@ -195,9 +195,9 @@ opened in the Contrib repo with changes to make the packages compatible.
195
195
196
196
Follow these steps:
197
197
1 . Open Core repo PR (Contrib Tests will fail)
198
- 2 . Open Contrib repo PR and modify its ` CORE_REPO_SHA ` in ` .github/workflows/test .yml `
198
+ 2 . Open Contrib repo PR and modify its ` CORE_REPO_SHA ` in ` .github/workflows/test_x .yml `
199
199
to equal the commit SHA of the Core repo PR to pass tests
200
- 3 . Modify the Core repo PR ` CONTRIB_REPO_SHA ` in ` .github/workflows/test .yml ` to
200
+ 3 . Modify the Core repo PR ` CONTRIB_REPO_SHA ` in ` .github/workflows/test_x .yml ` to
201
201
equal the commit SHA of the Contrib repo PR to pass Contrib repo tests (a sanity
202
202
check for the Maintainers & Approvers)
203
203
4 . Merge the Contrib repo
Original file line number Diff line number Diff line change 1
1
# OpenTelemetry Python
2
2
[ ![ Slack] ( https://img.shields.io/badge/slack-@cncf/otel/python-brightgreen.svg?logo=slack )] ( https://cloud-native.slack.com/archives/C01PD4HUVBL )
3
- [ ![ Build Status] ( https://github.com/open-telemetry/opentelemetry-python/actions/workflows/test.yml/badge.svg?branch=main )] ( https://github.com/open-telemetry/opentelemetry-python/actions )
3
+ [ ![ Build Status 0] ( https://github.com/open-telemetry/opentelemetry-python/actions/workflows/test_0.yml/badge.svg?branch=main )] ( https://github.com/open-telemetry/opentelemetry-python/actions/workflows/test_0.yml )
4
+ [ ![ Build Status 1] ( https://github.com/open-telemetry/opentelemetry-python/actions/workflows/test_1.yml/badge.svg?branch=main )] ( https://github.com/open-telemetry/opentelemetry-python/actions/workflows/test_1.yml )
4
5
[ ![ Minimum Python Version] ( https://img.shields.io/badge/python-3.8+-blue.svg )] ( https://www.python.org/downloads/ )
5
6
[ ![ Release] ( https://img.shields.io/github/v/release/open-telemetry/opentelemetry-python?include_prereleases&style= )] ( https://github.com/open-telemetry/opentelemetry-python/releases/ )
6
7
[ ![ Read the Docs] ( https://readthedocs.org/projects/opentelemetry-python/badge/?version=latest )] ( https://opentelemetry-python.readthedocs.io/en/latest/ )
Original file line number Diff line number Diff line change 20
20
from ruamel .yaml import YAML
21
21
22
22
API_URL = "https://api.github.com/repos/open-telemetry/opentelemetry-python-contrib/commits/"
23
- WORKFLOW_FILE = ".github/workflows/test.yml"
23
+ workflow_files = [
24
+ ".github/workflows/test_0.yml"
25
+ ".github/workflows/test_1.yml"
26
+ ".github/workflows/misc_0.yml"
27
+ ".github/workflows/contrib_0.yml"
28
+ ".github/workflows/lint_0.yml"
29
+ ]
24
30
25
31
26
32
def get_sha (branch ):
@@ -33,11 +39,12 @@ def get_sha(branch):
33
39
def update_sha (sha ):
34
40
yaml = YAML ()
35
41
yaml .preserve_quotes = True
36
- with open (WORKFLOW_FILE , "r" ) as file :
37
- workflow = yaml .load (file )
38
- workflow ["env" ]["CONTRIB_REPO_SHA" ] = sha
39
- with open (WORKFLOW_FILE , "w" ) as file :
40
- yaml .dump (workflow , file )
42
+ for workflow_file in workflow_files :
43
+ with open (workflow_file , "r" ) as file :
44
+ workflow = yaml .load (file )
45
+ workflow ["env" ]["CONTRIB_REPO_SHA" ] = sha
46
+ with open (workflow_file , "w" ) as file :
47
+ yaml .dump (workflow , file )
41
48
42
49
43
50
def main ():
You can’t perform that action at this time.
0 commit comments