canonical / discourse-gatekeeper

Experimental GitHub Action to upload charm documentation to charmhub
Apache License 2.0
7 stars 7 forks source link

Update dependency pytest-asyncio to >=0.23,<0.24 #228

Open renovate[bot] opened 7 months ago

renovate[bot] commented 7 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pytest-asyncio (changelog) >=0.21,<0.22 -> >=0.23,<0.24 age adoption passing confidence

Release Notes

pytest-dev/pytest-asyncio (pytest-asyncio) ### [`v0.23.2`](https://togithub.com/pytest-dev/pytest-asyncio/releases/tag/v0.23.2): pytest-asyncio 0.23.2 [Compare Source](https://togithub.com/pytest-dev/pytest-asyncio/compare/v0.23.1...v0.23.2) ### 0.23.2 (2023-12-04) - Fixes a bug that caused an internal pytest error when collecting .txt files [#​703](https://togithub.com/pytest-dev/pytest-asyncio/issues/703) ### [`v0.23.1`](https://togithub.com/pytest-dev/pytest-asyncio/releases/tag/v0.23.1): pytest-asyncio 0.23.1 [Compare Source](https://togithub.com/pytest-dev/pytest-asyncio/compare/v0.23.0...v0.23.1) ### 0.23.1 (2023-12-03) - Fixes a bug that caused an internal pytest error when using module-level skips [#​701](https://togithub.com/pytest-dev/pytest-asyncio/issues/701) ### [`v0.23.0`](https://togithub.com/pytest-dev/pytest-asyncio/releases/tag/v0.23.0): pytest-asyncio 0.23.0 [Compare Source](https://togithub.com/pytest-dev/pytest-asyncio/compare/v0.22.0...v0.23.0) This release is backwards-compatible with v0.21. Changes are non-breaking, unless you upgrade from v0.22. - BREAKING: The *asyncio_event_loop* mark has been removed. Event loops with class, module, package, and session scopes can be requested via the *scope* keyword argument to the *asyncio* mark. - Introduces the *event_loop_policy* fixture which allows testing with non-default or multiple event loops [#​662](https://togithub.com/pytest-dev/pytest-asyncio/pull/662) - Introduces `pytest_asyncio.is_async_test` which returns whether a test item is managed by pytest-asyncio [#​376](https://togithub.com/pytest-dev/pytest-asyncio/issues/376) - Removes and *pytest-trio,* *mypy,* and *flaky* from the test dependencies [#​620](https://togithub.com/pytest-dev/pytest-asyncio/pull/620), [#​674](https://togithub.com/pytest-dev/pytest-asyncio/pull/674), [#​678](https://togithub.com/pytest-dev/pytest-asyncio/pull/678) ### [`v0.22.0`](https://togithub.com/pytest-dev/pytest-asyncio/releases/tag/v0.22.0): pytest-asyncio 0.22.0 (yanked) [Compare Source](https://togithub.com/pytest-dev/pytest-asyncio/compare/v0.21.1...v0.22.0) *This release deprecated event loop overrides, but didn't provide adequate replacement functionality for all relevant use cases. As such, the release was yanked from PyPI.* ### 0.22.0 (2023-10-31) - Class-scoped and module-scoped event loops can be requested via the *asyncio_event_loop* mark. [#​620](https://togithub.com/pytest-dev/pytest-asyncio/pull/620) - Deprecate redefinition of the *event_loop* fixture. [#​587](https://togithub.com/pytest-dev/pytest-asyncio/issues/531) Users requiring a class-scoped or module-scoped asyncio event loop for their tests should mark the corresponding class or module with *asyncio_event_loop*. - Test items based on asynchronous generators always exit with *xfail* status and emit a warning during the collection phase. This behavior is consistent with synchronous yield tests. [#​642](https://togithub.com/pytest-dev/pytest-asyncio/issues/642) - Remove support for Python 3.7 - Declare support for Python 3.12

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 5 months ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

github-actions[bot] commented 5 months ago

Unit tests failed for 3a92cedb0bfd0960019ce8b6243dd1da73553070

```

============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.0.0, pluggy-1.4.0 -- /home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/bin/python cachedir: .tox/unit/.pytest_cache rootdir: /home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper configfile: pyproject.toml plugins: asyncio-0.23.3, operator-0.31.0, Faker-23.1.0 asyncio: mode=strict collecting ... collected 0 items INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/main.py", line 272, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/main.py", line 325, in _main INTERNALERROR> config.hook.pytest_collection(session=session) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_hooks.py", line 501, in call INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_manager.py", line 119, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_callers.py", line 138, in _multicall INTERNALERROR> raise exception.with_traceback(exception.traceback) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_callers.py", line 121, in _multicall INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr] INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/logging.py", line 783, in pytest_collection INTERNALERROR> return (yield) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_callers.py", line 121, in _multicall INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr] INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/warnings.py", line 118, in pytest_collection INTERNALERROR> return (yield) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_callers.py", line 121, in _multicall INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr] INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/config/init.py", line 1365, in pytest_collection INTERNALERROR> return (yield) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_callers.py", line 102, in _multicall INTERNALERROR> res = hook_impl.function(args) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/main.py", line 336, in pytest_collection INTERNALERROR> session.perform_collect() INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/main.py", line 799, in perform_collect INTERNALERROR> self.items.extend(self.genitems(node)) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/main.py", line 942, in genitems INTERNALERROR> yield from self.genitems(subnode) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/main.py", line 937, in genitems INTERNALERROR> rep, duplicate = self._collect_one_node(node, handle_dupes) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/main.py", line 825, in _collect_one_node INTERNALERROR> rep = collect_one_node(node) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/_pytest/runner.py", line 566, in collect_one_node INTERNALERROR> ihook.pytest_collectstart(collector=collector) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_hooks.py", line 501, in call INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_manager.py", line 119, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_callers.py", line 138, in _multicall INTERNALERROR> raise exception.with_traceback(exception.traceback) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pluggy/_callers.py", line 102, in _multicall INTERNALERROR> res = hook_impl.function(args) INTERNALERROR> File "/home/ubuntu/github-runner/_work/discourse-gatekeeper/discourse-gatekeeper/.tox/unit/lib/python3.10/site-packages/pytest_asyncio/plugin.py", line 626, in pytest_collectstart INTERNALERROR> pyobject = collector.obj INTERNALERROR> AttributeError: 'Package' object has no attribute 'obj'

============================ no tests ran in 0.02s =============================

github-actions[bot] commented 5 months ago

Test coverage for 3a92cedb0bfd0960019ce8b6243dd1da73553070

Name                      Stmts   Miss Branch BrPart  Cover   Missing
---------------------------------------------------------------------
src/__init__.py              97     77     42      0    14%   53-67, 91-188, 206-256, 269-293
src/action.py               155    129     46      0    13%   33-46, 56-59, 79-116, 129-132, 166-182, 198-240, 260-293, 320-345, 364-428, 450-464
src/check.py                 67     44     27      0    24%   65-76, 99, 111-158, 186-224, 236-270, 284-288
src/clients.py               12      1      0      0    92%   37
src/commit.py                42     24     12      0    33%   69-96
src/constants.py             10      0      0      0   100%
src/content.py               50     37     10      0    22%   32-35, 53-97, 110
src/discourse.py            159    111     34      0    25%   87-93, 109-131, 151-185, 199-207, 219, 234-262, 280-286, 299-300, 313-314, 330-331, 364-370, 388-407, 423-437, 453-460, 480-490, 495, 518-550
src/docs_directory.py        33     18      8      0    37%   24, 43, 58-71, 91-103, 117-118, 148, 164
src/download.py              23     13      2      0    40%   22-31, 49-59
src/exceptions.py            15      0      0      0   100%
src/index.py                142     95     56      0    24%   47-52, 70-87, 99, 139-161, 192-202, 214-217, 231-240, 272-278, 300-335, 364-411, 424-425
src/metadata.py              28     19     12      0    22%   31-64
src/migration.py            102     78     33      0    18%   39-65, 78, 99, 113, 136-158, 172-177, 191-195, 213-215, 230-232, 245-249, 270-283, 301-305, 329-348, 364-369, 389-399
src/navigation_table.py      65     40     20      0    29%   52-58, 74-85, 110-120, 141-147, 162-178
src/reconcile.py            123     95     60      0    15%   27-43, 65-73, 92-100, 118-124, 151-160, 202, 244, 270-274, 287-290, 319-354, 390-405, 429-441, 466-484, 512-528, 554-576, 601-610, 649-659, 680-696
src/repository.py           284    198     88      0    23%   88-97, 116-119, 132-135, 150-158, 185-187, 196, 201, 206, 211-220, 225, 230, 244-249, 261-263, 281-296, 304-308, 319-332, 343-354, 376-383, 394-402, 426-461, 468-477, 489-492, 506-518, 532-546, 554-560, 571-575, 586-590, 602-614, 633-671, 690-700, 716-719, 735-746
src/sort.py                  43     27     26      0    23%   52-62, 89-130, 156-162
src/types_.py               201     19     54      0    89%   170, 181-184, 197-206, 398, 587, 601-612
---------------------------------------------------------------------
TOTAL                      1651   1025    530      0    31%
Coverage failure: total of 31 is less than fail-under=100

Static code analysis report

Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:03
Run started:2024-02-08 18:04:34.221190

Test results:
    No issues identified.

Code scanned:
    Total lines of code: 17623
    Total lines skipped (#nosec): 3
    Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
    Total issues (by severity):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
    Total issues (by confidence):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
Files skipped (0):