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

rename cache _log_hits log args to avoid reserved names #7

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

matt-codecov
Copy link
Contributor

reverted a deploy of worker as it updated shared and hit this bug. this code is covered by tests, but they mock the log entrypoint so it isn't actually going through the standard library logging module in the test

KeyError: "Attempt to overwrite 'args' in LogRecord"

line that gets angry:
https://github.com/python/cpython/blob/b831129123dbb4bfba49824ae893448b05398f27/Lib/logging/__init__.py#L1546-L1550

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #7 (cebe4cd) into main (8573d97) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   91.28%   91.28%           
=======================================
  Files          90       90           
  Lines        8076     8076           
  Branches     1228     1228           
=======================================
  Hits         7372     7372           
  Misses        701      701           
  Partials        3        3           
Flag Coverage Δ
python3.10.5 88.11% <ø> (ø)
python3.7.13 87.95% <ø> (ø)
python3.8.13 88.22% <ø> (ø)
python3.9.12 88.56% <ø> (ø)
rust 89.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
shared/helpers/cache.py 100.00% <ø> (ø)

@matt-codecov matt-codecov merged commit 02eae9a into main Jul 20, 2023
2 checks passed
@matt-codecov matt-codecov deleted the matt/fix-args-logrecord-error branch July 20, 2023 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants