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

Fully remove legacy logger #9353

Merged
merged 5 commits into from
Jan 10, 2024
Merged

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Jan 9, 2024

resolves #8027

Problem

We have a new logging system but still have the old logger that depends on an abandoned package in code code.

Solution

Rip out logger.py
Rip out everywhere it was used
Rip out pytest-logbook from dev-requirements.txt
Rip out logbook stub

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
  • This PR includes type annotations for new and modified functions

@cla-bot cla-bot bot added the cla:yes label Jan 9, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 2024

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (b12ed0f) 86.73% compared to head (8d02bef) 87.06%.

Files Patch % Lines
core/dbt/contracts/sql.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                       @@
##           add-dbt-common-requirement    #9353      +/-   ##
==============================================================
+ Coverage                       86.73%   87.06%   +0.33%     
==============================================================
  Files                             179      178       -1     
  Lines                           24245    23860     -385     
==============================================================
- Hits                            21028    20773     -255     
+ Misses                           3217     3087     -130     
Flag Coverage Δ
integration 84.37% <96.29%> (+0.28%) ⬆️
unit 63.86% <24.07%> (+0.17%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@emmyoop emmyoop marked this pull request as ready for review January 9, 2024 18:50
@emmyoop emmyoop requested a review from a team as a code owner January 9, 2024 18:50
@emmyoop emmyoop requested a review from gshank January 9, 2024 18:50
Copy link
Contributor

@gshank gshank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@@ -48,7 +42,7 @@ def error(self):

@dataclass
@schema_version("remote-execution-result", 1)
class RemoteExecutionResult(ExecutionResult, RemoteResult):
class RemoteExecutionResult(ExecutionResult):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that the schema for these "remote result" objects has changed and needs to be bumped? Even if the schema has changed, it looks these objects are only ever used by dbt-rpc. If that is indeed the case, can we remove them entirely?

Copy link
Member Author

@emmyoop emmyoop Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to push off this code cleanup to #9359

@emmyoop emmyoop merged commit 51f6255 into add-dbt-common-requirement Jan 10, 2024
49 checks passed
@emmyoop emmyoop deleted the er/pull-out-logger branch January 10, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants