Skip to content

Commit bce779a

Browse files
Merge branch 'main' into jose/disk_feature_parity
2 parents 40830e8 + 6cd58aa commit bce779a

File tree

349 files changed

+27321
-1033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+27321
-1033
lines changed

.dda/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.0
1+
0.10.1

.ddqa/config.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,6 @@ jira_statuses = ["To Do", "In Progress", "Done"]
189189
github_team = "windows-agent"
190190
github_labels = ["team/windows-agent"]
191191

192-
[teams."Windows Kernel Integrations"]
193-
jira_project = "WKINT"
194-
jira_issue_type = "Task"
195-
jira_statuses = ["To Do", "In Progress", "Done"]
196-
github_team = "windows-kernel-integrations"
197-
github_labels = ["team/windows-kernel-integrations"]
198-
199192
[teams."Database Monitoring"]
200193
jira_project = "DBMON"
201194
jira_issue_type = "Task"

.github/CODEOWNERS

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@
240240
/cmd/system-probe/modules/ping* @DataDog/ndm-core
241241
/cmd/system-probe/modules/language_detection* @DataDog/container-intake @DataDog/agent-discovery
242242
/cmd/system-probe/modules/dynamic_instrumentation* @DataDog/debugger
243-
/cmd/system-probe/windows_resources/ @DataDog/windows-kernel-integrations
244-
/cmd/system-probe/main_windows*.go @DataDog/windows-kernel-integrations
243+
/cmd/system-probe/windows_resources/ @DataDog/windows-agent
244+
/cmd/system-probe/main_windows*.go @DataDog/windows-agent
245245
/cmd/system-probe/subcommands/runtime/ @DataDog/agent-security
246246
/cmd/systray/ @DataDog/windows-agent
247247
/cmd/security-agent/ @DataDog/agent-security
@@ -254,7 +254,7 @@
254254
/Dockerfiles/agent/entrypoint.d.windows/ @DataDog/container-integrations @DataDog/windows-agent
255255
/Dockerfiles/agent/entrypoint.ps1 @DataDog/container-integrations @DataDog/windows-agent
256256
/Dockerfiles/agent/windows/ @DataDog/container-integrations @DataDog/windows-agent
257-
/Dockerfiles/agent-ot @DataDog/opentelemetry-agent
257+
/Dockerfiles/agent-ddot @DataDog/opentelemetry-agent
258258
/Dockerfiles/agent/bouncycastle-fips @DataDog/agent-metric-pipelines
259259

