Skip to content

Commit 41b5381

Browse files
authored
Merge branch 'main' into hongshi/mac_sw_inventory
2 parents 2a05318 + b085615 commit 41b5381

File tree

360 files changed

+1753
-4457
lines changed

Some content is hidden

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

360 files changed

+1753
-4457
lines changed

.custom-gcl.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
/.go-version @DataDog/agent-runtimes @DataDog/agent-build
2020
# Go linters and pre-commit config
2121
/.golangci.yml @DataDog/agent-devx
22-
/.custom-gcl.yml @DataDog/agent-devx
2322
/.pre-commit-config.yaml @DataDog/agent-devx
2423
/.vscode/ @DataDog/agent-devx
2524

@@ -143,7 +142,7 @@
143142
/.gitlab/deploy/deploy_packages/windows.yml @DataDog/agent-delivery @DataDog/windows-products
144143
/.gitlab/distribute/winget.yml @DataDog/agent-delivery @DataDog/windows-products
145144
/.gitlab/deploy/deploy_packages/cluster_agent_cloudfoundry.yml @DataDog/agent-integrations @DataDog/agent-devx
146-
/.gitlab/deploy/deploy_packages/e2e.yml @DataDog/agent-devx @DataDog/agent-e2e-testing @DataDog/fleet
145+
/.gitlab/deploy/deploy_packages/e2e.yml @DataDog/agent-devx @DataDog/fleet
147146

148147
/.gitlab/.pre/deps_build/ @DataDog/ebpf-platform @DataDog/agent-build @DataDog/windows-products
149148

@@ -152,8 +151,8 @@
152151
/.gitlab/.pre/common/ @DataDog/agent-devx
153152

154153
/.gitlab/test/e2e/e2e.yml @DataDog/container-integrations @DataDog/agent-devx @DataDog/fleet
155-
/.gitlab/deploy/container_build/fakeintake.yml @DataDog/agent-e2e-testing @DataDog/agent-devx
156-
/.gitlab/build/binary_build/fakeintake.yml @DataDog/agent-e2e-testing @DataDog/agent-devx
154+
/.gitlab/deploy/container_build/fakeintake.yml @DataDog/agent-devx
155+
/.gitlab/build/binary_build/fakeintake.yml @DataDog/agent-devx
157156

158157
/.gitlab/test/functional_test/oracle.yml @DataDog/agent-devx @DataDog/database-monitoring
159158

@@ -170,7 +169,7 @@
170169

171170
/.gitlab/deploy/dev_container_deploy/ @DataDog/container-integrations @DataDog/agent-delivery
172171
/.gitlab/deploy/dev_container_deploy/fakeintake.yml @DataDog/agent-devx
173-
/.gitlab/deploy/dev_container_deploy/e2e.yml @DataDog/agent-devx @DataDog/agent-e2e-testing
172+
/.gitlab/deploy/dev_container_deploy/e2e.yml @DataDog/agent-devx
174173
/.gitlab/deploy/dev_container_deploy/docker_windows.yml @DataDog/agent-delivery @DataDog/windows-products
175174

