Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DataDog/datadog-agent into olivierg…
Browse files Browse the repository at this point in the history
…/fix-percent-w
  • Loading branch information
ogaca-dd committed Oct 17, 2024
2 parents 54340ab + 152a0e7 commit e7bd0ea
Show file tree
Hide file tree
Showing 321 changed files with 3,356 additions and 6,224 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ experimental:
templates:
job_template: &job_template
docker:
- image: gcr.io/datadoghq/agent-circleci-runner:v45979046-89a73a40
- image: gcr.io/datadoghq/agent-circleci-runner:v46542806-c7a4a6be
environment:
USE_SYSTEM_LIBS: "1"
working_directory: /go/src/github.com/DataDog/datadog-agent
Expand Down
2 changes: 2 additions & 0 deletions .copyright-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,5 @@ github.com/vibrantbyte/go-antpath/extend: vibrantbyte <[email protected]>|suchao
github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp: Copyright 2024 gRPC authors.
github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp/grpc_gcp: Copyright 2024 gRPC authors.
github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp/multiendpoint: Copyright 2024 gRPC authors.

github.com/NVIDIA/go-nvml/*: Copyright 2023 NVIDIA CORPORATION
4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
/docs/cloud-workload-security/ @DataDog/documentation @DataDog/agent-security

/docs/public/components/ @DataDog/documentation @DataDog/agent-shared-components
/docs/public/hostname/ @DataDog/documentation @DataDog/agent-shared-components
/docs/public/architecture/dogstatsd/ @DataDog/documentation @DataDog/agent-metrics-logs
/docs/public/guidelines/deprecated-components-documentation/ @DataDog/documentation @DataDog/agent-shared-components

Expand Down Expand Up @@ -371,6 +372,7 @@
/pkg/trace/traceutil/otel*.go @DataDog/opentelemetry
/pkg/trace/stats/ @DataDog/agent-apm @DataDog/opentelemetry
/pkg/trace/telemetry/ @DataDog/apm-trace-storage
/pkg/trace/transform/ @DataDog/opentelemetry
/comp/core/autodiscovery/listeners/ @DataDog/container-platform
/comp/core/autodiscovery/listeners/cloudfoundry*.go @DataDog/platform-integrations
/comp/core/autodiscovery/listeners/snmp*.go @DataDog/network-device-monitoring
Expand Down Expand Up @@ -570,7 +572,6 @@
/comp/core/workloadmeta/collectors/internal/cloudfoundry @DataDog/platform-integrations
/pkg/sbom/ @DataDog/container-integrations @DataDog/agent-security
/pkg/internaltelemetry @DataDog/windows-kernel-integrations @DataDog/fleet
/pkg-config/ @DataDog/agent-delivery
/pkg/networkpath/ @DataDog/network-device-monitoring @DataDog/Networks
/pkg/collector/corechecks/networkpath/ @DataDog/network-device-monitoring @DataDog/Networks

Expand Down Expand Up @@ -666,6 +667,7 @@
/test/new-e2e/tests/remote-config @DataDog/remote-config
/test/new-e2e/tests/updater @DataDog/fleet @DataDog/windows-agent
/test/new-e2e/tests/installer @DataDog/fleet @DataDog/windows-agent
/test/new-e2e/tests/gpu @Datadog/ebpf-platform
/test/otel/ @DataDog/opentelemetry
/test/system/ @DataDog/agent-shared-components
/test/system/dogstatsd/ @DataDog/agent-metrics-logs
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/serverless-binary-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,5 @@ jobs:
if: steps.should.outputs.should_run == 'true'
with:
header: serverless-binary-size
hide_and_recreate: true
hide_classify: "RESOLVED"
recreate: true
path: ${{ steps.write.outputs.filename }}
51 changes: 26 additions & 25 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ include:
- .gitlab/integration_test/include.yml
- .gitlab/internal_image_deploy/internal_image_deploy.yml
- .gitlab/internal_kubernetes_deploy/include.yml
- .gitlab/junit_upload/junit_upload.yml
- .gitlab/kitchen_cleanup/include.yml
- .gitlab/kitchen_deploy/kitchen_deploy.yml
- .gitlab/kitchen_testing/include.yml
Expand Down Expand Up @@ -173,15 +172,15 @@ variables:
# To use images from datadog-agent-buildimages dev branches, set the corresponding
# SUFFIX variable to _test_only
DATADOG_AGENT_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_BUILDIMAGES: v45979046-89a73a40
DATADOG_AGENT_BUILDIMAGES: v46542806-c7a4a6be
DATADOG_AGENT_WINBUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_WINBUILDIMAGES: v45979046-89a73a40
DATADOG_AGENT_WINBUILDIMAGES: v46542806-c7a4a6be
DATADOG_AGENT_ARMBUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_ARMBUILDIMAGES: v45979046-89a73a40
DATADOG_AGENT_ARMBUILDIMAGES: v46542806-c7a4a6be
DATADOG_AGENT_SYSPROBE_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v45979046-89a73a40
DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v46542806-c7a4a6be
DATADOG_AGENT_BTF_GEN_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v45979046-89a73a40
DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v46542806-c7a4a6be

DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
DEB_GPG_KEY_ID: c0962c7d
Expand Down Expand Up @@ -257,15 +256,20 @@ variables:
VCPKG_BLOB_SAS_URL: ci.datadog-agent-buildimages.vcpkg_blob_sas_url # windows-agent
WINGET_PAT: ci.datadog-agent.winget_pat # windows-agent
# End aws ssm variables

# Start vault variables
AGENT_API_KEY_ORG2: agent-api-key-org-2 # agent-devx-infra
AGENT_APP_KEY_ORG2: agent-ci-app-key-org-2 # agent-devx-infra
AGENT_GITHUB_APP: agent-github-app # agent-devx-infra
AGENT_QA_E2E: agent-qa-e2e # agent-devx-loops
ATLASSIAN_WRITE: atlassian-write # agent-devx-infra
DOCKER_REGISTRY_RO: dockerhub-readonly # agent-delivery
GITLAB_TOKEN: gitlab-token # agent-devx-infra
INSTALL_SCRIPT_API_KEY_ORG2: install-script-api-key-org-2 # agent-devx-infra
MACOS_GITHUB_APP_1: macos-github-app-one # agent-devx-infra
MACOS_GITHUB_APP_2: macos-github-app-two # agent-devx-infra
# End vault variables

ATLASSIAN_WRITE: atlassian-write
AGENT_GITHUB_APP: agent-github-app
MACOS_GITHUB_APP_1: macos-github-app-one
MACOS_GITHUB_APP_2: macos-github-app-two
DOCKER_REGISTRY_RO: dockerhub-readonly

DD_PKG_VERSION: "latest"

# Job stage attempts (see https://docs.gitlab.com/ee/ci/runners/configure_runners.html#job-stages-attempts)
Expand Down Expand Up @@ -771,19 +775,6 @@ workflow:
paths: *system_probe_change_paths
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916

.on_e2e_changes_or_manual:
- <<: *if_main_branch
- !reference [.except_mergequeue]
- changes:
paths:
- test/new-e2e/pkg/**/*
- test/new-e2e/test-infra-definition/*
- test/new-e2e/go.mod
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
when: on_success
- when: manual
allow_failure: true

# New E2E related rules

.on_e2e_main_release_or_rc: # This rule is used as a base for all new-e2e rules
Expand All @@ -800,6 +791,7 @@ workflow:
when: on_success
- changes:
paths:
- .gitlab/e2e/e2e.yml
- test/new-e2e/pkg/**/*
- test/new-e2e/go.mod
- flakes.yaml
Expand Down Expand Up @@ -1196,3 +1188,12 @@ workflow:
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
- when: manual
allow_failure: true