260260
/docs/ @DataDog/agent-devx
@@ -318,7 +318,7 @@
318318
/comp/agent/cloudfoundrycontainer @DataDog/agent-integrations
319319
/comp/agent/jmxlogger @DataDog/agent-metric-pipelines
320320
/comp/aggregator/diagnosesendermanager @DataDog/agent-configuration
321-
/comp/checks/agentcrashdetect @DataDog/windows-kernel-integrations
321+
/comp/checks/agentcrashdetect @DataDog/windows-agent
322322
/comp/checks/windowseventlog @DataDog/windows-agent
323323
/comp/checks/winregistry @DataDog/windows-agent
324324
/comp/core/autodiscovery @DataDog/container-platform
@@ -405,7 +405,7 @@
405405
/comp/core/autodiscovery/providers/remote_config*.go @DataDog/remote-config
406406
/pkg/cloudfoundry @Datadog/agent-integrations
407407
/pkg/clusteragent/ @DataDog/container-platform
408-
/pkg/clusteragent/autoscaling/ @DataDog/container-integrations
408+
/pkg/clusteragent/autoscaling/ @DataDog/container-autoscaling @DataDog/container-integrations
409409
/pkg/clusteragent/admission/mutate/autoscaling @DataDog/container-integrations
410410
/pkg/clusteragent/admission/mutate/autoinstrumentation/ @DataDog/container-platform @DataDog/injection-platform
411411
/pkg/clusteragent/admission/mutate/cwsinstrumentation @Datadog/agent-security
@@ -435,7 +435,7 @@
435435
/pkg/collector/corechecks/snmp/ @DataDog/ndm-core
436436
/pkg/collector/corechecks/system/ @DataDog/agent-runtimes
437437
/pkg/collector/corechecks/system/**/*_windows*.go @DataDog/agent-runtimes @DataDog/windows-agent
438-
/pkg/collector/corechecks/system/wincrashdetect/ @DataDog/windows-kernel-integrations
438+
/pkg/collector/corechecks/system/wincrashdetect/ @DataDog/windows-agent
439439
/pkg/collector/corechecks/system/winkmem/ @DataDog/windows-agent
440440
/pkg/collector/corechecks/system/winproc/ @DataDog/windows-agent
441441
/pkg/collector/corechecks/systemd/ @DataDog/agent-integrations
@@ -450,7 +450,7 @@
450450
/pkg/config/setup/system_probe.go @DataDog/ebpf-platform @DataDog/agent-configuration
451451
/pkg/config/setup/system_probe_cws.go @DataDog/agent-security @DataDog/agent-configuration
452452
/pkg/config/setup/system_probe_cws_notwin.go @DataDog/agent-security @DataDog/agent-configuration
453-
/pkg/config/setup/system_probe_cws_windows.go @DataDog/windows-kernel-integrations @DataDog/agent-configuration
453+
/pkg/config/setup/system_probe_cws_windows.go @DataDog/windows-agent @DataDog/agent-configuration
454454
/pkg/config/setup/security_agent.go @DataDog/agent-security @DataDog/agent-configuration
455455
/pkg/config/remote/ @DataDog/remote-config
456456
/pkg/config/remote/meta/ @DataDog/remote-config @DataDog/sdlc-security
@@ -468,6 +468,7 @@
468468
/pkg/flare/*_windows_test.go @Datadog/windows-agent @DataDog/agent-configuration
469469
/pkg/fleet/ @DataDog/fleet @DataDog/windows-agent
470470
/pkg/fleet/installer/setup/djm/ @DataDog/fleet @DataDog/data-jobs-monitoring
471+
/pkg/opentelemetry-mapping-go @DataDog/opentelemetry-agent
471472
/pkg/pidfile/ @DataDog/agent-runtimes
472473
/pkg/persistentcache/ @DataDog/agent-runtimes
473474
/pkg/proto/ @DataDog/agent-runtimes
@@ -478,8 +479,8 @@
478479
/pkg/remoteconfig/ @DataDog/remote-config
479480
/pkg/runtime/ @DataDog/agent-runtimes
480481
/pkg/system-probe/ @DataDog/ebpf-platform
481-
/pkg/system-probe/api/client/client_windows.go @DataDog/windows-kernel-integrations
482-
/pkg/system-probe/api/server/listener_windows.go @DataDog/windows-kernel-integrations
482+
/pkg/system-probe/api/client/client_windows.go @DataDog/windows-agent
483+
/pkg/system-probe/api/server/listener_windows.go @DataDog/windows-agent
483484
/pkg/system-probe/config/adjust_npm.go @DataDog/ebpf-platform @DataDog/Networks
484485
/pkg/system-probe/config/adjust_usm.go @DataDog/ebpf-platform @DataDog/universal-service-monitoring
485486
/pkg/system-probe/config/adjust_security.go @DataDog/ebpf-platform @DataDog/agent-security
@@ -512,7 +513,7 @@
512513
/pkg/util/cgroups/ @DataDog/container-integrations
513514
/pkg/util/retry/ @DataDog/container-platform
514515
/pkg/util/intern/ @DataDog/ebpf-platform
515-
/pkg/util/crashreport/ @DataDog/windows-kernel-integrations
516+
/pkg/util/crashreport/ @DataDog/windows-agent
516517
/pkg/util/pdhutil/ @DataDog/windows-agent
517518
/pkg/util/winutil/ @DataDog/windows-agent
518519
/pkg/util/testutil/flake @DataDog/agent-devx
@@ -539,7 +540,7 @@
539540
/pkg/process/util/address*.go @DataDog/Networks
540541
/pkg/process/checks/net*.go @DataDog/Networks
541542
/pkg/process/metadata/parser/ @DataDog/universal-service-monitoring @DataDog/container-intake @DataDog/Networks
542-
/pkg/process/metadata/parser/*windows* @DataDog/universal-service-monitoring @DataDog/container-intake @DataDog/Networks @DataDog/windows-kernel-integrations
543+
/pkg/process/metadata/parser/*windows* @DataDog/universal-service-monitoring @DataDog/container-intake @DataDog/Networks @DataDog/windows-agent
543544
/pkg/process/monitor/ @DataDog/universal-service-monitoring
544545
/pkg/process/net/ @DataDog/universal-service-monitoring @DataDog/Networks
545546
/pkg/proto/datadog/remoteconfig/ @DataDog/remote-config
@@ -555,28 +556,28 @@
555556
/pkg/orchestrator/ @DataDog/container-app
556557
/pkg/network/ @DataDog/Networks
557558
/pkg/network/*usm* @DataDog/universal-service-monitoring
558-
/pkg/network/*_windows*.go @DataDog/windows-kernel-integrations
559-
/pkg/network/config/config_test.go @DataDog/Networks @DataDog/universal-service-monitoring @DataDog/windows-kernel-integrations
560-
/pkg/network/driver_*.go @DataDog/windows-kernel-integrations
561-
/pkg/network/dns/*_windows*.go @DataDog/windows-kernel-integrations
562-
/pkg/network/driver/ @DataDog/windows-kernel-integrations
559+
/pkg/network/*_windows*.go @DataDog/windows-agent
560+
/pkg/network/config/config_test.go @DataDog/Networks @DataDog/universal-service-monitoring @DataDog/windows-agent
561+
/pkg/network/driver_*.go @DataDog/windows-agent
562+
/pkg/network/dns/*_windows*.go @DataDog/windows-agent
563+
/pkg/network/driver/ @DataDog/windows-agent
563564
/pkg/network/ebpf/c/prebuilt/usm* @DataDog/universal-service-monitoring
564565
/pkg/network/ebpf/c/runtime/usm* @DataDog/universal-service-monitoring
565566
/pkg/network/ebpf/c/prebuilt/shared-libraries* @DataDog/universal-service-monitoring
566567
/pkg/network/ebpf/c/runtime/shared-libraries* @DataDog/universal-service-monitoring
567568
/pkg/network/ebpf/c/shared-libraries/ @DataDog/universal-service-monitoring
568569
/pkg/network/ebpf/c/protocols/ @DataDog/universal-service-monitoring
569570
/pkg/network/encoding/marshal/*usm* @DataDog/universal-service-monitoring
570-
/pkg/network/encoding/marshal/*_windows*.go @DataDog/windows-kernel-integrations
571+
/pkg/network/encoding/marshal/*_windows*.go @DataDog/windows-agent
571572
/pkg/network/go/ @DataDog/universal-service-monitoring
572573
/pkg/network/protocols/ @DataDog/universal-service-monitoring
573-
/pkg/network/protocols/http/driver_*.go @DataDog/windows-kernel-integrations
574-
/pkg/network/protocols/http/etw*.go @DataDog/windows-kernel-integrations
575-
/pkg/network/protocols/http/*_windows*.go @DataDog/windows-kernel-integrations
574+
/pkg/network/protocols/http/driver_*.go @DataDog/windows-agent
575+
/pkg/network/protocols/http/etw*.go @DataDog/windows-agent
576+
/pkg/network/protocols/http/*_windows*.go @DataDog/windows-agent
576577
/pkg/network/tracer/testutil/proxy/ @DataDog/universal-service-monitoring
577-
/pkg/network/tracer/*_windows*.go @DataDog/windows-kernel-integrations
578+
/pkg/network/tracer/*_windows*.go @DataDog/windows-agent
578579
/pkg/network/usm/ @DataDog/universal-service-monitoring
579-
/pkg/network/usm/tests/*_windows*.go @DataDog/windows-kernel-integrations
580+
/pkg/network/usm/tests/*_windows*.go @DataDog/windows-agent
580581
/pkg/ebpf/ @DataDog/ebpf-platform
581582
/pkg/ebpf/map_cleaner*.go @DataDog/universal-service-monitoring
582583
/pkg/compliance/ @DataDog/agent-cspm
@@ -586,7 +587,7 @@
586587
/pkg/networkdevice/ @DataDog/ndm-core
587588
/pkg/snmp/ @DataDog/ndm-core
588589
/pkg/tagger/ @DataDog/container-platform
589-
/pkg/windowsdriver/ @DataDog/windows-kernel-integrations
590+
/pkg/windowsdriver/ @DataDog/windows-agent
590591
/comp/core/workloadmeta/collectors/internal/cloudfoundry @DataDog/agent-integrations
591592
/comp/core/workloadmeta/collectors/internal/containerd @DataDog/container-platform @DataDog/container-integrations
592593
/comp/core/workloadmeta/collectors/internal/crio @DataDog/container-platform @DataDog/container-integrations
@@ -686,15 +687,15 @@
686687
/test/new-e2e/tests/ndm/netflow @DataDog/ndm-integrations
687688
/test/new-e2e/tests/netpath @DataDog/Networks
688689
/test/new-e2e/tests/npm @DataDog/Networks
689-
/test/new-e2e/tests/npm/ec2_1host_wkit_test.go @DataDog/Networks @DataDog/windows-kernel-integrations
690+
/test/new-e2e/tests/npm/ec2_1host_wkit_test.go @DataDog/Networks @DataDog/windows-agent
690691
/test/new-e2e/tests/orchestrator @DataDog/container-app
691692
/test/new-e2e/tests/otel @DataDog/opentelemetry-agent
692693
/test/new-e2e/tests/process @DataDog/container-intake
693-
/test/new-e2e/tests/sysprobe-functional @DataDog/windows-kernel-integrations
694-
/test/new-e2e/tests/security-agent-functional @DataDog/windows-kernel-integrations @DataDog/agent-security
694+
/test/new-e2e/tests/sysprobe-functional @DataDog/windows-agent
695+
/test/new-e2e/tests/security-agent-functional @DataDog/windows-agent @DataDog/agent-security
695696
/test/new-e2e/tests/cws @DataDog/agent-security
696697
/test/new-e2e/tests/agent-log-pipelines @DataDog/agent-log-pipelines
697-
/test/new-e2e/tests/windows @DataDog/windows-agent @DataDog/windows-kernel-integrations
698+
/test/new-e2e/tests/windows @DataDog/windows-agent @DataDog/windows-agent
698699
/test/new-e2e/tests/apm @DataDog/agent-apm
699700
/test/new-e2e/tests/remote-config @DataDog/remote-config
700701
/test/new-e2e/tests/installer @DataDog/fleet @DataDog/windows-agent
@@ -713,7 +714,7 @@
713714
/tools/ebpf/ @DataDog/ebpf-platform
714715
/tools/gdb/ @DataDog/agent-runtimes
715716
/tools/go-update/ @DataDog/agent-runtimes
716-
/tools/NamedPipeCmd/ @DataDog/windows-kernel-integrations
717+
/tools/NamedPipeCmd/ @DataDog/windows-agent
717718
/tools/retry_file_dump/ @DataDog/agent-metric-pipelines
718719
/tools/windows/ @DataDog/windows-agent
719720
/tools/windows/DatadogAgentInstaller/WixSetup/localization-en-us.wxl @DataDog/windows-agent @DataDog/documentation

.gitlab-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,13 @@ workflow:
661661
.on_main_or_release_branch_or_deploy_manual:
662662
- <<: *if_deploy
663663
when: manual
664+
allow_failure: true
664665
- <<: *if_main_branch
665666
when: manual
667+
allow_failure: true
666668
- <<: *if_release_branch
667669
when: manual
670+
allow_failure: true
668671

669672
.on_all_builds:
670673
- <<: *if_run_all_builds
@@ -1038,9 +1041,12 @@ workflow:
10381041
- changes:
10391042
paths:
10401043
- cmd/otel-agent/**/*
1044+
- comp/core/tagger/**/*
10411045
- comp/otelcol/**/*
1046+
- pkg/config/setup/otlp.go
10421047
- pkg/trace/api/otlp.go
10431048
- pkg/trace/stats/otel_util.go
1049+
- pkg/trace/traceutil/otel_util.go
10441050
- pkg/trace/transform/transform.go
10451051
- test/new-e2e/tests/otel/**/*
10461052
compare_to: $COMPARE_TO_BRANCH

.gitlab/JOBOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fetch_openjdk @DataDog/agent-metric-pipelines
2020
tests_* @DataDog/multiple
2121
tests_ebpf* @DataDog/ebpf-platform
2222
tests_serverless @DataDog/serverless
23-
tests_windows_sysprobe* @DataDog/windows-kernel-integrations
23+
tests_windows_sysprobe* @DataDog/windows-agent
2424
security_go_generate_check @DataDog/agent-security
2525
prepare_sysprobe_ebpf_functional_tests* @DataDog/ebpf-platform
2626
prepare_secagent_ebpf_functional_tests* @DataDog/agent-security
@@ -143,6 +143,7 @@ trace_agent_integration_tests @DataDog/agent-apm
143143
# Functional test
144144
serverless_cold_start_performance-deb_x64 @DataDog/serverless
145145
static_quality_gates @DataDog/agent-delivery
146+
manual_gate_threshold_update @DataDog/agent-delivery
146147
oracle* @DataDog/database-monitoring
147148

148149
# E2E

.gitlab/binary_build/cluster_agent.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- !reference [.retrieve_linux_go_deps]
1010
script:
1111
- dda inv -- check-go-version
12-
- dda inv -- -e cluster-agent.build
12+
- dda inv -- -e cluster-agent.build --major-version "$AGENT_MAJOR_VERSION"
1313
artifacts:
1414
paths:
1515
- $CLUSTER_AGENT_BINARIES_DIR/datadog-cluster-agent
@@ -23,6 +23,7 @@
2323
KUBERNETES_MEMORY_REQUEST: "8Gi"
2424
KUBERNETES_MEMORY_LIMIT: "8Gi"
2525
KUBERNETES_CPU_REQUEST: 6
26+
AGENT_MAJOR_VERSION: 7
2627

