Skip to content

Commit

Permalink
Merge branch 'main' into guy.arbitman/add-module-name-to-debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb authored Nov 17, 2024
2 parents 5ad3b4f + bd393fa commit 352dd75
Show file tree
Hide file tree
Showing 738 changed files with 16,414 additions and 8,670 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:v48262719-bfb00f80
- image: gcr.io/datadoghq/agent-circleci-runner:v48372186-ff395e52
environment:
USE_SYSTEM_LIBS: "1"
working_directory: /go/src/github.com/DataDog/datadog-agent
Expand Down
4 changes: 2 additions & 2 deletions .ddqa/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ github_labels = ["team/container-app"]
jira_project = "INPLAT"
jira_issue_type = "Task"
jira_statuses = ["Selected For Development", "In Progress", "Done"]
github_team = "apm-onboarding"
github_labels = ["team/apm-onboarding"]
github_team = "injection-platform"
github_labels = ["team/injection-platform"]

[teams."Agent Release Management"]
jira_project = "AGNTR"
Expand Down
10 changes: 7 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
/service.datadog.yaml @DataDog/agent-delivery
/static-analysis.datadog.yml @DataDog/software-integrity-and-trust @DataDog/agent-devx-infra

/modules.yml @DataDog/agent-shared-components

/.circleci/ @DataDog/agent-devx-infra

