Skip to content

chore(deps): update dependency coverage to v7.18.0 (main) - #23224

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-coverage-7.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-coverage-7.x

Conversation

@renovate

@renovate renovate Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
coverage ==7.17.5 → ==7.18.0 age confidence

Release Notes

coveragepy/coveragepy (coverage)

v7.18.0

Compare Source

  • Feature: [run] source (and --source) entries can now be glob
    patterns, for example packages/*/src. A pattern is expanded to the
    directories it matches when measurement starts, so monorepo packages are
    measured, and their un-executed files reported, without listing each one.
    A pattern that matches nothing issues a warning. Closes issue 2400_.

  • Feature: two new methods for plug-ins to use in their test suites, as
    requested in issue 920_. The :meth:.Coverage.get_plugins method returns
    the currently registered plug-ins, including disabled ones. The
    :meth:.CoveragePlugin.is_enabled method reports their current enabled
    state.

  • Fix: lcov output now marks functions as starting on the first
    non-signature line, fixing errors about "inconsistent" tracefiles during
    combination. Closed issue 2394_.

  • Fix: XML and LCOV reports now honor the report context filter when
    calculating coverage.

  • Fix: when two source roots each contained a package with the same name, the
    XML report kept only one of the same-named files while still counting the
    lines of both, so lines-valid disagreed with the <line> elements in
    the document. Closes issue 1291_.

  • Fix: with [html] show_contexts enabled, re-running the HTML report kept
    pages whose lines were unchanged, even when the contexts were different, so
    they showed stale contexts. Closes issue 2372_.

  • Fix: with the C tracer and branch coverage, an error while starting to trace
    a function call (for example, RecursionError from should_trace when a
    new file is entered near the recursion limit) left the previous call's file
    in place. If the exception was caught, the function's return recorded arcs in
    that other file, which could report lines as executed that never ran. Now a
    call that fails to start records nothing, closing issue 2385_.

  • Fix: missing branch explanations for exits from a finally clause could
    incorrectly say a condition was always true, even when it was false while an
    exception or return was pending. These explanations now describe the missing
    jump without attributing it solely to the condition. Fixes issue 867_.

  • Fix: if a directory for the data file or a report couldn't be created, the
    error was a raw traceback. Now the error message names the file that was
    being written.

  • Perf: line coverage reports are faster when many measurement contexts
    cover the same file.

.. _issue 867: #​867
.. _issue 920: #​920
.. _issue 1291: nedbat#1291
.. _issue 2372: #​2372
.. _issue 2385: #​2385
.. _issue 2394: #​2394
.. _issue 2400: #​2400

.. _changelog-7.17.5:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies PR: Third-party library dependencies. label Nov 29, 2026
@renovate
renovate Bot enabled auto-merge (rebase) November 29, 2026 20:49
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
15739 4 15735 1053
View the top 3 failed test(s) by shortest run time
weblate.utils.tests.test_files.FilesTestCase::test_resolve_path_walks_missing_suffix_once
Stack Traces | 0.005s run time
self = <weblate.utils.tests.test_files.FilesTestCase testMethod=test_resolve_path_walks_missing_suffix_once>

    def test_resolve_path_walks_missing_suffix_once(self) -> None:
        with tempfile.TemporaryDirectory() as tempdir:
            path = os.path.join(tempdir, "missing", *("nested" for _ in range(200)))
            with patch("weblate.utils.files.os.lstat", wraps=os.lstat) as lstat:
>               self.assertEqual(resolve_path(path), Path(path))
E               AssertionError: PosixPath('.../folders/q2/p1t6rgxj5fj32g1dc7[1431 chars]ted') != PosixPath('.../folders/q2/p1t6rgxj5fj32g1dc7dmd49r00[1423 chars]ted')

.../utils/tests/test_files.py:453: AssertionError
weblate.utils.tests.test_files.FilesTestCase::test_is_path_within_directory_rejects_unresolvable_symlink
Stack Traces | 0.026s run time
self = <weblate.utils.tests.test_files.FilesTestCase testMethod=test_is_path_within_directory_rejects_unresolvable_symlink>

    def test_is_path_within_directory_rejects_unresolvable_symlink(self) -> None:
        with tempfile.TemporaryDirectory() as tempdir:
>           repo_path, filename = self.create_unresolvable_symlink(tempdir)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.../utils/tests/test_files.py:415: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tempdir = '.../p1t6rgxj5fj32g1dc7dmd49r0000gn/T/tmpzk0brtud'

    @staticmethod
    def create_unresolvable_symlink(tempdir: str) -> tuple[str, str]:
        """Create a symlink escaping the repository stored beyond PATH_MAX."""
        repo_path = os.path.join(tempdir, "repo")
        outside_path = os.path.join(tempdir, "outside")
        os.makedirs(repo_path)
        os.makedirs(outside_path)
        Path(outside_path, "secrets.po").write_text("test", encoding="utf-8")
        # Deep enough to exceed PATH_MAX regardless of the temporary directory
        parts = ["d" * 238] * 17
        fd = os.open(repo_path, os.O_RDONLY)
        try:
            for index, part in enumerate(parts):
                os.mkdir(part, dir_fd=fd)
                child = os.open(part, os.O_RDONLY, dir_fd=fd)
                os.close(fd)
                fd = child
                if index == 7:
                    # Keep each symlink target below filesystem length limits.
>                   os.symlink("/".join(parts[8:]), "next", dir_fd=fd)
E                   OSError: [Errno 63] File name too long: '.../dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' -> 'next'

.../utils/tests/test_files.py:403: OSError
weblate.utils.tests.test_files.FilesTestCase::test_resolve_path
Stack Traces | 0.157s run time
self = <weblate.utils.tests.test_files.FilesTestCase testMethod=test_resolve_path>

    def test_resolve_path(self) -> None:
        for resolve in (resolve_path, _realpath_allow_missing):
            with (
                self.subTest(resolve=resolve.__name__),
                tempfile.TemporaryDirectory() as tempdir,
            ):
>               repo_path, filename = self.create_unresolvable_symlink(tempdir)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.../utils/tests/test_files.py:426: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tempdir = '.../p1t6rgxj5fj32g1dc7dmd49r0000gn/T/tmpe9egg239'

    @staticmethod
    def create_unresolvable_symlink(tempdir: str) -> tuple[str, str]:
        """Create a symlink escaping the repository stored beyond PATH_MAX."""
        repo_path = os.path.join(tempdir, "repo")
        outside_path = os.path.join(tempdir, "outside")
        os.makedirs(repo_path)
        os.makedirs(outside_path)
        Path(outside_path, "secrets.po").write_text("test", encoding="utf-8")
        # Deep enough to exceed PATH_MAX regardless of the temporary directory
        parts = ["d" * 238] * 17
        fd = os.open(repo_path, os.O_RDONLY)
        try:
            for index, part in enumerate(parts):
                os.mkdir(part, dir_fd=fd)
                child = os.open(part, os.O_RDONLY, dir_fd=fd)
                os.close(fd)
                fd = child
                if index == 7:
                    # Keep each symlink target below filesystem length limits.
>                   os.symlink("/".join(parts[8:]), "next", dir_fd=fd)
E                   OSError: [Errno 63] File name too long: '.../dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' -> 'next'

.../utils/tests/test_files.py:403: OSError
weblate.trans.tests.test_tasks.TasksTest::test_cleanup_stale_repos_component_wins_over_category_collision
Stack Traces | 0.169s run time
self = <weblate.trans.tests.test_tasks.TasksTest testMethod=test_cleanup_stale_repos_component_wins_over_category_collision>

    def test_cleanup_stale_repos_component_wins_over_category_collision(self) -> None:
>       Category.objects.create(
            project=self.project,
            name="Case collision",
            slug=self.component.slug.upper(),
        )

.../trans/tests/test_tasks.py:1452: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.venv/lib/python3.14.../db/models/manager.py:87: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.14.../db/models/query.py:669: in create
    obj.save(force_insert=True, using=self.db)
.../trans/models/category.py:385: in save
    self.validate_create_path()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Category: Test/Case collision>

    def validate_create_path(self) -> None:
        path = self.full_path
        if os.path.exists(path) and (not os.path.isdir(path) or os.listdir(path)):
>           raise ValidationError(
                {
                    "slug": gettext(
                        "Repository path for this category already exists and is not empty."
                    )
                }
            )
E           django.core.exceptions.ValidationError: {'slug': ['Repository path for this category already exists and is not empty.']}

.../trans/models/category.py:520: ValidationError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies PR: Third-party library dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants