Skip to content

Commit bbef7ba

Browse files
authored
Merge branch 'main' into hongshi/mac_sw_inventory
2 parents 6fb15f4 + 681899c commit bbef7ba

File tree

783 files changed

+19013
-174465
lines changed

Some content is hidden

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

783 files changed

+19013
-174465
lines changed

.adms/bazel/adms.mirror.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ allow mirrors.edge.kernel.org
3838

3939
# Sqreen sources
4040
# (https://github.com/DataDog/logs-backend/blob/93eccaef54c4d0f99151c2bf49ff2bcb028c0bd7/rules/jvm/setup.bzl#L64-L73)
41-
allow sqreen-ci-java.s3.amazonaws.com
41+
# incident-48655
42+
# allow sqreen-ci-java.s3.amazonaws.com
4243

4344
# dd-agent and dd-trace jars
4445
# (https://github.com/DataDog/logs-backend/blob/8ea7c29de6185481f61ba0b3affa97acad69d18b/rules/jvm/setup.bzl#L84-L98)

.custom-gcl.yml

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

.dda/extend/commands/gh/cherry_pick_pr/__init__.py

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,28 @@
2121
features=["github"],
2222
)
2323
@click.option("--pr-number", type=int)
24-
@click.option("--target-branch", type=str)
24+
@click.option("--target-branch", type=str, required=True)
2525
@pass_app
2626
def cmd(
2727
app: Application,
28+
target_branch: str,
2829
pr_number: int | None = None,
29-
target_branch: str | None = None,
3030
) -> None:
3131
"""
3232
Cherry-pick a merged PR changes to another branch.
3333
"""
34-
# Use pr_number and target_branch if provided, otherwise use the event
35-
if pr_number and target_branch:
34+
# Get the PR either from --pr-number or from the event
35+
if pr_number:
3636
original_pr = get_pr_by_number(pr_number)
37-
base = target_branch
3837
else:
3938
event = get_event()
4039
original_pr = event.get("pull_request")
4140
if not original_pr:
42-
app.display_warning("Expecting a pull request event or --pr-number and --target-branch arguments.")
43-
return
44-
base = find_backport_target(original_pr.get("labels", []))
45-
if not base:
46-
app.display_warning("No backport/<target> label found. Skipping backport.")
41+
app.display_warning("Expecting a pull request event or --pr-number argument.")
4742
return
4843

44+
base = target_branch
45+
4946
# Merge commit SHA (the commit created on base branch)
5047
merge_commit_sha = original_pr.get("merge_commit_sha")
5148
if not original_pr.get("merged", False) or not merge_commit_sha:
@@ -133,19 +130,6 @@ def get_event() -> dict:
133130
return json.load(f)
134131

135132

