Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Python 3.10 beta/RC builds to the matrix #952

Merged
merged 13 commits into from
Mar 16, 2021

Conversation

beniwohli
Copy link
Contributor

Also, promote Python 3.9 from RC to release, it has been released a couple weeks ago

@apmmachine
Copy link
Contributor

apmmachine commented Oct 27, 2020

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 2
Passed 12583
Skipped 9228
Total 21813

Genuine test errors 2

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

    * **Name**: `Initializing / Test / windows-2.7-none / test_server_cert_pinning[sending_elasticapm_client0] – tests.client.client_tests`
    * **Name**: `Initializing / Test / windows-2.7-none / test_error_keyword_truncation – tests.client.exception_tests`

@apmmachine
Copy link
Contributor

apmmachine commented Oct 27, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #952 updated

  • Start Time: 2021-03-16T14:48:16.875+0000

  • Duration: 20 min 1 sec

  • Commit: 14bbcf0

Test stats 🧪

Test Results
Failed 0
Passed 9706
Skipped 7614
Total 17320

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 9706
Skipped 7614
Total 17320

@beniwohli
Copy link
Contributor Author

3.10 is currently blocked on python/cpython#20333, as bdist_wheel fails

a weird exception is raised during test setup, in the vendored certifi
from pip:

  Traceback (most recent call last):
    File "/usr/local/lib/python3.10/runpy.py", line 197, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "/usr/local/lib/python3.10/runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "/usr/local/lib/python3.10/site-packages/pip/__main__.py", line 26, in <module>
      sys.exit(_main())
    File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/main.py", line 73, in main
      command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
    File "/usr/local/lib/python3.10/site-packages/pip/_internal/commands/__init__.py", line 105, in create_command
      module = importlib.import_module(module_path)
    File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1049, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1026, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1005, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 698, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 833, in exec_module
    File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    File "/usr/local/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 17, in <module>
      from pip._internal.cli.req_command import RequirementCommand, with_cleanup
    File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 18, in <module>
      from pip._internal.index.collector import LinkCollector
    File "/usr/local/lib/python3.10/site-packages/pip/_internal/index/collector.py", line 14, in <module>
      from pip._vendor import html5lib, requests
    File "/usr/local/lib/python3.10/site-packages/pip/_vendor/requests/__init__.py", line 125, in <module>
      from . import utils
    File "/usr/local/lib/python3.10/site-packages/pip/_vendor/requests/utils.py", line 40, in <module>
      DEFAULT_CA_BUNDLE_PATH = certs.where()
    File "/usr/local/lib/python3.10/site-packages/pip/_vendor/certifi/core.py", line 37, in where
      _CACERT_PATH = str(_CACERT_CTX.__enter__())
  AttributeError: 'PosixPath' object has no attribute '__enter__'
# Conflicts:
#	.ci/.jenkins_exclude.yml
#	.ci/.jenkins_python.yml
This is especially problematic when mounting the working directory
in docker for testing, as the local Python version may differ from
the one in docker.
also, removed a bunch of outdated excludes
@beniwohli beniwohli merged commit 3984416 into elastic:master Mar 16, 2021
@beniwohli beniwohli deleted the python-3.10 branch March 16, 2021 15:12
beniwohli added a commit to beniwohli/apm-agent-python that referenced this pull request Sep 14, 2021
* add Python 3.10 beta/RC builds to the matrix

* delete any __pycache__ folders to avoid bytecode cache issues

This is especially problematic when mounting the working directory
in docker for testing, as the local Python version may differ from
the one in docker.

* remove pathlib dependency, it's part of the standard library since Python 3.4

* Makefile requires tabs...

* added excludes for Django < 3.0 and Python 3.10

also, removed a bunch of outdated excludes

* more collections.abc-related excludes

* asyncpg currently doesn't build on 3.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants