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

Use execnet main_thread_only execmodel #1

Draft
wants to merge 53 commits into
base: master
Choose a base branch
from

Commits on Feb 28, 2024

  1. Avoid modifying path placeholders created by editable installs

    The setuptools implementation of editable installs will insert a
    placeholder entry into sys.path as part of its magic to register its
    custom import mechanism.
    
    These are not real filesystem paths and as such should not be
    rewritten to absolute paths.
    jeremy-hiatt committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    51ef944 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Configuration menu
    Copy the full SHA
    79fb6ff View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Merge pull request pytest-dev#1030 from jeremy-hiatt/dont-rewrite-pat…

    …h-hooks
    
    Avoid modifying path placeholders created by editable installs
    RonnyPfannschmidt authored Mar 1, 2024
    Configuration menu
    Copy the full SHA
    54720c1 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Bump the github-actions group with 1 update (pytest-dev#1035)

    Bumps the github-actions group with 1 update: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish).
    
    
    Updates `pypa/gh-action-pypi-publish` from 1.8.11 to 1.8.12
    - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
    - [Commits](pypa/gh-action-pypi-publish@v1.8.11...v1.8.12)
    
    ---
    updated-dependencies:
    - dependency-name: pypa/gh-action-pypi-publish
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    0596f27 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Configuration menu
    Copy the full SHA
    74887e3 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Bump the github-actions group with 2 updates (pytest-dev#1037)

    Bumps the github-actions group with 2 updates: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) and [softprops/action-gh-release](https://github.com/softprops/action-gh-release).
    
    
    Updates `pypa/gh-action-pypi-publish` from 1.8.12 to 1.8.14
    - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
    - [Commits](pypa/gh-action-pypi-publish@v1.8.12...v1.8.14)
    
    Updates `softprops/action-gh-release` from 1 to 2
    - [Release notes](https://github.com/softprops/action-gh-release/releases)
    - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
    - [Commits](softprops/action-gh-release@v1...v2)
    
    ---
    updated-dependencies:
    - dependency-name: pypa/gh-action-pypi-publish
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: softprops/action-gh-release
      dependency-type: direct:production
      update-type: version-update:semver-major
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    a9801a4 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. [pre-commit.ci] pre-commit autoupdate (pytest-dev#1039)

    updates:
    - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Mar 13, 2024
    Configuration menu
    Copy the full SHA
    5b83de4 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. [pre-commit.ci] pre-commit autoupdate (pytest-dev#1044)

    updates:
    - [github.com/PyCQA/autoflake: v2.3.0 → v2.3.1](PyCQA/autoflake@v2.3.0...v2.3.1)
    - [github.com/psf/black: 24.2.0 → 24.3.0](psf/black@24.2.0...24.3.0)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    74edbeb View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2024

  1. Remove pytest InvocationParams backward compat

    It's available since pytest 5.2, and pytest-xdist requires pytest>=6.2.
    bluetech committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    00dc8ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    74f5752 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. Merge pull request pytest-dev#1047 from bluetech/rm-invocationparams-…

    …compat
    
    Remove pytest InvocationParams backward compat
    nicoddemus authored Apr 1, 2024
    Configuration menu
    Copy the full SHA
    dde8a66 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84df445 View commit details
    Browse the repository at this point in the history
  3. Bump the github-actions group with 1 update

    Bumps the github-actions group with 1 update: [hynek/build-and-inspect-python-package](https://github.com/hynek/build-and-inspect-python-package).
    
    
    Updates `hynek/build-and-inspect-python-package` from 2.0 to 2.2
    - [Release notes](https://github.com/hynek/build-and-inspect-python-package/releases)
    - [Changelog](https://github.com/hynek/build-and-inspect-python-package/blob/main/CHANGELOG.md)
    - [Commits](hynek/build-and-inspect-python-package@v2.0...v2.2)
    
    ---
    updated-dependencies:
    - dependency-name: hynek/build-and-inspect-python-package
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 1, 2024
    Configuration menu
    Copy the full SHA
    940c4fc View commit details
    Browse the repository at this point in the history
  4. Merge pull request pytest-dev#1050 from pytest-dev/dependabot/github_…

    …actions/github-actions-867643949f
    
    Bump the github-actions group with 1 update
    nicoddemus authored Apr 1, 2024
    Configuration menu
    Copy the full SHA
    8f7bd68 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Sort imports

    Using pytest's style.
    bluetech committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    e3b69d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c01de1c View commit details
    Browse the repository at this point in the history
  3. Use ruff instead of black, flake8, autoflake, pyupgrade

    Config adapted from pytest.
    bluetech committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    816c9dc View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Merge pull request pytest-dev#1051 from bluetech/ruff

    Use ruff instead of black, flake8, autoflake, pyupgrade
    bluetech authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    b6f5d2b View commit details
    Browse the repository at this point in the history
  2. testing: replace testdir -> pytester

    The `testdir` fixture is soft-deprecated in favor of `pytester`.
    bluetech committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    d63400e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a790dc5 View commit details
    Browse the repository at this point in the history
  4. Merge pull request pytest-dev#1054 from bluetech/rm-py37

    Drop support for Python 3.7
    RonnyPfannschmidt authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    d96d87e View commit details
    Browse the repository at this point in the history
  5. Merge pull request pytest-dev#1052 from bluetech/pytester

    testing: replace `testdir` -> `pytester`
    bluetech authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    470bc83 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. ci: add a job for min supported pytest version

    Make sure we don't break the promise.
    bluetech committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    fbf2eca View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Merge pull request pytest-dev#1056 from bluetech/ci-pytestmin

    ci: add a job for min supported pytest version
    bluetech authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    99b767b View commit details
    Browse the repository at this point in the history
  2. Bump min pytest to 7.0.0

    bluetech committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    31de42f View commit details
    Browse the repository at this point in the history
  3. Merge pull request pytest-dev#1058 from bluetech/pytest-min-7

    Bump min pytest to 7.0.0
    bluetech authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    dd067e4 View commit details
    Browse the repository at this point in the history
  4. Bump min execnet to 2.1.0

    This version adds typing which we want to utilize.
    bluetech committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    e9084f2 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2024

  1. Merge pull request pytest-dev#1059 from bluetech/execnet-min

    Bump min execnet to 2.1.0
    bluetech authored Apr 6, 2024
    Configuration menu
    Copy the full SHA
    3e92604 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5dcc10c View commit details
    Browse the repository at this point in the history
  3. testing: fix an assert

    The assert as written was always true, according to the name `failures`
    it intended the first element of the tuple.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    8e77d14 View commit details
    Browse the repository at this point in the history
  4. loadscope: remove redundant None check

    self.config can't be None.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    503c5ee View commit details
    Browse the repository at this point in the history
  5. each: remove incorrect mark_test_pending implementation

    This code is bogus copy/paste; presumably it's not executed in practice
    so make it raise `NotImplementedError`.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    ef5dcde View commit details
    Browse the repository at this point in the history
  6. remote: use perf_counter() to measure duration, not time()

    `time()` is not monotonic and is not appropriate for measuring duration.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    4057da1 View commit details
    Browse the repository at this point in the history
  7. looponfail: remove unneeded setup(out) parameter

    It's not used.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    a3b9a98 View commit details
    Browse the repository at this point in the history
  8. dsession,workermanage: drop handling of pytest_captured_warning

    Since d153e0a the remote doesn't send
    events for this hook at all (I think perhaps wrongly, but it's history
    by now), so no point in handling it in the coordinator side.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    5c676aa View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    024c73f View commit details
    Browse the repository at this point in the history
  10. loadscope: use dict instead of OrderedDict

    These days dicts are guaranteed to be ordered, so no need to use
    OrderedDict in two of the three cases (the remaining case needs
    `popitem(last=False)`).
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    ee0b09c View commit details
    Browse the repository at this point in the history
  11. remote,workermanage: use enums for markers

    Enum has a unique type, unlike `object()`, enabling better typing.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    059c1bc View commit details
    Browse the repository at this point in the history
  12. Use from __future__ import annotations

    Allows us to use more modern typing.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    e7a971b View commit details
    Browse the repository at this point in the history
  13. pre-commit: remove py from typing deps, add types-psutil

    py is no longer used.
    psutil is used optionally so add its typing.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    d6c81d5 View commit details
    Browse the repository at this point in the history
  14. testing: add worksteal to TestLocking tests

    Seems like it intends to check all schedulers.
    bluetech committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    29aa05f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    cdff86a View commit details
    Browse the repository at this point in the history
  16. Merge pull request pytest-dev#1060 from bluetech/pre-typing-fixes

    Pre-typing fixes/improvements
    bluetech authored Apr 6, 2024
    Configuration menu
    Copy the full SHA
    4720808 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. [pre-commit.ci] pre-commit autoupdate

    updates:
    - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
    pre-commit-ci[bot] authored Apr 8, 2024
    Configuration menu
    Copy the full SHA
    7c3f70f View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Merge pull request pytest-dev#1062 from pytest-dev/pre-commit-ci-upda…

    …te-config
    
    [pre-commit.ci] pre-commit autoupdate
    nicoddemus authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    91812bf View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Add a Scheduling Protocol

    - Clearly delineate the required interface of schedulers
    - Useful for typing
    bluetech committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    bf2dccc View commit details
    Browse the repository at this point in the history
  2. Merge pull request pytest-dev#1061 from bluetech/scheduling-proto

    Add a Scheduling Protocol
    bluetech authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    5dfc590 View commit details
    Browse the repository at this point in the history
  3. Improve typing

    bluetech committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    b78cf1c View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Merge pull request pytest-dev#1065 from bluetech/typing

    Improve typing
    bluetech authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    ecf7c1c View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. [pre-commit.ci] pre-commit autoupdate

    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.3.7](astral-sh/ruff-pre-commit@v0.3.5...v0.3.7)
    pre-commit-ci[bot] authored and nicoddemus committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    0686279 View commit details
    Browse the repository at this point in the history
  2. Merge pull request pytest-dev#1067 from pytest-dev/pre-commit-ci-upda…

    …te-config
    
    [pre-commit.ci] pre-commit autoupdate
    nicoddemus authored Apr 17, 2024
    Configuration menu
    Copy the full SHA
    0a4238f View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Use execnet main_thread_only execmodel

    Use the execnet main_thread_only execmodel so that code which expects
    to run in the main thread will just work.  This execmodel has been
    merged to the execnet master branch via pytest-dev/execnet#243, so this
    patch should not be merged until there is a released version of execnet
    supporting the main_thread_only execmodel.
    
    Closes: pytest-dev#620
    zmedico authored and nicoddemus committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    a30949c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c82fee1 View commit details
    Browse the repository at this point in the history