136-
def find_backport_target(labels: list[dict]) -> str | None:
137-
"""
138-
Look for a label of the form 'backport/<target>' and return <target>'.
139-
"""
140-
for lbl in labels:
141-
name = lbl.get("name")
142-
if not name:
143-
continue
144-
if name.startswith("backport/"):
145-
return name.split("/", 1)[1]
146-
return None
147-
148-
149133
def get_non_backport_labels(labels: list[dict]) -> list[str]:
150134
"""
151135
Get all labels that are not backport labels.

.ddqa/config.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,11 @@ github_team = "universal-service-monitoring"
7272
github_labels = ["team/usm"]
7373

7474
[teams."Network Device Monitoring - Core"]
75-
jira_project = "NDMII"
76-
jira_issue_type = "Task"
75+
jira_project = "NDMC"
76+
jira_issue_type = "HighPriority"
7777
jira_statuses = ["To Do", "In Progress", "Done"]
7878
github_team = "ndm-core"
79-
github_labels = ["team/ndm-core", "team/network-device-monitoring"]
80-
exclude_members = ["leeavital", "heyronhay"]
79+
github_labels = ["team/ndm-core"]
8180

8281
[teams."Network Device Monitoring - Integrations"]
8382
jira_project = "NDINT"
@@ -252,3 +251,10 @@ jira_issue_type = "Task"
252251
jira_statuses = ["To do", "In Development", "Done"]
253252
github_team = "data-streams-monitoring"
254253
github_labels = ["team/data-streams-monitoring"]
254+
255+
[teams."Profiling Full Host"]
256+
jira_project = "PROF"
257+
jira_issue_type = "Task"
258+
jira_statuses = ["To Do", "In Progress", "Done"]
259+
github_team = "profiling-full-host"
260+
github_labels = ["team/profiling-full-host"]

.github/CODEOWNERS

Lines changed: 17 additions & 18 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

@@ -100,11 +99,10 @@
10099
/.gitlab/.pre/maintenance_jobs/* @DataDog/agent-devx
101100
/.gitlab/.post/notify/* @DataDog/agent-devx
102101
/.gitlab/build/pkg_metrics/* @DataDog/agent-devx
103-
/.gitlab/.post/post_rc_build/* @DataDog/agent-devx
102+
/.gitlab/.post/post_rc_build/* @DataDog/agent-delivery
104103
/.gitlab/.pre/setup/* @DataDog/agent-devx
105104
/.gitlab/deploy/trigger_distribution.yml @DataDog/agent-delivery
106105
/.gitlab/distribute/trigger_release/* @DataDog/agent-devx @DataDog/agent-delivery
107-
108106
/.gitlab/build/binary_build/cws_instrumentation.yml @DataDog/agent-devx @DataDog/agent-security
109107
/.gitlab/build/binary_build/linux.yml @DataDog/agent-devx @DataDog/agent-build
110108
/.gitlab/test/functional_test/static_quality_gate.yml @DataDog/agent-build
@@ -143,7 +141,7 @@
143141
/.gitlab/deploy/deploy_packages/windows.yml @DataDog/agent-delivery @DataDog/windows-products
144142
/.gitlab/distribute/winget.yml @DataDog/agent-delivery @DataDog/windows-products
145143
/.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
144+
/.gitlab/deploy/deploy_packages/e2e.yml @DataDog/agent-devx @DataDog/fleet
147145

148146
/.gitlab/.pre/deps_build/ @DataDog/ebpf-platform @DataDog/agent-build @DataDog/windows-products
149147

@@ -152,8 +150,8 @@
152150
/.gitlab/.pre/common/ @DataDog/agent-devx
153151

154152
/.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
153+
/.gitlab/deploy/container_build/fakeintake.yml @DataDog/agent-devx
154+
/.gitlab/build/binary_build/fakeintake.yml @DataDog/agent-devx
157155

158156
/.gitlab/test/functional_test/oracle.yml @DataDog/agent-devx @DataDog/database-monitoring
159157

@@ -170,7 +168,7 @@
170168

171169
/.gitlab/deploy/dev_container_deploy/ @DataDog/container-integrations @DataDog/agent-delivery
172170
/.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
171+
/.gitlab/deploy/dev_container_deploy/e2e.yml @DataDog/agent-devx
174172
/.gitlab/deploy/dev_container_deploy/docker_windows.yml @DataDog/agent-delivery @DataDog/windows-products
175173

176174
/.gitlab/deploy/container_scan/container_scan.yml @DataDog/container-integrations @DataDog/agent-delivery
@@ -264,7 +262,7 @@
264262
/cmd/system-probe/subcommands/ebpf/ @DataDog/ebpf-platform @DataDog/universal-service-monitoring
265263
/cmd/system-probe/subcommands/compliance/ @DataDog/agent-cspm
266264
/cmd/systray/ @DataDog/windows-products
267-
/cmd/secret-backend/ @DataDog/agent-configuration
265+
/cmd/secret-generic-connector/ @DataDog/agent-configuration
268266
/cmd/security-agent/ @DataDog/agent-security
269267
/cmd/security-agent/subcommands/compliance/ @DataDog/agent-cspm
270268
/cmd/installer/ @DataDog/fleet @DataDog/windows-products
@@ -506,6 +504,7 @@
506504
/pkg/config/autodiscovery/ @DataDog/container-integrations @DataDog/container-platform @DataDog/agent-configuration
507505
/pkg/config/env @DataDog/container-integrations @DataDog/container-platform @DataDog/agent-configuration
508506
/pkg/config/setup @DataDog/agent-configuration
507+
/pkg/config/setup/privateactionrunner.go @DataDog/action-platform
509508
/pkg/config/setup/process*.go @DataDog/container-experiences @DataDog/agent-configuration
510509
/pkg/config/setup/system_probe.go @DataDog/ebpf-platform @DataDog/agent-configuration
511510
/pkg/config/setup/system_probe_cws.go @DataDog/agent-security @DataDog/agent-configuration
@@ -589,9 +588,6 @@
589588
/pkg/util/testutil/docker @DataDog/universal-service-monitoring @DataDog/ebpf-platform
590589
/pkg/util/trie @DataDog/container-integrations
591590
/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
595591
/pkg/logs/ @DataDog/agent-log-pipelines
596592
/pkg/logs/launchers/container @DataDog/agent-log-pipelines @DataDog/container-integrations
597593
/pkg/logs/tailers/container @DataDog/agent-log-pipelines @DataDog/container-integrations
@@ -628,6 +624,7 @@
628624
/pkg/network/ @DataDog/cloud-network-monitoring
629625
/pkg/network/*usm* @DataDog/universal-service-monitoring
630626
/pkg/network/*_windows*.go @DataDog/windows-products
627+
/pkg/network/*usm*windows*.go @DataDog/windows-products @DataDog/universal-service-monitoring
631628
/pkg/network/config/config_test.go @DataDog/cloud-network-monitoring @DataDog/universal-service-monitoring @DataDog/windows-products
632629
/pkg/network/config/usm*.go @DataDog/universal-service-monitoring
633630
/pkg/network/driver_*.go @DataDog/windows-products
@@ -642,15 +639,16 @@
642639
/pkg/network/ebpf/c/protocols/tls @DataDog/cloud-network-monitoring @DataDog/universal-service-monitoring
643640
/pkg/network/encoding/marshal/*usm* @DataDog/universal-service-monitoring
644641
/pkg/network/encoding/marshal/*_windows*.go @DataDog/windows-products
642+
/pkg/network/encoding/marshal/*usm*windows*.go @DataDog/windows-products @DataDog/universal-service-monitoring
645643
/pkg/network/go/ @DataDog/universal-service-monitoring
646644
/pkg/network/protocols/ @DataDog/universal-service-monitoring
647-
/pkg/network/protocols/http/driver_*.go @DataDog/windows-products
648-
/pkg/network/protocols/http/etw*.go @DataDog/windows-products
649-
/pkg/network/protocols/http/*_windows*.go @DataDog/windows-products
645+
/pkg/network/protocols/http/driver_*.go @DataDog/windows-products @DataDog/universal-service-monitoring
646+
/pkg/network/protocols/http/etw*.go @DataDog/windows-products @DataDog/universal-service-monitoring
647+
/pkg/network/protocols/http/*_windows*.go @DataDog/windows-products @DataDog/universal-service-monitoring
650648
/pkg/network/tracer/testutil/proxy/ @DataDog/universal-service-monitoring
651649
/pkg/network/tracer/*_windows*.go @DataDog/windows-products
652650
/pkg/network/usm/ @DataDog/universal-service-monitoring
653-
/pkg/network/usm/tests/*_windows*.go @DataDog/windows-products
651+
/pkg/network/usm/tests/*_windows*.go @DataDog/windows-products @DataDog/universal-service-monitoring
654652
/pkg/networkconfigmanagement/ @DataDog/ndm-core @DataDog/ndm-integrations
655653
/pkg/ebpf/ @DataDog/ebpf-platform
656654
/pkg/ebpf/map_cleaner*.go @DataDog/universal-service-monitoring
@@ -700,7 +698,7 @@
700698
/tasks/cluster_agent_cloudfoundry.py @DataDog/agent-integrations
701699
/tasks/devcontainer.py @DataDog/agent-devx @DataDog/container-platform
702700
/tasks/skaffold.py @DataDog/agent-devx @DataDog/container-platform
703-
/tasks/new_e2e_tests.py @DataDog/agent-e2e-testing @DataDog/agent-devx
701+
/tasks/new_e2e_tests.py @DataDog/agent-devx
704702
/tasks/process_agent.py @DataDog/container-experiences
705703
/tasks/privateactionrunner.py @DataDog/action-platform
706704
/tasks/system_probe.py @DataDog/ebpf-platform
@@ -743,12 +741,12 @@
743741
/test/integration/ @DataDog/serverless-azure-gcp
744742
/test/integration/docker/ @DataDog/opentelemetry-agent
745743
/test/e2e-framework/testing/testcommon/check @DataDog/agent-runtimes
746-
/test/fakeintake/ @DataDog/agent-e2e-testing @DataDog/agent-devx
744+
/test/fakeintake/ @DataDog/agent-devx
747745
/test/fakeintake/aggregator/ndmAggregator.go @DataDog/ndm-core
748746
/test/fakeintake/aggregator/ndmAggregator_test.go @DataDog/ndm-core
749747
/test/fakeintake/aggregator/ndmflowAggregator.go @DataDog/ndm-integrations
750748
/test/fakeintake/aggregator/ndmflowAggregator_test.go @DataDog/ndm-integrations
751-
/test/new-e2e/ @DataDog/agent-e2e-testing @DataDog/agent-devx
749+
/test/new-e2e/ @DataDog/agent-devx
752750
/test/new-e2e/test-infra-definition @DataDog/agent-devx
753751
/test/new-e2e/system-probe @DataDog/ebpf-platform
754752
/test/new-e2e/system-probe/config/vmconfig-security-agent.json @DataDog/ebpf-platform @DataDog/agent-security
@@ -807,6 +805,7 @@
807805
/test/regression/cases/docker_containers* @DataDog/single-machine-performance @DataDog/container-integrations
808806

809807
/tools/ @DataDog/agent-devx
808+
/tools/host-profiler/ @DataDog/profiling-full-host
810809
/tools/bazel* @DataDog/agent-build
811810
/tools/ci/*bazel* @DataDog/agent-build
812811
/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

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ updates:
137137
labels:
138138
- dependencies
139139
- dependencies-go
140-
- team/network-device-monitoring
140+
- team/ndm-core
141141
- changelog/no-changelog
142142
ignore:
143143
# Ignore internal modules

.github/workflows/backport-pr.yml

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,51 @@ on:
66
- labeled
77

88
jobs:
9+
get-backport-targets:
10+
name: Get backport targets
11+
runs-on: ubuntu-latest
12+
if: github.event.pull_request.merged
13+
outputs:
14+
targets: ${{ steps.get-targets.outputs.targets }}
15+
steps:
16+
- name: Get backport targets
17+
id: get-targets
18+
run: |
19+
# For 'labeled' event, use just the added label
20+
# For 'closed' event, use all backport labels
21+
if [[ "${{ github.event.action }}" == "labeled" ]]; then
22+
if [[ "${{ github.event.label.name }}" == backport/* ]]; then
23+
echo "targets=[\"${{ github.event.label.name }}\"]" >> $GITHUB_OUTPUT
24+
else
25+
echo "targets=[]" >> $GITHUB_OUTPUT
26+
fi
27+
else
28+
# Extract all backport/* labels as JSON array
29+
targets=$(echo '${{ toJson(github.event.pull_request.labels.*.name) }}' | jq -c '[.[] | select(startswith("backport/"))]')
30+
echo "targets=$targets" >> $GITHUB_OUTPUT
31+
fi
32+
933
backport:
10-
name: Backport PR
34+
name: Backport PR to ${{ matrix.target }}
35+
needs: get-backport-targets
36+
if: needs.get-backport-targets.outputs.targets != '[]' && needs.get-backport-targets.outputs.targets != ''
1137
runs-on: ubuntu-latest
12-
if: >
13-
github.event.pull_request.merged
14-
&& (
15-
github.event.action == 'closed'
16-
|| (
17-
github.event.action == 'labeled'
18-
&& contains(github.event.label.name, 'backport')
19-
)
20-
)
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
target: ${{ fromJson(needs.get-backport-targets.outputs.targets) }}
2142
permissions:
2243
id-token: write # This is required for getting the required OIDC token from GitHub
2344
contents: write # This is required for pushing the backport branch
2445
pull-requests: write # This is required for creating the backport PR
2546
steps:
47+
- name: Compute target branch
48+
id: target
49+
run: |
50+
target="${{ matrix.target }}"
51+
target_branch="${target/backport\//}"
52+
echo "target_branch=$target_branch" >> $GITHUB_OUTPUT
53+
2654
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
2755
id: octo-sts
2856
with:
@@ -32,7 +60,7 @@ jobs:
3260
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3361
with:
3462
fetch-depth: 0 # needed to get the full history of the PR
35-
63+
3664
- name: Install dda
3765
uses: ./.github/actions/install-dda
3866
with:
@@ -43,12 +71,12 @@ jobs:
4371
env:
4472
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
4573
GITHUB_EVENT_PATH: ${{ github.event_path }}
46-
run: dda gh cherry-pick-pr
74+
run: dda gh cherry-pick-pr --target-branch "${{ steps.target.outputs.target_branch }}"
4775

4876
- name: Reset cherry-pick
4977
if: steps.cherry-pick.outputs.base != ''
5078
run: git reset HEAD~1
51-
79+
5280
- name: Create pull request
5381
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
5482
if: steps.cherry-pick.outputs.base != ''
@@ -60,15 +88,15 @@ jobs:
6088
title: "[Backport ${{steps.cherry-pick.outputs.base}}] ${{steps.cherry-pick.outputs.original_title}}"
6189
body: |
6290
Backport ${{steps.cherry-pick.outputs.merge_commit_sha}} from #${{steps.cherry-pick.outputs.original_pr_number}}.
63-
91+
6492
___
65-
93+
6694
${{ steps.cherry-pick.outputs.original_body }}
67-
95+
6896
labels: ${{ steps.cherry-pick.outputs.original_labels }},backport,bot
6997
commit-message: |
7098
${{ steps.cherry-pick.outputs.message }}
71-
99+
72100
___
73-
101+
74102
Co-authored-by: ${{ steps.cherry-pick.outputs.author }}

0 commit comments

Comments
 (0)