.on_gpu_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- pkg/gpu/**/*
- test/new-e2e/tests/gpu/**/*
- pkg/collector/corechecks/gpu/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
1 change: 0 additions & 1 deletion .gitlab/.ci-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ job-owners:
- trace-agent-v05-2cpus-normal_load-fixed_sps
- trace-agent-v05-2cpus-stress_load-fixed_sps
- trigger-flakes-finder
- unit_tests_arm64_junit_upload
- unit_tests_notify
- update_rc_build_links
- validate_modules
2 changes: 1 addition & 1 deletion .gitlab/.pre/cancel-prev-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ cancel-prev-pipelines:
when: never
- when: on_success
script:
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_SCHEDULER_TOKEN) || exit $?; export GITLAB_TOKEN
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_TOKEN write_api) || exit $?; export GITLAB_TOKEN
- inv pipeline.auto-cancel-previous-pipelines
6 changes: 3 additions & 3 deletions .gitlab/.pre/gitlab_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test_gitlab_configuration:
- !reference [.except_mergequeue]
- !reference [.on_gitlab_changes]
script:
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_FULL_API_TOKEN) || exit $?; export GITLAB_TOKEN
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_TOKEN write_api) || exit $?; export GITLAB_TOKEN
- inv -e linter.gitlab-ci
- inv -e linter.job-change-path
- inv -e linter.gitlab-change-paths
Expand All @@ -20,7 +20,7 @@ test_gitlab_compare_to:
- !reference [.except_mergequeue]
- !reference [.on_gitlab_changes]
script:
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_FULL_API_TOKEN) || exit $?; export GITLAB_TOKEN
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_TOKEN write_api) || exit $?; export GITLAB_TOKEN
- !reference [.setup_agent_github_app]
- pip install -r tasks/requirements.txt
- inv pipeline.compare-to-itself
Expand All @@ -37,7 +37,7 @@ compute_gitlab_ci_config:
- git checkout main
- git checkout -
script:
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_FULL_API_TOKEN) || exit $?; export GITLAB_TOKEN
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_TOKEN write_api) || exit $?; export GITLAB_TOKEN
- mkdir -p artifacts
- inv -e gitlab.compute-gitlab-ci-config --before-file artifacts/before.gitlab-ci.yml --after-file artifacts/after.gitlab-ci.yml --diff-file artifacts/diff.gitlab-ci.yml
artifacts:
Expand Down
2 changes: 2 additions & 0 deletions .gitlab/JOBOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ new-e2e-ndm* @DataDog/network-device-monitoring
new-e2e-npm* @DataDog/Networks
new-e2e-cws* @DataDog/agent-security
new-e2e-orchestrator* @DataDog/container-app
new-e2e-otel* @DataDog/opentelemetry
e2e_pre_test* @DataDog/agent-devx-loops
new-e2e-remote-config* @DataDog/remote-config
new-e2e-installer* @DataDog/fleet
Expand All @@ -170,6 +171,7 @@ new-e2e-windows-systemprobe @DataDog/windows-kernel-integrations
new-e2e-windows-security-agent @DataDog/windows-kernel-integrations
new-e2e_windows_powershell_module_test @DataDog/windows-kernel-integrations
new-e2e-eks-cleanup-on-failure @DataDog/agent-devx-loops
new-e2e-gpu* @DataDog/ebpf-platform