/.github/CODEOWNERS # do not notify anyone
Expand Down Expand Up @@ -99,7 +101,7 @@
/.gitlab/package_deps_build/package_deps_build.yml @DataDog/agent-devx-infra @DataDog/ebpf-platform
/.gitlab/powershell_script_signing/powershell_script_signing.yml @DataDog/agent-delivery @DataDog/windows-agent
/.gitlab/source_test/golang_deps_diff.yml @DataDog/agent-devx-infra @DataDog/agent-devx-loops
/.gitlab/source_test/include.yml @DataDog/agent-devx-infra
/.gitlab/source_test/* @DataDog/agent-devx-infra
/.gitlab/source_test/linux.yml @DataDog/agent-devx-infra @DataDog/agent-devx-loops
/.gitlab/source_test/macos.yml @DataDog/agent-devx-infra @DataDog/agent-devx-loops
/.gitlab/source_test/notify.yml @DataDog/agent-devx-infra @DataDog/agent-devx-loops
Expand Down Expand Up @@ -366,7 +368,7 @@
/pkg/clusteragent/ @DataDog/container-platform
/pkg/clusteragent/autoscaling/ @DataDog/container-integrations
/pkg/clusteragent/admission/mutate/autoscaling @DataDog/container-integrations
/pkg/clusteragent/admission/mutate/autoinstrumentation/ @DataDog/container-platform @DataDog/apm-onboarding
/pkg/clusteragent/admission/mutate/autoinstrumentation/ @DataDog/container-platform @DataDog/injection-platform
/pkg/clusteragent/orchestrator/ @DataDog/container-app
/pkg/clusteragent/telemetry/ @DataDog/apm-trace-storage
/pkg/collector/ @DataDog/agent-metrics-logs
Expand Down Expand Up @@ -444,6 +446,7 @@
/pkg/util/ecs/ @DataDog/container-integrations
/pkg/util/funcs/ @DataDog/ebpf-platform
/pkg/util/kernel/ @DataDog/ebpf-platform
/pkg/util/safeelf/ @DataDog/ebpf-platform
/pkg/util/ktime @DataDog/agent-security
/pkg/util/kubernetes/ @DataDog/container-integrations @DataDog/container-platform @DataDog/container-app
/pkg/util/podman/ @DataDog/container-integrations
Expand Down Expand Up @@ -565,6 +568,7 @@
/tasks/libs/ciproviders/ @DataDog/agent-devx-infra
/tasks/libs/common/omnibus.py @DataDog/agent-delivery
/tasks/omnibus.py @DataDog/agent-delivery
/tasks/release.py @DataDog/agent-delivery
/tasks/unit_tests/components_tests.py @DataDog/agent-shared-components
/tasks/unit_tests/omnibus_tests.py @DataDog/agent-delivery
/tasks/unit_tests/testdata/components_src/ @DataDog/agent-shared-components
Expand Down Expand Up @@ -611,7 +615,7 @@
/test/new-e2e/tests/otel @DataDog/opentelemetry
/test/new-e2e/tests/process @DataDog/processes
/test/new-e2e/tests/sysprobe-functional @DataDog/windows-kernel-integrations
/test/new-e2e/tests/security-agent-functional @DataDog/windows-kernel-integrations
/test/new-e2e/tests/security-agent-functional @DataDog/windows-kernel-integrations @DataDog/agent-security
/test/new-e2e/tests/cws @DataDog/agent-security
/test/new-e2e/tests/agent-metrics-logs @DataDog/agent-metrics-logs
/test/new-e2e/tests/windows @DataDog/windows-agent @DataDog/windows-kernel-integrations
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ jobs:
MATRIX: ${{ matrix.value }}
WARNING: ${{ needs.find_release_branches.outputs.warning }}
run: |
echo "CHANGES=$(inv -e release.check-for-changes -r "$MATRIX" "$WARNING")" >> $GITHUB_OUTPUT
if [ -n "${{ needs.find_release_branches.outputs.warning }}" ]; then
echo "CHANGES=$(inv -e release.check-for-changes -r "$MATRIX" "$WARNING")" >> $GITHUB_OUTPUT
else
echo "CHANGES=$(inv -e release.check-for-changes -r "$MATRIX")" >> $GITHUB_OUTPUT
fi
- name: Create RC PR
if: ${{ steps.check_for_changes.outputs.CHANGES == 'true'}}
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/cws-btfhub-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,18 @@ jobs:
echo "ARTIFACT_NAME=constants-${{ matrix.cone }}" | tr '/' '-' >> $GITHUB_OUTPUT
- name: Sync constants
if: ${{ !inputs.force_refresh }}
env:
ARTIFACT_NAME: ${{ steps.artifact-name.outputs.ARTIFACT_NAME }}
FORCE_REFRESH: ${{ inputs.force_refresh && '--force-refresh' || '' }}
run: |
inv -e security-agent.generate-btfhub-constants --archive-path=./dev/dist/archive --output-path=./"$ARTIFACT_NAME".json "$FORCE_REFRESH"
inv -e security-agent.generate-btfhub-constants --archive-path=./dev/dist/archive --output-path=./"$ARTIFACT_NAME".json
- name: Force sync constants
if: ${{ inputs.force_refresh }}
env:
ARTIFACT_NAME: ${{ steps.artifact-name.outputs.ARTIFACT_NAME }}
run: |
inv -e security-agent.generate-btfhub-constants --archive-path=./dev/dist/archive --output-path=./"$ARTIFACT_NAME".json --force-refresh
- name: Upload artifact
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
Expand All @@ -106,7 +113,6 @@ jobs:
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ inputs.base_branch || 'main' }}
persist-credentials: false

- name: Install python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
Expand Down Expand Up @@ -158,8 +164,8 @@ jobs:
title: 'CWS: sync BTFHub constants',
owner,
repo,
head: "$BRANCH_NAME",
base: "$BASE_BRANCH",
head: process.env.BRANCH_NAME,
base: process.env.BASE_BRANCH,
body: [
'### What does this PR do?',
'This PR syncs the BTFHub constants used by CWS',
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/go_mod_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ github.head_ref }}
persist-credentials: false
- name: Checkout PR
# run only if triggered manually, otherwise we are already on the right branch and we won't have `pr_number`
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
49 changes: 24 additions & 25 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,49 +172,49 @@ 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: v48262719-bfb00f80
DATADOG_AGENT_BUILDIMAGES: v48372186-ff395e52
DATADOG_AGENT_WINBUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_WINBUILDIMAGES: v48262719-bfb00f80
DATADOG_AGENT_WINBUILDIMAGES: v48372186-ff395e52
DATADOG_AGENT_ARMBUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_ARMBUILDIMAGES: v48262719-bfb00f80
DATADOG_AGENT_ARMBUILDIMAGES: v48372186-ff395e52
DATADOG_AGENT_SYSPROBE_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v48262719-bfb00f80
DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v48372186-ff395e52
DATADOG_AGENT_BTF_GEN_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v48262719-bfb00f80
DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v48372186-ff395e52
# New images to enable different version per image - not used yet
CI_IMAGE_BTF_GEN: v48262719-bfb00f80
CI_IMAGE_BTF_GEN: v48372186-ff395e52
CI_IMAGE_BTF_GEN_SUFFIX: ""
CI_IMAGE_DEB_X64: v48262719-bfb00f80
CI_IMAGE_DEB_X64: v48372186-ff395e52
CI_IMAGE_DEB_X64_SUFFIX: ""
CI_IMAGE_DEB_ARM64: v48262719-bfb00f80
CI_IMAGE_DEB_ARM64: v48372186-ff395e52
CI_IMAGE_DEB_ARM64_SUFFIX: ""
CI_IMAGE_DEB_ARMHF: v48262719-bfb00f80
CI_IMAGE_DEB_ARMHF: v48372186-ff395e52
CI_IMAGE_DEB_ARMHF_SUFFIX: ""
CI_IMAGE_DD_AGENT_TESTING: v48262719-bfb00f80
CI_IMAGE_DD_AGENT_TESTING: v48372186-ff395e52
CI_IMAGE_DD_AGENT_TESTING_SUFFIX: ""
CI_IMAGE_DOCKER_X64: v48262719-bfb00f80
CI_IMAGE_DOCKER_X64: v48372186-ff395e52
CI_IMAGE_DOCKER_X64_SUFFIX: ""
CI_IMAGE_DOCKER_ARM64: v48262719-bfb00f80
CI_IMAGE_DOCKER_ARM64: v48372186-ff395e52
CI_IMAGE_DOCKER_ARM64_SUFFIX: ""
CI_IMAGE_GITLAB_AGENT_DEPLOY: v48262719-bfb00f80
CI_IMAGE_GITLAB_AGENT_DEPLOY: v48372186-ff395e52
CI_IMAGE_GITLAB_AGENT_DEPLOY_SUFFIX: ""
CI_IMAGE_LINUX_GLIBC_2_17_X64: v48262719-bfb00f80
CI_IMAGE_LINUX_GLIBC_2_17_X64: v48372186-ff395e52
CI_IMAGE_LINUX_GLIBC_2_17_X64_SUFFIX: ""
CI_IMAGE_LINUX_GLIBC_2_23_ARM64: v48262719-bfb00f80
CI_IMAGE_LINUX_GLIBC_2_23_ARM64: v48372186-ff395e52
CI_IMAGE_LINUX_GLIBC_2_23_ARM64_SUFFIX: ""
CI_IMAGE_SYSTEM_PROBE_X64: v48262719-bfb00f80
CI_IMAGE_SYSTEM_PROBE_X64: v48372186-ff395e52
CI_IMAGE_SYSTEM_PROBE_X64_SUFFIX: ""
CI_IMAGE_SYSTEM_PROBE_ARM64: v48262719-bfb00f80
CI_IMAGE_SYSTEM_PROBE_ARM64: v48372186-ff395e52
CI_IMAGE_SYSTEM_PROBE_ARM64_SUFFIX: ""
CI_IMAGE_RPM_X64: v48262719-bfb00f80
CI_IMAGE_RPM_X64: v48372186-ff395e52
CI_IMAGE_RPM_X64_SUFFIX: ""
CI_IMAGE_RPM_ARM64: v48262719-bfb00f80
CI_IMAGE_RPM_ARM64: v48372186-ff395e52
CI_IMAGE_RPM_ARM64_SUFFIX: ""
CI_IMAGE_RPM_ARMHF: v48262719-bfb00f80
CI_IMAGE_RPM_ARMHF: v48372186-ff395e52
CI_IMAGE_RPM_ARMHF_SUFFIX: ""
CI_IMAGE_WIN_1809_X64: v48262719-bfb00f80
CI_IMAGE_WIN_1809_X64: v48372186-ff395e52
CI_IMAGE_WIN_1809_X64_SUFFIX: ""
CI_IMAGE_WIN_LTSC2022_X64: v48262719-bfb00f80
CI_IMAGE_WIN_LTSC2022_X64: v48372186-ff395e52
CI_IMAGE_WIN_LTSC2022_X64_SUFFIX: ""

DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
Expand Down Expand Up @@ -746,6 +746,7 @@ workflow:
- .gitlab/kernel_matrix_testing/security_agent.yml
- .gitlab/kernel_matrix_testing/common.yml
- .gitlab/source_test/ebpf.yml
- test/new-e2e/tests/cws/**/*
- test/new-e2e/system-probe/**/*
- test/new-e2e/scenarios/system-probe/**/*
- test/new-e2e/pkg/runner/**/*
Expand Down Expand Up @@ -965,9 +966,7 @@ workflow:
.on_cws_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
# TODO: Add paths that should trigger tests for CWS
- test/new-e2e/tests/cws/**/*
paths: *security_agent_change_paths
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916