176175
/.gitlab/deploy/container_scan/container_scan.yml @DataDog/container-integrations @DataDog/agent-delivery
@@ -264,7 +263,7 @@
264263
/cmd/system-probe/subcommands/ebpf/ @DataDog/ebpf-platform @DataDog/universal-service-monitoring
265264
/cmd/system-probe/subcommands/compliance/ @DataDog/agent-cspm
266265
/cmd/systray/ @DataDog/windows-products
267-
/cmd/secret-backend/ @DataDog/agent-configuration
266+
/cmd/secret-generic-connector/ @DataDog/agent-configuration
268267
/cmd/security-agent/ @DataDog/agent-security
269268
/cmd/security-agent/subcommands/compliance/ @DataDog/agent-cspm
270269
/cmd/installer/ @DataDog/fleet @DataDog/windows-products
@@ -506,6 +505,7 @@
506505
/pkg/config/autodiscovery/ @DataDog/container-integrations @DataDog/container-platform @DataDog/agent-configuration
507506
/pkg/config/env @DataDog/container-integrations @DataDog/container-platform @DataDog/agent-configuration
508507
/pkg/config/setup @DataDog/agent-configuration
508+
/pkg/config/setup/privateactionrunner.go @DataDog/action-platform
509509
/pkg/config/setup/process*.go @DataDog/container-experiences @DataDog/agent-configuration
510510
/pkg/config/setup/system_probe.go @DataDog/ebpf-platform @DataDog/agent-configuration
511511
/pkg/config/setup/system_probe_cws.go @DataDog/agent-security @DataDog/agent-configuration
@@ -589,9 +589,6 @@
589589
/pkg/util/testutil/docker @DataDog/universal-service-monitoring @DataDog/ebpf-platform
590590
/pkg/util/trie @DataDog/container-integrations
591591
/pkg/languagedetection @DataDog/container-experiences @DataDog/agent-discovery
592-
/pkg/linters/ @DataDog/agent-devx
593-
/pkg/linters/components/ @DataDog/agent-runtimes
594-
/pkg/linters/components/pkgconfigusage @DataDog/agent-configuration
595592
/pkg/logs/ @DataDog/agent-log-pipelines
596593
/pkg/logs/launchers/container @DataDog/agent-log-pipelines @DataDog/container-integrations
597594
/pkg/logs/tailers/container @DataDog/agent-log-pipelines @DataDog/container-integrations
@@ -700,7 +697,7 @@
700697
/tasks/cluster_agent_cloudfoundry.py @DataDog/agent-integrations
701698
/tasks/devcontainer.py @DataDog/agent-devx @DataDog/container-platform
702699
/tasks/skaffold.py @DataDog/agent-devx @DataDog/container-platform
703-
/tasks/new_e2e_tests.py @DataDog/agent-e2e-testing @DataDog/agent-devx
700+
/tasks/new_e2e_tests.py @DataDog/agent-devx
704701
/tasks/process_agent.py @DataDog/container-experiences
705702
/tasks/privateactionrunner.py @DataDog/action-platform
706703
/tasks/system_probe.py @DataDog/ebpf-platform
@@ -743,12 +740,12 @@
743740
/test/integration/ @DataDog/serverless-azure-gcp
744741
/test/integration/docker/ @DataDog/opentelemetry-agent
745742
/test/e2e-framework/testing/testcommon/check @DataDog/agent-runtimes
746-
/test/fakeintake/ @DataDog/agent-e2e-testing @DataDog/agent-devx
743+
/test/fakeintake/ @DataDog/agent-devx
747744
/test/fakeintake/aggregator/ndmAggregator.go @DataDog/ndm-core
748745
/test/fakeintake/aggregator/ndmAggregator_test.go @DataDog/ndm-core
749746
/test/fakeintake/aggregator/ndmflowAggregator.go @DataDog/ndm-integrations
750747
/test/fakeintake/aggregator/ndmflowAggregator_test.go @DataDog/ndm-integrations
751-
/test/new-e2e/ @DataDog/agent-e2e-testing @DataDog/agent-devx
748+
/test/new-e2e/ @DataDog/agent-devx
752749
/test/new-e2e/test-infra-definition @DataDog/agent-devx
753750
/test/new-e2e/system-probe @DataDog/ebpf-platform
754751
/test/new-e2e/system-probe/config/vmconfig-security-agent.json @DataDog/ebpf-platform @DataDog/agent-security
@@ -807,6 +804,7 @@
807804
/test/regression/cases/docker_containers* @DataDog/single-machine-performance @DataDog/container-integrations
808805

