opentelemetry-exporter-prometheus-remote-write: workaround build failure with PyPy 3.8 (#3480)

Find a version that has a wheel for PyPy 3.8 skipping the failing test
while we bump the baseline to 3.9.
This commit is contained in:
Riccardo Magliocchetti 2025-05-09 15:36:11 +02:00 committed by GitHub
parent 2c0033f842
commit abafc2131f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@ asgiref==3.8.1
certifi==2024.7.4
charset-normalizer==3.3.2
# We can drop this after bumping baseline to pypy-39
cramjam==2.1.0; platform_python_implementation == "PyPy"
cramjam==2.8.0; platform_python_implementation == "PyPy"
cramjam==2.8.4; platform_python_implementation != "PyPy"
Deprecated==1.2.14
idna==3.7

View File

@ -13,6 +13,7 @@
# limitations under the License.
import unittest
from platform import python_implementation
from unittest.mock import patch
import pytest
@ -282,6 +283,10 @@ class TestValidation(unittest.TestCase):
)
@pytest.mark.skipif(
python_implementation() == "PyPy",
reason="Fails with pypy 3.8, bump cramjam when 3.9 is baseline",
)
# Ensures export is successful with valid export_records and config
@patch("requests.post")
def test_valid_export(mock_post, prom_rw, metric):