Repository navigation
Add detail to traced values where str() is ambiguous - #729
Conversation
566041a to
6015a75
Compare
6015a75 to
5831d00
Compare
Trace output stays str() based, because that is what makes it readable, but str() hides things a reader needs often enough to be worth fixing case by case: - an empty string is indistinguishable from no value at all, which is exactly wrong for a comparison trace showing left and right - a string carrying whitespace has no visible boundaries - an IntEnum prints as a bare number, losing the member name - a path prints as text, so a PosixPath and a py.path.local argument pointing at the same place look identical - a multi line value runs into column 0 and reads as a trace line of its own rather than as the value of its key So values that read unambiguously as themselves -- a non empty printable string without spaces, and every type whose repr adds nothing -- stay bare, and the rest gain quotes, their type, or a block. Multi line values are drawn as a box, each line prefixed with | and the last with \\, so the extent of the value is visible at a glance. Measured on a real pytest --debug run, this changes 45 of 1329 trace lines, against 216 for rendering every value with repr(). Every changed line carries information the previous rendering dropped. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Co-Authored-By: Claude Code <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Co-Authored-By: Claude Code <[email protected]>
_safe_repr is only reached for enums, paths and quoted strings, which all have working reprs in the existing tests, so its guards were dead in coverage. A path-like with a broken repr is the pytest-dev#424 scenario applied to a value the heuristic sends through repr. _tracing.py is back at 100% statement and branch coverage. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Co-Authored-By: Claude Code <[email protected]>
5831d00 to
2143bb6
Compare
|
Verified the three rendering rules on the branch (
The trigger is specifically For contrast, on The fix is to test the enum/PathLike case first. I tried it: over A bare CR is still emitted inline. The bare-CR case is the one that matters for the stated goal: a terminal acts on the Either half would close it: split on Happy to send a patch for either or both — the reorder is a one-line move and the CR fix is a |
|
@RonnyPfannschmidt I think it'd be good to do a pluggy release. Would you like to get this PR in before? |
Draw a multi-line value indented under its key without a box edge, drop the docs paragraph the example already shows, and shorten the changelog and the _render_value docstring. Co-Authored-By: Claude Opus 5.5 via Claude Code <[email protected]>
A StrEnum member is a str whose str() is the bare value, so it took the plain-token path and lost its name. Check for enums and paths before strings. Co-Authored-By: Claude Opus 5.5 via Claude Code <[email protected]>
Rendering tested for \r while the block decision split on \n only, so a bare CR went out inline, where the terminal returns to column 0 and the value overwrites its key, and \r\n left a stray CR in the block. Use splitlines() for both, which also quotes a string with a single trailing newline instead of drawing a block with an empty last line. Co-Authored-By: Claude Opus 5.5 via Claude Code <[email protected]>
|
@bluetech i'd like toget that refactoring chain in as well |
Bumps [pluggy](https://github.com/pytest-dev/pluggy) from 1.6.0 to 1.7.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst">pluggy's changelog</a>.</em></p> <blockquote> <h1>pluggy 1.7.0 (2026-10-14)</h1> <h2>Deprecations and Removals</h2> <ul> <li><code>[#632](pytest-dev/pluggy#632) <https://github.com/pytest-dev/pluggy/issues/632></code>_: Hookspec methods defined without <code>self</code> as the first parameter now emit a :class:<code>DeprecationWarning</code>. Add <code>self</code> as the first parameter or use <code>@staticmethod</code>.</li> </ul> <h2>Features</h2> <ul> <li> <p><code>[#170](pytest-dev/pluggy#170) <https://github.com/pytest-dev/pluggy/issues/170></code>_: Hookspecs can now declare default values for arguments, using the usual <code>def myhook(myarg="default")</code> syntax. This is mainly a backward compatibility feature, to allow a hookspec to add new parameters to an existing hook without breaking existing <em>callers</em>. See :ref:<code>hookspec_arg_default</code> for details.</p> </li> <li> <p><code>[#729](pytest-dev/pluggy#729) <https://github.com/pytest-dev/pluggy/issues/729></code>_: Tracing now adds detail where <code>str()</code> is ambiguous: empty strings and strings containing whitespace are quoted, and enums and paths show their <code>repr()</code>.</p> <p>A value spanning several lines is now displayed as a block instead of running into the surrounding trace.</p> </li> </ul> <h2>Bug Fixes</h2> <ul> <li> <p><code>[#629](pytest-dev/pluggy#629) <https://github.com/pytest-dev/pluggy/issues/629></code>_: Fix hooks failing to register on Python 3.14+ when type annotations use forward references.</p> </li> <li> <p><code>[#315](pytest-dev/pluggy#315) <https://github.com/pytest-dev/pluggy/issues/315></code>_: Source archives created by <code>git archive</code> (including GitHub's "Source code" downloads) now carry version information, so building pluggy from them no longer fails with a missing version.</p> </li> <li> <p><code>[#442](pytest-dev/pluggy#442) <https://github.com/pytest-dev/pluggy/issues/442></code>_: With the addition of default values for hookspec arguments, we also changed the precedence of default values for <em>hookimpl</em> arguments. Previously, if a hookimpl function declared a default for an argument, it was always used, even if the <em>hook call</em> passed an explicit value. Now the precedence is changed to: hook call passed value > hookspec default value > hookimpl default value. See :ref:<code>hookimpl_arg_defaults</code>.</p> </li> <li> <p><code>[#701](pytest-dev/pluggy#701) <https://github.com/pytest-dev/pluggy/issues/701></code>_: Hookimpls and hookspecs are now discovered via :func:<code>inspect.getattr_static</code>, so properties, <code>cached_property</code> and other descriptors are no longer executed while scanning a plugin. Hooks declared through such a descriptor are not supported.</p> <p>As a side effect, <code>@hookimpl</code>/<code>@hookspec</code> applied <em>above</em> <code>@classmethod</code> or <code>@staticmethod</code> is now picked up; previously the marker sat on the wrapper where <code>getattr()</code> never saw it. Callables stored directly on a plugin instance -- in its <code>__dict__</code> or in a <code>__slots__</code> slot -- keep being called exactly as <code>getattr()</code> returned them, i.e. without an implicit <code>self</code>.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pluggy/commit/4c7f6365f2dde09c11e72db67d0f615231d64c19"><code>4c7f636</code></a> Preparing release 1.7.0</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/21c7e1672941a0cd9e3c555bf5e5007f1fbe3dc5"><code>21c7e16</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/787">#787</a> from pytest-dev/rm-outdated-doc</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/628959b178ab075c0b9af833511e53b4f5640fcb"><code>628959b</code></a> docs: remove outdated hookimpl default args paragraph</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/2edab5eb6d1d68d628e68b1aa0796d2388733446"><code>2edab5e</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/752">#752</a> from bluetech/register-none-allow</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/6995073de5ebc58d97dc017a7c2b7c5904f4c485"><code>6995073</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/776">#776</a> from RonnyPfannschmidt/fix/uv-lock-pytest-downgrade</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/50c1ac94b4a3e64d2b8e1a1868d3c580c95c7164"><code>50c1ac9</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pluggy/issues/781">#781</a>)</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/6a7e84e48cbeacdcb231a1e6dffc0bd6b6bd085e"><code>6a7e84e</code></a> Add changelog fragment for <a href="https://redirect.github.com/pytest-dev/pluggy/issues/776">#776</a></li> <li><a href="https://github.com/pytest-dev/pluggy/commit/d22cfb59c2a4c35af1335af338587d11a9a624ce"><code>d22cfb5</code></a> Drop tox from the dev dependency group</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/74cbfa2b9a9ebf6098beb493ad1113efeb0e45e9"><code>74cbfa2</code></a> Relock pytest and tox that dependabot downgraded</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/87f130aa18d8fdf9c92585e72423eca7f3de727d"><code>87f130a</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/755">#755</a> from harbinresearcher/codex/entrypoint-plugin-presence</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pluggy/compare/1.6.0...1.7.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pluggy](https://github.com/pytest-dev/pluggy) from 1.6.0 to 1.7.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst">pluggy's changelog</a>.</em></p> <blockquote> <h1>pluggy 1.7.0 (2026-10-14)</h1> <h2>Deprecations and Removals</h2> <ul> <li><code>[#632](pytest-dev/pluggy#632) <https://github.com/pytest-dev/pluggy/issues/632></code>_: Hookspec methods defined without <code>self</code> as the first parameter now emit a :class:<code>DeprecationWarning</code>. Add <code>self</code> as the first parameter or use <code>@staticmethod</code>.</li> </ul> <h2>Features</h2> <ul> <li> <p><code>[#170](pytest-dev/pluggy#170) <https://github.com/pytest-dev/pluggy/issues/170></code>_: Hookspecs can now declare default values for arguments, using the usual <code>def myhook(myarg="default")</code> syntax. This is mainly a backward compatibility feature, to allow a hookspec to add new parameters to an existing hook without breaking existing <em>callers</em>. See :ref:<code>hookspec_arg_default</code> for details.</p> </li> <li> <p><code>[#729](pytest-dev/pluggy#729) <https://github.com/pytest-dev/pluggy/issues/729></code>_: Tracing now adds detail where <code>str()</code> is ambiguous: empty strings and strings containing whitespace are quoted, and enums and paths show their <code>repr()</code>.</p> <p>A value spanning several lines is now displayed as a block instead of running into the surrounding trace.</p> </li> </ul> <h2>Bug Fixes</h2> <ul> <li> <p><code>[#629](pytest-dev/pluggy#629) <https://github.com/pytest-dev/pluggy/issues/629></code>_: Fix hooks failing to register on Python 3.14+ when type annotations use forward references.</p> </li> <li> <p><code>[#315](pytest-dev/pluggy#315) <https://github.com/pytest-dev/pluggy/issues/315></code>_: Source archives created by <code>git archive</code> (including GitHub's "Source code" downloads) now carry version information, so building pluggy from them no longer fails with a missing version.</p> </li> <li> <p><code>[#442](pytest-dev/pluggy#442) <https://github.com/pytest-dev/pluggy/issues/442></code>_: With the addition of default values for hookspec arguments, we also changed the precedence of default values for <em>hookimpl</em> arguments. Previously, if a hookimpl function declared a default for an argument, it was always used, even if the <em>hook call</em> passed an explicit value. Now the precedence is changed to: hook call passed value > hookspec default value > hookimpl default value. See :ref:<code>hookimpl_arg_defaults</code>.</p> </li> <li> <p><code>[#701](pytest-dev/pluggy#701) <https://github.com/pytest-dev/pluggy/issues/701></code>_: Hookimpls and hookspecs are now discovered via :func:<code>inspect.getattr_static</code>, so properties, <code>cached_property</code> and other descriptors are no longer executed while scanning a plugin. Hooks declared through such a descriptor are not supported.</p> <p>As a side effect, <code>@hookimpl</code>/<code>@hookspec</code> applied <em>above</em> <code>@classmethod</code> or <code>@staticmethod</code> is now picked up; previously the marker sat on the wrapper where <code>getattr()</code> never saw it. Callables stored directly on a plugin instance -- in its <code>__dict__</code> or in a <code>__slots__</code> slot -- keep being called exactly as <code>getattr()</code> returned them, i.e. without an implicit <code>self</code>.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pluggy/commit/4c7f6365f2dde09c11e72db67d0f615231d64c19"><code>4c7f636</code></a> Preparing release 1.7.0</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/21c7e1672941a0cd9e3c555bf5e5007f1fbe3dc5"><code>21c7e16</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/787">#787</a> from pytest-dev/rm-outdated-doc</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/628959b178ab075c0b9af833511e53b4f5640fcb"><code>628959b</code></a> docs: remove outdated hookimpl default args paragraph</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/2edab5eb6d1d68d628e68b1aa0796d2388733446"><code>2edab5e</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/752">#752</a> from bluetech/register-none-allow</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/6995073de5ebc58d97dc017a7c2b7c5904f4c485"><code>6995073</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/776">#776</a> from RonnyPfannschmidt/fix/uv-lock-pytest-downgrade</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/50c1ac94b4a3e64d2b8e1a1868d3c580c95c7164"><code>50c1ac9</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pluggy/issues/781">#781</a>)</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/6a7e84e48cbeacdcb231a1e6dffc0bd6b6bd085e"><code>6a7e84e</code></a> Add changelog fragment for <a href="https://redirect.github.com/pytest-dev/pluggy/issues/776">#776</a></li> <li><a href="https://github.com/pytest-dev/pluggy/commit/d22cfb59c2a4c35af1335af338587d11a9a624ce"><code>d22cfb5</code></a> Drop tox from the dev dependency group</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/74cbfa2b9a9ebf6098beb493ad1113efeb0e45e9"><code>74cbfa2</code></a> Relock pytest and tox that dependabot downgraded</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/87f130aa18d8fdf9c92585e72423eca7f3de727d"><code>87f130a</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/755">#755</a> from harbinresearcher/codex/entrypoint-plugin-presence</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pluggy/compare/1.6.0...1.7.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pluggy](https://github.com/pytest-dev/pluggy) from 1.6.0 to 1.7.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst">pluggy's changelog</a>.</em></p> <blockquote> <h1>pluggy 1.7.0 (2026-10-14)</h1> <h2>Deprecations and Removals</h2> <ul> <li><code>[#632](pytest-dev/pluggy#632) <https://github.com/pytest-dev/pluggy/issues/632></code>_: Hookspec methods defined without <code>self</code> as the first parameter now emit a :class:<code>DeprecationWarning</code>. Add <code>self</code> as the first parameter or use <code>@staticmethod</code>.</li> </ul> <h2>Features</h2> <ul> <li> <p><code>[#170](pytest-dev/pluggy#170) <https://github.com/pytest-dev/pluggy/issues/170></code>_: Hookspecs can now declare default values for arguments, using the usual <code>def myhook(myarg="default")</code> syntax. This is mainly a backward compatibility feature, to allow a hookspec to add new parameters to an existing hook without breaking existing <em>callers</em>. See :ref:<code>hookspec_arg_default</code> for details.</p> </li> <li> <p><code>[#729](pytest-dev/pluggy#729) <https://github.com/pytest-dev/pluggy/issues/729></code>_: Tracing now adds detail where <code>str()</code> is ambiguous: empty strings and strings containing whitespace are quoted, and enums and paths show their <code>repr()</code>.</p> <p>A value spanning several lines is now displayed as a block instead of running into the surrounding trace.</p> </li> </ul> <h2>Bug Fixes</h2> <ul> <li> <p><code>[#629](pytest-dev/pluggy#629) <https://github.com/pytest-dev/pluggy/issues/629></code>_: Fix hooks failing to register on Python 3.14+ when type annotations use forward references.</p> </li> <li> <p><code>[#315](pytest-dev/pluggy#315) <https://github.com/pytest-dev/pluggy/issues/315></code>_: Source archives created by <code>git archive</code> (including GitHub's "Source code" downloads) now carry version information, so building pluggy from them no longer fails with a missing version.</p> </li> <li> <p><code>[#442](pytest-dev/pluggy#442) <https://github.com/pytest-dev/pluggy/issues/442></code>_: With the addition of default values for hookspec arguments, we also changed the precedence of default values for <em>hookimpl</em> arguments. Previously, if a hookimpl function declared a default for an argument, it was always used, even if the <em>hook call</em> passed an explicit value. Now the precedence is changed to: hook call passed value > hookspec default value > hookimpl default value. See :ref:<code>hookimpl_arg_defaults</code>.</p> </li> <li> <p><code>[#701](pytest-dev/pluggy#701) <https://github.com/pytest-dev/pluggy/issues/701></code>_: Hookimpls and hookspecs are now discovered via :func:<code>inspect.getattr_static</code>, so properties, <code>cached_property</code> and other descriptors are no longer executed while scanning a plugin. Hooks declared through such a descriptor are not supported.</p> <p>As a side effect, <code>@hookimpl</code>/<code>@hookspec</code> applied <em>above</em> <code>@classmethod</code> or <code>@staticmethod</code> is now picked up; previously the marker sat on the wrapper where <code>getattr()</code> never saw it. Callables stored directly on a plugin instance -- in its <code>__dict__</code> or in a <code>__slots__</code> slot -- keep being called exactly as <code>getattr()</code> returned them, i.e. without an implicit <code>self</code>.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pluggy/commit/4c7f6365f2dde09c11e72db67d0f615231d64c19"><code>4c7f636</code></a> Preparing release 1.7.0</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/21c7e1672941a0cd9e3c555bf5e5007f1fbe3dc5"><code>21c7e16</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/787">#787</a> from pytest-dev/rm-outdated-doc</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/628959b178ab075c0b9af833511e53b4f5640fcb"><code>628959b</code></a> docs: remove outdated hookimpl default args paragraph</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/2edab5eb6d1d68d628e68b1aa0796d2388733446"><code>2edab5e</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/752">#752</a> from bluetech/register-none-allow</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/6995073de5ebc58d97dc017a7c2b7c5904f4c485"><code>6995073</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/776">#776</a> from RonnyPfannschmidt/fix/uv-lock-pytest-downgrade</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/50c1ac94b4a3e64d2b8e1a1868d3c580c95c7164"><code>50c1ac9</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pluggy/issues/781">#781</a>)</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/6a7e84e48cbeacdcb231a1e6dffc0bd6b6bd085e"><code>6a7e84e</code></a> Add changelog fragment for <a href="https://redirect.github.com/pytest-dev/pluggy/issues/776">#776</a></li> <li><a href="https://github.com/pytest-dev/pluggy/commit/d22cfb59c2a4c35af1335af338587d11a9a624ce"><code>d22cfb5</code></a> Drop tox from the dev dependency group</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/74cbfa2b9a9ebf6098beb493ad1113efeb0e45e9"><code>74cbfa2</code></a> Relock pytest and tox that dependabot downgraded</li> <li><a href="https://github.com/pytest-dev/pluggy/commit/87f130aa18d8fdf9c92585e72423eca7f3de727d"><code>87f130a</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pluggy/issues/755">#755</a> from harbinresearcher/codex/entrypoint-plugin-presence</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pluggy/compare/1.6.0...1.7.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dates (#39968) Bumps the simple group in /misc/dbt-materialize with 2 updates: [dbt-core](https://github.com/dbt-labs/dbt-core) and [pluggy](https://github.com/pytest-dev/pluggy). Updates `dbt-core` from 1.12.5 to 1.12.6 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dbt-labs/dbt-core/releases">dbt-core's releases</a>.</em></p> <blockquote> <h2>dbt v1.12.6</h2> <h2>dbt-core 1.12.6 - October 14, 2026</h2> <h3>Features</h3> <ul> <li>Announce dbt v2 availability as an INFO message on <code>dbt --version</code>, with a link to the v2 install docs (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> </ul> <h3>Fixes</h3> <ul> <li>Relay the v2 (Fusion) parser's log output via --log-format otel instead of json-compat, dropping span noise, keeping fusion's error/warning codes, and fixing a latent bug where a stray fusion stderr line could abort the run under --warn-error (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li>Bare wildcard FQN selectors (e.g. <code>-s "f_*"</code>) now match nested models regardless of subfolder depth (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li>Fix cumulative metrics with an <code>input_metric</code> and a top-level <code>window</code> field (v2 metric spec) incorrectly failing to parse with a legacy nested-<code>type_params</code> error (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li>Fix compiled_code not persisted to manifest.json when using --use-v2-parser (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li>Include <code>semantic_manifest.json</code> in the artifact set uploaded by <code>--upload-to-artifacts-ingest-api</code>, matching other run artifacts (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li>Validate that tarball package download locations stay within the dbt downloads directory (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> </ul> <h3>Under the Hood</h3> <ul> <li>Rename internal "Fusion" naming to "v2" for the v2 parser integration (exceptions, module, and test names); no user-facing behavior change (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> </ul> <h3>Contributors</h3> <ul> <li><a href="https://github.com/">@</a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li><a href="https://github.com/aiguofer"><code>@aiguofer</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>, <a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li><a href="https://github.com/ash2shukla"><code>@ash2shukla</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>, <a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li><a href="https://github.com/ayshukla"><code>@ayshukla</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li><a href="https://github.com/itsnamangoyal"><code>@itsnamangoyal</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li><a href="https://github.com/tauhid621"><code>@tauhid621</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/dbt-labs/dbt/blob/v1.12.6/CHANGELOG.md">dbt-core's changelog</a>.</em></p> <blockquote> <h2>dbt-core 1.12.6 - October 14, 2026</h2> <h3>Features</h3> <ul> <li>Announce dbt v2 availability as an INFO message on <code>dbt --version</code>, with a link to the v2 install docs (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> </ul> <h3>Fixes</h3> <ul> <li>Relay the v2 (Fusion) parser's log output via --log-format otel instead of json-compat, dropping span noise, keeping fusion's error/warning codes, and fixing a latent bug where a stray fusion stderr line could abort the run under --warn-error (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li>Bare wildcard FQN selectors (e.g. <code>-s "f_*"</code>) now match nested models regardless of subfolder depth (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li>Fix cumulative metrics with an <code>input_metric</code> and a top-level <code>window</code> field (v2 metric spec) incorrectly failing to parse with a legacy nested-<code>type_params</code> error (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li>Fix compiled_code not persisted to manifest.json when using --use-v2-parser (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li>Include <code>semantic_manifest.json</code> in the artifact set uploaded by <code>--upload-to-artifacts-ingest-api</code>, matching other run artifacts (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li>Validate that tarball package download locations stay within the dbt downloads directory (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> </ul> <h3>Under the Hood</h3> <ul> <li>Rename internal "Fusion" naming to "v2" for the v2 parser integration (exceptions, module, and test names); no user-facing behavior change (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> </ul> <h3>Contributors</h3> <ul> <li><a href="https://github.com/">@</a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li><a href="https://github.com/aiguofer"><code>@aiguofer</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>, <a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li><a href="https://github.com/ash2shukla"><code>@ash2shukla</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>, <a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li><a href="https://github.com/ayshukla"><code>@ayshukla</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/N/A">#N/A</a>)</li> <li><a href="https://github.com/itsnamangoyal"><code>@itsnamangoyal</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> <li><a href="https://github.com/tauhid621"><code>@tauhid621</code></a> (<a href="https://github.com/dbt-labs/dbt-core/issues/">#</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dbt-labs/dbt/commit/78d8367e143e753fe53c553af478708d23ccf5cc"><code>78d8367</code></a> Bumping version to 1.12.6 and generate changelog</li> <li><a href="https://github.com/dbt-labs/dbt/commit/4f2d60bc6e6653b511bf9f041f11e924351caa8c"><code>4f2d60b</code></a> Validate tarball package download path (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16678">#16678</a>) (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16683">#16683</a>)</li> <li><a href="https://github.com/dbt-labs/dbt/commit/03924c8284820606edcae9f24f6e8b66a89ddda4"><code>03924c8</code></a> fix: register semantic_manifest.json for --upload-to-artifacts-ingest-api (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/1">#1</a>...</li> <li><a href="https://github.com/dbt-labs/dbt/commit/a990c1477b7e541cde3b538e39ea4ce362bebf04"><code>a990c14</code></a> Fix compiled_code not persisted to manifest.json under --use-v2-parser (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/1653">#1653</a>...</li> <li><a href="https://github.com/dbt-labs/dbt/commit/99a37ef6f6556824514546b23ec5cd6707ae0059"><code>99a37ef</code></a> fix: don't set legacy type_params.window for v2 cumulative/conversion metrics...</li> <li><a href="https://github.com/dbt-labs/dbt/commit/ef4446de2e6eda0b65f549e48968cc7b152078fb"><code>ef4446d</code></a> feat: announce dbt v2 availability on <code>dbt --version</code> (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16132">#16132</a>) (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16506">#16506</a>)</li> <li><a href="https://github.com/dbt-labs/dbt/commit/fe2119770daf93e10b9d3cd66edb5c3bbd0b36b6"><code>fe21197</code></a> fix: match bare wildcard FQN selectors against nested leaf names (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16348">#16348</a>) (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/1">#1</a>...</li> <li><a href="https://github.com/dbt-labs/dbt/commit/a192164217c7579836e55456b9d71135ec4c8f1c"><code>a192164</code></a> Relay v2 parser output via otel log format for output parity (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16325">#16325</a>) (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16372">#16372</a>)</li> <li><a href="https://github.com/dbt-labs/dbt/commit/3cd80f56e58106c0e512da3bd9d11eae3554401f"><code>3cd80f5</code></a> Rename internal Fusion parser naming to v2 (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16281">#16281</a>) (<a href="https://redirect.github.com/dbt-labs/dbt-core/issues/16359">#16359</a>)</li> <li><a href="https://github.com/dbt-labs/dbt/commit/dc2e0230e15940d81c01ba6e63f77ed43fc0a983"><code>dc2e023</code></a> [Automated] Merged prep-release/1.12.5_34997786343 into target 1.12.latest du...</li> <li>See full diff in <a href="https://github.com/dbt-labs/dbt-core/compare/v1.12.5...v1.12.6">compare view</a></li> </ul> </details> <br /> Updates `pluggy` from 1.6.0 to 1.7.0 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst">pluggy's changelog</a>.</em></p> <blockquote> <h1>pluggy 1.7.0 (2026-10-14)</h1> <h2>Deprecations and Removals</h2> <ul> <li><code>[#632](pytest-dev/pluggy#632) <https://github.com/pytest-dev/pluggy/issues/632></code>_: Hookspec methods defined without <code>self</code> as the first parameter now emit a :class:<code>DeprecationWarning</code>. Add <code>self</code> as the first parameter or use <code>@staticmethod</code>.</li> </ul> <h2>Features</h2> <ul> <li> <p><code>[#170](pytest-dev/pluggy#170) <https://github.com/pytest-dev/pluggy/issues/170></code>_: Hookspecs can now declare default values for arguments, using the usual <code>def myhook(myarg="default")</code> syntax. This is mainly a backward compatibility feature, to allow a hookspec to add new parameters to an existing hook without breaking existing <em>callers</em>. See :ref:<code>hookspec_arg_default</code> for details.</p> </li> <li> <p><code>[#729](pytest-dev/pluggy#729) <https://github.com/pytest-dev/pluggy/issues/729></code>_: Tracing now adds detail where <code>str()</code> is ambiguous: empty strings and strings containing whitespace are quoted, and enums and paths show their <code>repr()</code>.</p> <p>A value spanning several lines is now displayed as a block instead of running into the surrounding trace.</p> </li> </ul> <h2>Bug Fixes</h2> <ul> <li> <p><code>[#629](pytest-dev/pluggy#629) <https://github.com/pytest-dev/pluggy/issues/629></code>_: Fix hooks failing to register on Python 3.14+ when type annotations use forward references.</p> </li> <li> <p><code>[#315](pytest-dev/pluggy#315) <https://github.com/pytest-dev/pluggy/issues/315></code>_: Source archives created by <code>git archive</code> (including GitHub's "Source code" downloads) now carry version information, so building pluggy from them no longer fails with a missing version.</p> </li> <li> <p><code>[#442](pytest-dev/pluggy#442) <https://appwritefunc.yet-another-te
Why
#728 fixes the two tracing crashes without touching the output, and says explicitly that
the type-visibility idea from #627/#681 should be argued on its own. This is that
argument.
Rendering every value with
repr(), as #681 proposed, changes 216 of 1329 lines in areal
pytest --debugrun, and the overwhelming majority of that is quotes added aroundstrings that were already readable. But
str()does drop things a reader needs:left:/right:val: with spaceexitstatus: 1IntEnumprints as a bare number, the member name is lostcollection_path: /xpath: /xPosixPathand apy.path.localpointing at the same place look identicalThe rule
repr()enum.Enumor anos.PathLikegetsrepr(), checked first so aStrEnummember keeps its name\rincluded) is drawn as an indented blockstr(), unchangedWhat it costs
Measured on a real
pytest --debugrun: 45 of 1329 lines change (3.4%), against 216for blanket
repr(). By category: 21 paths, 11 whitespace strings, 3 empty strings, 2enums, 2 blocks.
Multi-line values
Today a multi-line value breaks the layout — the continuation escapes to column 0 and
reads as a top-level trace line:
With this change the value is indented under its key, so it stays attached to it:
A bare
\rcounts as a line break too. Emitted inline, it returned the terminal cursorto column 0 and the value overwrote its own key.
Rough edges, for review
nodeid: test_mix.py::test_p[with space]gains quotes, because the parameter idcontains a space. The rule fires correctly, but on something that is not really "a
string with whitespace" in spirit.
orig: n or n == ""becomesorig: 'n or n == ""'— nested quotes on source text.'\ud800'rather than bare, since they are notisprintable(). Arguably clearer; it does change two tests added in Make hook tracing unable to fail a hook call #728.enabled — around 0.5 ms across a whole pytest run.
Testing
uv run pytest— 203 passed.uv run pre-commit run -a— all hooks pass._tracing.pyat 100% statement and branch coverage.newly reaches — a path-like with a broken repr, and
KeyboardInterruptraised from arepr.
pytest --debugoutput diffed againstmain: 45 changed lines, each one listed above.Since review
|/\edge (bluetech).StrEnummembers took the plain-string path and lost their name; enums and paths arenow checked before strings.
splitlines()both when rendering and when indenting, so\rand\r\nproduce a clean block, and a string with a single trailing newline isquoted (
'line\n') instead of drawn as a block with an empty last line.uv run pytest: 208 passed;uv run pre-commit run -a: all hooks pass;_tracing.pystill at 100% statement and branch coverage. The
pytest --debugline counts abovewere measured before these follow-ups and were not re-run.
🤖 Generated with Claude Code