809806
/tools/ @DataDog/agent-devx
807+
/tools/host-profiler/ @DataDog/profiling-full-host
810808
/tools/bazel* @DataDog/agent-build
811809
/tools/ci/*bazel* @DataDog/agent-build
812810
/tools/ci @DataDog/agent-devx

.github/chainguard/codeql.sts.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
issuer: https://gitlab.ddbuild.io
2+
subject_pattern: "project_path:DataDog/datadog-agent:ref_type:branch:ref:.*"
3+
claim_pattern:
4+
project_path: "DataDog/datadog-agent"
5+
ref_type: "branch"
6+
ref: ".+"
7+
ref_path: "refs/heads/.+"
8+
ref_protected: "true"
9+
permissions:
10+
security_events: write

.gitlab/.pre/deps_fetch/deps_fetch.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ go_deps:
5454
- $CI_PROJECT_DIR/modcache.tar.xz
5555
cache:
5656
# The `cache:key:files` only accepts up to two paths ([docs](https://docs.gitlab.com/ee/ci/yaml/#cachekeyfiles)).
57-
# Ideally, we should also include the https://github.com/DataDog/datadog-agent/blob/main/.custom-gcl.yml file to
58-
# avoid issues if a plugin is added in one PR and enabled in another. However, we decided to accept this limitation
59-
# because the probability for this to happen is very low and go mod files are modified frequently so the risk of
60-
# failing a job because of a network issue when building the custom binary is very low, but still exists.
6157
# We should also include the file this job is defined in to invalicate the cache when this job is modified.
6258
- key:
6359
files:

.gitlab/build/package_build/build_agent_dmg.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eo pipefail
44

5-
if [ "$SIGN" = true ]; then
5+
if [ "${SIGN:-false}" = true ]; then
66
echo "Signing enabled"
77
else
88
echo "Signing disabled"
@@ -24,7 +24,7 @@ if [ -n "$INTEGRATIONS_CORE_REF" ]; then
2424
fi
2525

2626
# --- Setup signing ---
27-
if [ "$SIGN" = true ]; then
27+
if [ "${SIGN:-false}" = true ]; then
2828
# Add certificates to temporary keychain
2929
echo "Setting up signing secrets"
3030

@@ -84,7 +84,7 @@ echo Launching omnibus build
8484
rm -rf "$INSTALL_DIR" "$CONFIG_DIR"
8585
mkdir -p "$INSTALL_DIR" "$CONFIG_DIR"
8686
rm -rf "$OMNIBUS_DIR" && mkdir -p "$OMNIBUS_DIR"
87-
if [ "$SIGN" = "true" ]; then
87+
if [ "${SIGN:-false}" = true ]; then
8888
# Unlock the keychain to get access to the signing certificates
8989
security unlock-keychain -p "$KEYCHAIN_PWD" "$KEYCHAIN_NAME"
9090
dda inv -- -e omnibus.build --hardened-runtime --config-directory "$CONFIG_DIR" --install-directory "$INSTALL_DIR" --base-dir "$OMNIBUS_DIR" || exit 1
@@ -123,7 +123,7 @@ fi
123123
echo Built packages using omnibus
124124

125125
# --- Notarization ---
126-
if [ "$SIGN" = true ]; then
126+
if [ "${SIGN:-false}" = true ]; then
127127
printf "\033[0Ksection_start:%s:notarization\r\033[0KDoing notarization\n" "$(date +%s)"
128128
unset LATEST_DMG
129129

@@ -176,7 +176,7 @@ if [ "$SIGN" = true ]; then
176176
printf "\033[0Ksection_end:%s:notarization\r\033[0K\n" "$(date +%s)"
177177
fi
178178

179-
if [ "$SIGN" = true ]; then
179+
if [ "${SIGN:-false}" = true ]; then
180180
echo Built signed package
181181
else
182182
echo Built unsigned package

.gitlab/build/package_build/dmg.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@
2626
stage: package_build
2727
needs: ["go_mod_tidy_check"]
2828
rules:
29+
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
30+
variables:
31+
SIGN: true # for `main` and release branches
32+
- if: $CI_COMMIT_BRANCH =~ /notarization/
33+
variables:
34+
SIGN: true # for branches with "notarization" in their name - should we need to tune it
2935
- !reference [.on_macos_files_change]
3036
- !reference [.on_packaging_change]
31-
- !reference [.on_main_or_release_branch]
3237
- !reference [.on_all_builds]
3338
- !reference [.manual]
3439
artifacts:
@@ -40,7 +45,6 @@
4045
CI_IDENTITIES_GITLAB_ID_TOKEN:
4146
aud: ci-identities
4247
variables:
43-
SIGN: true
4448
KEYCHAIN_NAME: "build.keychain"
4549
INTEGRATION_WHEELS_CACHE_BUCKET: dd-agent-omnibus
4650
INTEGRATION_WHEELS_SKIP_CACHE_UPLOAD: true
@@ -59,7 +63,7 @@
5963
after_script:
6064
# Destroy the keychain used to sign packages
6165
- |
62-
if [ "$SIGN" = true ]; then
66+
if [ "${SIGN:-false}" = true ]; then
6367
security delete-keychain "build.keychain" || true
6468
fi
6569
- sudo umount /Volumes/Agent || true

.gitlab/deploy/internal_image_deploy/internal_image_deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
rules: !reference [.on_deploy_internal_or_internal_image_change_or_manual]
99
image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
1010
tags: ["arch:amd64", "specific:true"]
11+
timeout: 1h 30m
1112
script:
1213
# Constant variables
1314
- export RELEASE_STAGING="true"
@@ -36,18 +37,18 @@
3637

3738
# -- binary specific variables --
3839
.agent_variables: &agent_variables
39-
IMAGE_VERSION: tmpl-v20
40+
IMAGE_VERSION: tmpl-v21
4041
IMAGE_NAME: datadog-agent
4142
TMPL_SRC_REPO: ci/datadog-agent/agent
4243

4344
.cluster_agent_variables: &cluster_agent_variables
44-
IMAGE_VERSION: tmpl-v10
45+
IMAGE_VERSION: tmpl-v11
4546
IMAGE_NAME: datadog-cluster-agent
4647
TMPL_SRC_REPO: ci/datadog-agent/cluster-agent
4748
RELEASE_PROD: "true"
4849

4950
.ot_standalone_variables: &ot_standalone_variables
50-
IMAGE_VERSION: tmpl-v5
51+
IMAGE_VERSION: tmpl-v6
5152
IMAGE_NAME: otel-agent
5253
TMPL_SRC_REPO: ci/datadog-agent/otel-agent
5354

0 commit comments

Comments
 (0)