File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Expand file tree Collapse file tree 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
122122```
123123
124124The 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 ) .
126126
127127### Benchmarks
128128
@@ -195,9 +195,9 @@ opened in the Contrib repo with changes to make the packages compatible.
195195
196196Follow these steps:
1971971 . 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 `
199199to 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
201201equal the commit SHA of the Contrib repo PR to pass Contrib repo tests (a sanity
202202check for the Maintainers & Approvers)
2032034 . Merge the Contrib repo
Original file line number Diff line number Diff line change 11# OpenTelemetry Python
22[ ![ 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 )
45[ ![ Minimum Python Version] ( https://img.shields.io/badge/python-3.8+-blue.svg )] ( https://www.python.org/downloads/ )
56[ ![ Release] ( https://img.shields.io/github/v/release/open-telemetry/opentelemetry-python?include_prereleases&style= )] ( https://github.com/open-telemetry/opentelemetry-python/releases/ )
67[ ![ 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 2020from ruamel .yaml import YAML
2121
2222API_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+ ]
2430
2531
2632def get_sha (branch ):
@@ -33,11 +39,12 @@ def get_sha(branch):
3339def update_sha (sha ):
3440 yaml = YAML ()
3541 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 )
4148
4249
4350def main ():
You can’t perform that action at this time.
0 commit comments