Skip to content

Commit

Permalink
fix schema url in instrumentation tests (#2730)
Browse files Browse the repository at this point in the history
* fix schema url in instrumentation tests

* change core repo sha for test

* Update CORE_REPO_SHA

* Try removing cache

* Clear cache here as well

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
  • Loading branch information
emdneto and ocelotl authored Jul 23, 2024
1 parent 92da527 commit e799a74
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/instrumentations_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'release/*'
pull_request:
env:
CORE_REPO_SHA: 141a6a2e473ef7f0ec4915dfb71e3c0fa595283e
CORE_REPO_SHA: main

jobs:
instrumentations-0:
Expand Down Expand Up @@ -114,6 +114,6 @@ jobs:
path: |
.tox
~/.cache/pip
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }}
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('gen-requirements.txt', 'dev-requirements.txt') }}
- name: run tox
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra
4 changes: 2 additions & 2 deletions .github/workflows/instrumentations_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'release/*'
pull_request:
env:
CORE_REPO_SHA: 141a6a2e473ef7f0ec4915dfb71e3c0fa595283e
CORE_REPO_SHA: main

jobs:
instrumentations-1:
Expand Down Expand Up @@ -59,6 +59,6 @@ jobs:
path: |
.tox
~/.cache/pip
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }}
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('gen-requirements.txt', 'dev-requirements.txt') }}
- name: run tox
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'release/*'
pull_request:
env:
CORE_REPO_SHA: 141a6a2e473ef7f0ec4915dfb71e3c0fa595283e
CORE_REPO_SHA: main

jobs:
lint-3_12:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'release/*'
pull_request:
env:
CORE_REPO_SHA: 141a6a2e473ef7f0ec4915dfb71e3c0fa595283e
CORE_REPO_SHA: main

jobs:
misc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def test_schema_url_new_semconv(self):
span = self.memory_exporter.get_finished_spans()[0]
self.assertEqual(
span.instrumentation_info.schema_url,
"https://opentelemetry.io/schemas/v1.21.0",
"https://opentelemetry.io/schemas/1.21.0",
)
self.memory_exporter.clear()

Expand All @@ -240,7 +240,7 @@ def test_schema_url_both_semconv(self):
span = self.memory_exporter.get_finished_spans()[0]
self.assertEqual(
span.instrumentation_info.schema_url,
"https://opentelemetry.io/schemas/v1.21.0",
"https://opentelemetry.io/schemas/1.21.0",
)
self.memory_exporter.clear()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def test_schema_url_new_semconv(self):
span = self.assert_span()
self.assertEqual(
span.instrumentation_scope.schema_url,
"https://opentelemetry.io/schemas/v1.21.0",
"https://opentelemetry.io/schemas/1.21.0",
)

def test_schema_url_both_semconv(self):
Expand All @@ -250,7 +250,7 @@ def test_schema_url_both_semconv(self):
span = self.assert_span()
self.assertEqual(
span.instrumentation_scope.schema_url,
"https://opentelemetry.io/schemas/v1.21.0",
"https://opentelemetry.io/schemas/1.21.0",
)

def test_basic_not_found(self):
Expand Down

0 comments on commit e799a74

Please sign in to comment.