-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[workloadmeta] Refactor to avoid requiring fx in "impl" dir #28309
[workloadmeta] Refactor to avoid requiring fx in "impl" dir #28309
Conversation
2ebdfec
to
86f5ac3
Compare
@@ -1,26 +0,0 @@ | |||
// Unless explicitly stated otherwise all files in this repository are licensed |
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'm not sure about the purpose of this file.
MockBundle() is not used anywhere, and Bundle() is only used in the test file below.
It's the only test that failed after the refactor.
deps := fxutil.Test[dependencies](t, fx.Options( | ||
fx.Provide(func() log.Component { return logmock.New(t) }), | ||
func newWorkloadmetaObject(t *testing.T) *workloadmeta { | ||
testDeps := fxutil.Test[testDependencies](t, fx.Options( |
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.
As you are still use fxutil.Test
, fx
is still used in impl
folder.
I am not sure removing fxutil.Test
is a great idea for now, so you can probably keep it.
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.
Indeed. I noticed it but thought it was fine in test files.
Any suggestion about how to remove this fx
dependency here? It's only used in the line that you mentioned and the testDependencies
struct defined above.
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 think you can keep your code as it is.
@@ -280,6 +279,7 @@ | |||
/comp/trace/etwtracer @DataDog/windows-agent | |||
/comp/autoscaling/datadogclient @DataDog/container-integrations | |||
/comp/etw @DataDog/windows-agent | |||
/comp/languagedetection/client @DataDog/container-platform |
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.
This change is needed by the linter. It's introduced by inv components.lint-components --fix
.
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.
Same for the comp/README.md changes below.
Test changes on VMUse this command from test-infra-definitions to manually test this PR changes on a VM: inv create-vm --pipeline-id=41309987 --os-family=ubuntu Note: This applies to commit 95c8d66 |
Regression DetectorRegression Detector ResultsRun ID: 563c5602-f2e4-46e0-974f-fa6bd650c679 Metrics dashboard Target profiles Baseline: 8af60b0 Performance changes are noted in the perf column of each table:
No significant changes in experiment optimization goalsConfidence level: 90.00% There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.
|
perf | experiment | goal | Δ mean % | Δ mean % CI | links |
---|---|---|---|---|---|
➖ | tcp_syslog_to_blackhole | ingress throughput | +1.38 | [-11.17, +13.93] | Logs |
➖ | idle | memory utilization | +0.07 | [+0.03, +0.11] | Logs |
➖ | tcp_dd_logs_filter_exclude | ingress throughput | +0.00 | [-0.01, +0.01] | Logs |
➖ | uds_dogstatsd_to_api | ingress throughput | -0.00 | [-0.00, +0.00] | Logs |
➖ | file_tree | memory utilization | -0.55 | [-0.62, -0.47] | Logs |
➖ | uds_dogstatsd_to_api_cpu | % cpu utilization | -0.56 | [-1.45, +0.32] | Logs |
➖ | otel_to_otel_logs | ingress throughput | -0.74 | [-1.55, +0.06] | Logs |
➖ | pycheck_1000_100byte_tags | % cpu utilization | -1.68 | [-6.38, +3.03] | Logs |
➖ | basic_py_check | % cpu utilization | -2.18 | [-4.70, +0.35] | Logs |
Explanation
A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".
For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.
-
Its configuration does not mark it "erratic".
/merge |
🚂 MergeQueue: pull request added to the queue The median merge time in Use |
❌ MergeQueue: The build pipeline contains failing jobs for this merge request Build pipeline has failing jobs for f88a15b
What to do next?
DetailsSince those jobs are not marked as being allowed to fail, the pipeline will most likely fail. If you need support, contact us on Slack #devflow with those details! |
86f5ac3
to
95c8d66
Compare
Rebased on top of main to fix a conflict. |
/merge |
🚂 MergeQueue: waiting for PR to be ready This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals. Use |
🚂 MergeQueue: pull request added to the queue The median merge time in Use |
What does this PR do?
Refactors the workloadmeta code so that the
impl
does not depend onfx
.This is done to follow the new conventions of the component framework.
/cc @dustmop
Describe how to test/QA your changes
Skip. Should be covered by e2e tests.