-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Move Agent stubs to ddev (Part 1/2) #6171
Conversation
Codecov Report
|
Many tests are broken, too many to be due to flakeyness I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked out the code locally too, everything looks fine.
Can you confirm this the plan?
- Merge Move stubs to dev (Part 2/2) #6175 into this PR
- Merge this PR into master
Should we plan for a follow-up PR to upgrade the base
imports in integrations tests to dev
?
from datadog_checks.base.stubs.common import HistogramBucketStub, MetricStub, ServiceCheckStub | ||
from datadog_checks.base.stubs.similar import build_similar_elements_msg | ||
|
||
from ..utils.common import ensure_unicode, to_native_string | ||
from datadog_checks.base.utils.common import ensure_unicode, to_native_string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from .stubs ...
no need to import from base no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually agreed with @ofek, looks like there are lots of opportunities for updating imports from base
to dev
in the moved files.
@@ -3,7 +3,7 @@ | |||
# Licensed under a 3-clause BSD style license (see LICENSE) | |||
import logging | |||
|
|||
from ..log import CheckLoggingAdapter as AgentLoggingAdapter | |||
from datadog_checks.base.log import CheckLoggingAdapter as AgentLoggingAdapter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should refactor to never need to import from base
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Note that this will not be automatically closed, but the notification will remind us to investigate why there's been inactivity. |
What does this PR do?
Move stubs to dev.
This change has been divided into 2 PRs in order to preserve git history.
If we merged both at the same time, the git history will be lost.
CI Results of the 2 PRs: #6176
Motivation
Stubs are mean to be used for testing and should not be part of the base package, but should be in dev package instead.
Needed for #6027 (comment)
Related discussion on why the stubs are in base package in the first place: #3700 (comment)
Additional Notes
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached