Skip to content

Commit bc4417f

Browse files
committed
Pin workflows to older core sha so they don't try to build against main
1 parent 085c5d6 commit bc4417f

10 files changed

Lines changed: 18 additions & 17 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}{% endraw %}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}{% endraw %}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}{% endraw %}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}{% endraw %}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}{% endraw %}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}{% endraw %}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

.github/workflows/lint_0.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

.github/workflows/misc_0.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

.github/workflows/test_0.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

.github/workflows/test_1.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

.github/workflows/test_2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ env:
2525
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
2626
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
2727
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
28-
'main'
29-
) || 'main' }}
28+
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
29+
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
3030
CONTRIB_REPO_SHA: main
3131
PIP_EXISTS_ACTION: w
3232

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ repos:
2020
- id: rstcheck
2121
additional_dependencies: ['rstcheck[sphinx]']
2222
args: ["--report-level", "warning"]
23+
exclude: ^_template/

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ allowlist_externals =
775775
setenv =
776776
; override CORE_REPO_SHA via env variable when testing other branches/commits than main
777777
; i.e: CORE_REPO_SHA=dde62cebffe519c35875af6d06fae053b3be65ec tox -e <env to test>
778-
CORE_REPO_SHA={env:CORE_REPO_SHA:main}
778+
CORE_REPO_SHA={env:CORE_REPO_SHA:f32b684a1ccd6d5eb658ec0b45bf18928ea430e4}
779779
CORE_REPO=git+https://github.com/open-telemetry/opentelemetry-python.git@{env:CORE_REPO_SHA}
780780
UV_CONFIG_FILE={toxinidir}/tox-uv.toml
781781
PIP_CONSTRAINTS={toxinidir}/test-constraints.txt

0 commit comments

Comments
 (0)