Skip to content

Commit 448ca8d

Browse files
authored
Remove references to test.yml (open-telemetry#4151)
Fixes open-telemetry#4135
1 parent 98d3b3e commit 448ca8d

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ CONTRIB_REPO_SHA=dde62cebffe519c35875af6d06fae053b3be65ec tox
122122
```
123123

124124
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).
126126

127127
### Benchmarks
128128

@@ -195,9 +195,9 @@ opened in the Contrib repo with changes to make the packages compatible.
195195

196196
Follow these steps:
197197
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`
199199
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
201201
equal the commit SHA of the Contrib repo PR to pass Contrib repo tests (a sanity
202202
check for the Maintainers & Approvers)
203203
4. Merge the Contrib repo

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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/)

scripts/update_sha.py

+13-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020
from ruamel.yaml import YAML
2121

2222
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+
]
2430

2531

2632
def get_sha(branch):
@@ -33,11 +39,12 @@ def get_sha(branch):
3339
def 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

4350
def main():

0 commit comments

Comments
 (0)