2728
cluster_agent-build_amd64:
2829
extends: .cluster_agent-build_common

.gitlab/common/macos.yml

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,50 @@
2323
export PATH="$(pyenv root)/shims:$PATH"
2424
eval "$(pyenv init -)"
2525
eval "$(pyenv virtualenv-init -)"
26-
- PYTHON_VERSION=3.12.6
27-
- VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
28-
- VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
29-
- echo "Using Python $PYTHON_VERSION..."
26+
# Select target python version
27+
# 1. If PYTHON_VERSION is set, use it (and install it if necessary)
28+
# 2. If PYTHON_VERSION is not set, use a version matching the one in .python-version
29+
# 2.a If there is a 3.M.x version (or multiple matches) that is already installed on the runner, select the latest version in this list
30+
# 2.b If there is no match, download and install the latest one
3031
- |
31-
# Check if the virtual environment directory exists
32-
if [ ! -d "$VENV_PATH" ]; then
33-
# Install target python if necessary
34-
if [ ! -d "$(pyenv root)/versions/$PYTHON_VERSION" ]; then
32+
if [ -n "$PYTHON_VERSION" ]; then
33+
# 1. Use PYTHON_VERSION if set
34+
if ! [[ "$PYTHON_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
35+
echo "Invalid Python version format (should be X.Y.Z): $PYTHON_VERSION" >& 2
36+
exit 1
37+
fi
38+
if ! [ -d "$(pyenv root)/versions/$PYTHON_VERSION" ]; then
39+
echo "Python version $PYTHON_VERSION not found. Installing..."
40+
pyenv install "$PYTHON_VERSION"
41+
fi
42+
else
43+
# 2. Find appropriate python version from major version
44+
PYTHON_VERSION="$(cat .python-version)"
45+
echo "Find python version matching $PYTHON_VERSION"
46+
PYTHON_VERSION_ESCAPED="${PYTHON_VERSION//./\\.}"
47+
versionmatches="$(ls "$(pyenv root)/versions" | grep -E "^${PYTHON_VERSION_ESCAPED}\\.[0-9]+$")"
48+
if [ -n "$versionmatches" ]; then
49+
# 2.a.
50+
echo "Found already existing python version for $PYTHON_VERSION"
51+
else
52+
# 2.b.
3553
echo "Installing Python $PYTHON_VERSION..."
3654
pyenv install "$PYTHON_VERSION"
55+
versionmatches="$(ls "$(pyenv root)/versions" | grep -E "^${PYTHON_VERSION_ESCAPED}\\.[0-9]+$")"
56+
if [ -z "$versionmatches" ]; then
57+
echo "No matching Python version found for $PYTHON_VERSION even after installation." >& 2
58+
exit 1
59+
fi
3760
fi
38-
61+
# If there are multiple matches, select the latest one
62+
PYTHON_VERSION="$(echo "$versionmatches" | sort -V | tail -n 1)"
63+
fi
64+
VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
65+
VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
66+
- echo "Using Python $PYTHON_VERSION..."
67+
- |
68+
# Check if the virtual environment directory exists
69+
if [ ! -d "$VENV_PATH" ]; then
3970
echo "Creating virtual environment '$VENV_NAME'..."
4071
pyenv virtualenv "$PYTHON_VERSION" "$VENV_NAME"
4172
else

.gitlab/common/test_infra_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
---
77
variables:
8-
TEST_INFRA_DEFINITIONS_BUILDIMAGES: d610d4c9aa4b
8+
TEST_INFRA_DEFINITIONS_BUILDIMAGES: 54e029f4a38f
99
TEST_INFRA_DEFINITIONS_BUILDIMAGES_SUFFIX: ''

0 commit comments

Comments
 (0)