# Kernel matrix testing
upload_dependencies* @DataDog/ebpf-platform
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/choco_deploy/choco_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ publish_choco_7_x64:
before_script:
- $tmpfile = [System.IO.Path]::GetTempFileName()
- (& "$CI_PROJECT_DIR\tools\ci\fetch_secret.ps1" -parameterName "$Env:CHOCOLATEY_API_KEY" -tempFile "$tmpfile")
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
- If ($lastExitCode -ne "0") { exit "$lastExitCode" }
- $chocolateyApiKey=$(cat "$tmpfile")
- Remove-Item "$tmpfile"
script:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/common/container_publish_job_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
IMG_VARIABLES: ""
IMG_SIGNING: ""
script: # We can't use the 'trigger' keyword on manual jobs, otherwise they can't be run if the pipeline fails and is retried
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_SCHEDULER_TOKEN) || exit $?; export GITLAB_TOKEN
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_TOKEN write_api) || exit $?; export GITLAB_TOKEN
- |
if [[ "$BUCKET_BRANCH" == "nightly" && ( "$IMG_SOURCES" =~ "$SRC_AGENT" || "$IMG_SOURCES" =~ "$SRC_DCA" || "$IMG_SOURCES" =~ "$SRC_CWS_INSTRUMENTATION" || "$IMG_VARIABLES" =~ "$SRC_AGENT" || "$IMG_VARIABLES" =~ "$SRC_DCA" || "$IMG_VARIABLES" =~ "$SRC_CWS_INSTRUMENTATION" ) ]]; then
export ECR_RELEASE_SUFFIX="-nightly"
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/common/test_infra_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ variables:
# and check the job creating the image to make sure you have the right SHA prefix
TEST_INFRA_DEFINITIONS_BUILDIMAGES_SUFFIX: ""
# Make sure to update test-infra-definitions version in go.mod as well
TEST_INFRA_DEFINITIONS_BUILDIMAGES: 7e55b9e3279a
TEST_INFRA_DEFINITIONS_BUILDIMAGES: f694c4dc33e4
Loading

0 comments on commit e7bd0ea

Please sign in to comment.