chore(deps): update dependency six to v0.3.1 - autoclosed#41
Closed
renovate[bot] wants to merge 1 commit into
Closed
chore(deps): update dependency six to v0.3.1 - autoclosed#41renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
== 0.3.0→== 0.3.1Release Notes
typicalpixel/six (six)
v0.3.1Compare Source
Log Level Ignores
This release adds
:ignore_log_levelsbecause there are situations where during testing, logs become actually uncoverable due to how Logger's macros work:Logger.info/2(and debug, notice, …) check the configured level before evaluating their message and metadata. Most test suites run with config:logger, level: :warningto keep output quiet, which means an info/debug call short-circuits and its arguments are never executed at runtime.:coverthen reports those lines as missed - even though no test could ever cover them, short of lowering the log level (and flooding test output) or writing unwantedcapture_logassertions just to force evaluation.This bites hardest with multi-line structured logging, where each metadata line is its own coverable expression.
At
level: :warningThe info metadata lines are uncoverable by design; the error ones are fine.
What this does
:ignore_log_levelsconfig - a list of levels whose log calls are dropped from coverage. Defaults to[], so it's opt-in and existing projects are unchanged.Six.Ignore.Logsparses each source via the AST and nullifies the entire span of matching Logger.(...) and Logger.log(level, ...) calls, including multi-line metadata (using the closing-paren line, falling back to the deepest argument linefor paren-less calls).
Usage
This results in info/debug calls being excluded from coverage while warning/error stay enforced.
Acknowledgments
Thank you to Julia Castro Miller (@julia-castro) for identifying this, and helping with the new feature.
Configuration
📅 Schedule: (in timezone Europe/Rome)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.