-
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
Override the default test options for some integrations #15779
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. 📢 Have feedback on the report? Share it here. |
dd1f476
to
27526e5
Compare
27526e5
to
3e35436
Compare
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.
nice catch!
teamcity/hatch.toml
Outdated
@@ -14,6 +14,7 @@ matrix.impl.env-vars = [ | |||
] | |||
matrix.python.scripts = [ | |||
{ key = "test", value = "_dd-test --ignore=tests/docker" }, | |||
{ key = "test-cov", value = "_dd-test-cov --ignore=tests/docker" }, |
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.
Could we set this flag in a conftest.py
or even pyproject.toml
? That way it would apply always.
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.
I don't know 😅 Will wait for ofek on this one if that's ok for you
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.
yea, looking forward to Ofek's input! iiuc, putting it into config could mean we get rid of that whole section!
26ae1b3
to
402579a
Compare
0739bc5
to
5225655
Compare
52ee109
to
4cf507b
Compare
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.
Looks good!
8e5fd66
to
f6ea985
Compare
f6ea985
to
cd9ad6b
Compare
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.
Approved for the Windows Agent owned files
What does this PR do?
Fix stuff coming from #15762
pyproject.toml
(for python3) orsetup.cfg
(for py2)Motivation
https://github.com/DataDog/integrations-core/actions/runs/6105895055/job/16570096990
When we add parameters after
integrations-core/ddev/src/ddev/cli/test/__init__.py
Line 154 in c758504
, they will be forward to
https://github.com/DataDog/integrations-core/blob/master/ddev/src/ddev/plugin/external/hatch/environment_collector.py#L114-L119 as
args
and we loose thetests
part of the command, which make us load everything.Trigger all the tests when ddev is modified, similar to what we do with
datadog_checks_dev
.Additional Notes
Adding a default
setup.cfg
file at the root does not work (I might have a look at that a bit later, my priority is to have our CI green)I'll open follow-up PRs to configure this by default for most of the integrations.
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.