.on_process_or_e2e_changes:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/binary_build/system_probe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- find "$CI_BUILDS_DIR" ! -path '*DataDog/datadog-agent*' -delete || true # Allow failure, we can't remove parent folders of datadog-agent
script:
- inv check-go-version
- inv -e system-probe.build --strip-object-files --no-bundle
- inv -e system-probe.build --strip-object-files
# fail if references to glibc >= 2.18
- objdump -p $CI_PROJECT_DIR/$SYSTEM_PROBE_BINARIES_DIR/system-probe | egrep 'GLIBC_2\.(1[8-9]|[2-9][0-9])' && exit 1
- inv -e system-probe.save-build-outputs $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz
Expand Down
5 changes: 5 additions & 0 deletions .gitlab/common/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
fi
- pyenv activate $VENV_NAME

.vault_login:
# Point the CLI to our internal vault
- export VAULT_ADDR=https://vault.us1.ddbuild.io
- vault login -method=aws -no-print

.macos_gitlab:
before_script:
# Selecting the current Go version
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: ec7e1e40abcd
TEST_INFRA_DEFINITIONS_BUILDIMAGES: b436617374bf
12 changes: 6 additions & 6 deletions .gitlab/e2e/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
- ARM_CLIENT_SECRET=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_TESTS_AZURE_CLIENT_SECRET) || exit $?; export ARM_CLIENT_SECRET
- ARM_TENANT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_TESTS_AZURE_TENANT_ID) || exit $?; export ARM_TENANT_ID
- ARM_SUBSCRIPTION_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_TESTS_AZURE_SUBSCRIPTION_ID) || exit $?; export ARM_SUBSCRIPTION_ID
# Setup GCP credentials. https://www.pulumi.com/registry/packages/gcp/installation-configuration/
# Setup GCP credentials. https://www.pulumi.com/registry/packages/gcp/service-account/
# The service account is called `agent-e2e-tests`
- GOOGLE_CREDENTIALS=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_TESTS_GCP_CREDENTIALS) || exit $?; export GOOGLE_CREDENTIALS
- $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_TESTS_GCP_CREDENTIALS > ~/gcp-credentials.json || exit $?
- export GOOGLE_APPLICATION_CREDENTIALS=~/gcp-credentials.json
# Generate external links to CI VISIBILITY, used by artifacts:reports:annotations
- inv -e gitlab.generate-ci-visibility-links --output=$EXTERNAL_LINKS_PATH
variables:
Expand Down Expand Up @@ -500,7 +501,7 @@ new-e2e-otel-eks-init:
variables:
TARGETS: ./tests/otel
TEAM: otel
EXTRA_PARAMS: --run TestOTelAgentIAEKS
EXTRA_PARAMS: --run "TestOTelAgentIA(EKS|USTEKS)"
E2E_INIT_ONLY: "true"
SHOULD_RUN_IN_FLAKES_FINDER: "false"

Expand All @@ -519,7 +520,7 @@ new-e2e-otel-eks:
- new-e2e-otel-eks-init
variables:
TARGETS: ./tests/otel
EXTRA_PARAMS: --run TestOTelAgentIAEKS
EXTRA_PARAMS: --run "TestOTelAgentIA(EKS|USTEKS)"
TEAM: otel
E2E_PRE_INITIALIZED: "true"

Expand All @@ -535,7 +536,7 @@ new-e2e-otel:
- qa_agent_ot
variables:
TARGETS: ./tests/otel
EXTRA_PARAMS: --skip TestOTelAgentIAEKS
EXTRA_PARAMS: --skip "TestOTelAgentIA(EKS|USTEKS)"
TEAM: otel

.new-e2e_package_signing:
Expand Down Expand Up @@ -656,4 +657,3 @@ new-e2e-eks-cleanup-on-failure:
- !reference [.except_mergequeue]
- when: always
allow_failure: true

Loading

0 comments on commit 352dd75

Please sign in to comment.