Skip to content

Commit 2944356

Browse files
committed
Merge branch 'main' of github.com:DataDog/datadog-agent into kfairise/auto-workspace-update
2 parents 1f72ca4 + eed01b7 commit 2944356

967 files changed

Lines changed: 94239 additions & 55065 deletions

File tree

Some content is hidden

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

.bazelrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ common --@rules_python//python/config_settings:bootstrap_impl=script # https://g
1717
common --check_direct_dependencies=error # Escalate any bypassed `bazel_dep` to a resolution failure
1818
common --enable_platform_specific_config # Supported OS identifiers are linux, macos, windows, freebsd, and openbsd
1919
common --experimental_disk_cache_gc_max_size=5G # Cap applied whenever --disk_cache is also set, no-op otherwise
20+
common --experimental_proto_descriptor_sets_include_source_info # Preserve comments in generated pb.go
2021
common --experimental_strict_repo_env # Do not leak uncontrolled environment variables into repository rules
2122
common --experimental_ui_max_stdouterr_bytes=1073741819 # why?
2223
common --http_timeout_scaling=3.0 # At least one attempt reaches 30s (3,6,12,24,30,30,30,30) instead of only 10s (1,2,4,8,10,10,10,10)
@@ -39,17 +40,17 @@ common:lint --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect --output_gro
3940
common:lint --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect --output_groups=+rustfmt_checks
4041

4142
# Linux config ---------------------------------------------------------------------------------------------------------
42-
common:linux --credential_helper=*.us1.ddbuild.io=%workspace%/bazel/tools/credential-helper
43+
common:linux --credential_helper=buildbarn-edge-cache.buildbarn.local-cluster.local-dc.fabric.dog=%workspace%/bazel/tools/credential-helper
4344
common:linux --strategy=sandboxed
4445

4546
# macOS config ---------------------------------------------------------------------------------------------------------
46-
common:macos --credential_helper=*.us1.ddbuild.io=%workspace%/bazel/tools/credential-helper
47+
common:macos --credential_helper=buildbarn-edge-cache.buildbarn.local-cluster.local-dc.fabric.dog=%workspace%/bazel/tools/credential-helper
4748
common:macos --features=-macos_default_link_flags # https://github.com/bazelbuild/bazel/issues/23312
4849
common:macos --macos_minimum_os=12.0 # Keep in sync with https://docs.datadoghq.com/agent/supported_platforms/?tab=macos
4950
common:macos --strategy=sandboxed
5051

5152
# Windows config -------------------------------------------------------------------------------------------------------
52-
common:windows --credential_helper=*.us1.ddbuild.io=%workspace%/bazel/tools/credential-helper.bat
53+
common:windows --credential_helper=buildbarn-edge-cache.buildbarn.local-cluster.local-dc.fabric.dog=%workspace%/bazel/tools/credential-helper.bat
5354
common:windows --strategy=standalone # Valid values are: [dynamic_worker, standalone, dynamic, remote, worker, local]
5455
# rules_python 1.9.0 transitions enable_runfiles to `true` for every py_ target on Windows. Pre-setting it here makes
5556
# that transition a no-op, so Bazel deduplicates python_win and avoids 2 concurrent MSBuild racing on shared resources.
@@ -61,14 +62,15 @@ common:windows --repo_env=SYSTEMROOT # used by COM to load system DLLs, needed b
6162
common:windows --repo_env=USERPROFILE # used by MSYS2 bash to emulate HOME, needed by git to fetch repositories
6263
common:windows --repo_env=VSTUDIO_ROOT # visual_studio(path_variable) in MODULE.bazel
6364
common:windows --shell_executable=C:/tools/msys64/usr/bin/bash.exe
65+
6466
# Force the x86_64-pc-windows-gnu Rust toolchain (compact name for rust_windows_gnu_x86_64)
6567
# to take priority over the default MSVC toolchain, since the CI cc_toolchain is MinGW/GCC.
6668
common:windows --extra_toolchains=@rust_toolchains//:rw-2070622084
6769

6870
# Remote cache config --------------------------------------------------------------------------------------------------
6971
# datadog-agent virtually isolates caching instance from its parent (which is remote-caching).
7072
# If entry isn't found in datadog-agent, it will be searched in remote-caching.
71-
common:cache --remote_cache=grpcs://buildbarn-frontend.us1.ddbuild.io:443
73+
common:cache --remote_cache=grpc://buildbarn-edge-cache.buildbarn.local-cluster.local-dc.fabric.dog:443
7274
common:cache --remote_instance_name=ci/datadog-agent
7375
common:cache --remote_local_fallback # best-effort on transient connection errors (no such host)
7476
common:cache --incompatible_remote_local_fallback_for_remote_cache # works only if --remote_local_fallback is also set

.claude-plugins/datadog-agent-gopls/.claude-plugin/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "datadog-agent-gopls",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Go LSP (gopls) pre-configured for the datadog-agent repository with build tags and performance flags",
55
"author": {
66
"name": "L\u00e9na\u00efc Huard",
@@ -14,7 +14,7 @@
1414
},
1515
"initializationOptions": {
1616
"build.buildFlags": [
17-
"-tags=cel,clusterchecks,consul,containerd,cri,crio,datadog.no_waf,docker,ec2,etcd,fargateprocess,grpcnotrace,jetson,jmx,kubeapiserver,kubelet,linux_bpf,ncm,netcgo,netgo,no_dynamic_plugins,npm,nvml,oracle,orchestrator,osusergo,otlp,pcap,podman,python,retrynotrace,seclmax,serverless,sharedlibrarycheck,systemd,systemprobechecks,test,trivy,trivy_no_javadb,zk,zlib,zstd",
17+
"-tags=cel,clusterchecks,consul,containerd,cri,crio,datadog.no_waf,docker,ec2,etcd,fargateprocess,grpcnotrace,jetson,jmx,kubeapiserver,kubelet,linux_bpf,ncm,netcgo,netgo,no_dynamic_plugins,npm,nvml,oracle,orchestrator,osusergo,otlp,pcap,podman,python,remove_all_sd,retrynotrace,seclmax,serverless,sharedlibrarycheck,systemd,systemprobechecks,test,trivy,trivy_no_javadb,zk,zlib,zstd",
1818
"-buildvcs=false"
1919
],
2020
"formatting.local": "github.com/DataDog/datadog-agent"

.claude/skills/create-pr/SKILL.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,34 @@ Create a pull request for the current branch following the Datadog Agent contrib
1010

1111
## Instructions
1212

13-
1. **Check the current branch** and ensure it's not `main`
13+
1. **Check the current branch**. If the current branch is `main` (or the default branch):
14+
- Check for uncommitted or staged changes (`git status`). If there are changes, create a new feature branch from the default branch (`git checkout -b <branch-name>`), stage the changes, commit, and push.
15+
- If there are no changes at all, stop and inform the user there is nothing to open a PR for.
1416
2. **Get the commits** on this branch compared to `main` using `git log main..HEAD`
1517
3. **Get the diff** using `git diff main..HEAD` to understand all changes
1618
4. **Read the PR template** from `.github/PULL_REQUEST_TEMPLATE.md`
17-
5. **Push the branch** to origin if needed
18-
6. **Open the PR**: By default, open as **Draft** using `gh pr create --draft`. If `$ARGUMENTS` contains `--real`, open as a regular (non-draft) PR instead (omit the `--draft` flag). Remove `--real` from `$ARGUMENTS` before processing remaining arguments as labels.
19-
7. **PR title**: Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) format, prefixed with the general area of change. Examples:
19+
5. **Codex review** (optional): Check if `codex` is installed (`command -v codex`). If it is, run a review against the default branch:
20+
```bash
21+
DEFAULT_BRANCH=$(git rev-parse --abbrev-ref origin/HEAD | sed 's|^origin/||')
22+
codex review --base "$DEFAULT_BRANCH"
23+
```
24+
Show the review output to the user. If codex is not installed, skip this step silently.
25+
6. **Push the branch** to origin if needed
26+
7. **Open the PR**: By default, open as **Draft** using `gh pr create --draft`. If `$ARGUMENTS` contains `--real`, open as a regular (non-draft) PR instead (omit the `--draft` flag). Remove `--real` from `$ARGUMENTS` before processing remaining arguments as labels.
27+
8. **PR title**: Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) format, prefixed with the general area of change. Examples:
2028
- `fix(e2e): Fix flaky diagnose test`
2129
- `feat(logs): Add new log pipeline`
2230
- `refactor(config): Simplify endpoint resolution`
23-
8. **Labels**: Choose appropriate labels (plus any additional labels passed as $ARGUMENTS):
31+
9. **Labels**: Choose appropriate labels (plus any additional labels passed as $ARGUMENTS):
2432
- If the PR only changes tests, docs, CI config, or developer tooling (no Agent binary code changes), use `changelog/no-changelog` and `qa/no-code-change`
2533
- If the PR changes Agent binary code and QA was done, use `qa/done`
2634
- If the PR changes Agent binary code, a reno release note is expected (remind the user)
2735
- Add `backport/<branch-name>` if the user asks for a backport
28-
9. **PR body**: Fill in the PR template sections:
36+
10. **PR body**: Fill in the PR template sections:
2937
- **What does this PR do?**: A clear description of what is changed. Must be readable independently, tying back to the changed code.
3038
- **Motivation**: A reason why the change is made. Point to an issue if applicable. Include drawbacks or tradeoffs if any.
3139
- **Describe how you validated your changes**: How you validated the change (tests added/run, benchmarks, manual testing). Only needed when testing included work not covered by test suites.
32-
- **Additional Notes**: Any extra context, links to predecessor PRs if part of a chain, notes that make code understanding easier.
40+
- **Additional Notes**: Any extra context, links to predecessor PRs if part of a chain, notes that make code understanding easier. **Only include this section if there is genuinely useful context to add** — omit it entirely rather than filling it with filler.
3341

3442
## PR Description Guidelines (from CONTRIBUTING.md)
3543

.ddqa/config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ github_team = "agent-metric-pipelines"
1818
github_labels = ["team/agent-metric-pipelines"]
1919
exclude_members = [""]
2020

21+
[teams."Agent Data Plane"]
22+
jira_project = "DADP"
23+
jira_issue_type = "Task"
24+
jira_statuses = ["To Do", "In Progress", "Done"]
25+
github_team = "agent-data-plane"
26+
github_labels = ["team/agent-data-plane"]
27+
exclude_members = [""]
28+
2129
[teams."Agent Runtimes"]
2230
jira_project = "AGENTRUN"
2331
jira_issue_type = "QA"

.devcontainer/datadog/default/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This devcontainer directs workspaces to use a pre-built image. To make
1+
// This devcontainer directs workspaces to use a pre-built image. To make
22
// configuration changes, edit prebuild-devcontainer.json in this folder instead
33
{
44
"image": "registry.ddbuild.io/workspaces/prebuilt/datadog-agent@sha256:d18c23b7116fc84c9c7b04906c34df25b32dfd02f79df1e510e52dd65b19476e"

.devcontainer/datadog/default/features/datadog-agent/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ install -m 755 "$featureDir/lifecycle/postCreate.sh" /opt/doghome/devcontainer/f
1616
# File name convention *-workspace-env.sh is important:
1717
# /etc/zsh/zshenv sources these files.
1818
cat > /etc/profile.d/10-ddagent-workspace-env.sh << 'EOF'
19-
export PATH="/usr/local/go/bin:$PATH"
20-
export PATH="$HOME/go/bin:$PATH"
19+
export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"
2120
EOF

.github/CODEOWNERS

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@
583583
/pkg/procmgr/ @DataDog/agent-runtimes
584584
/pkg/procmgr/rust/src/platform/windows.rs @DataDog/agent-runtimes @DataDog/windows-products
585585
/pkg/procmgr/rust/src/transport/named_pipe.rs @DataDog/agent-runtimes @DataDog/windows-products
586-
/pkg/procmgr/rust/src/bins/dd-procmgr-service.rs @DataDog/agent-runtimes @DataDog/windows-products
587586
/pkg/privateactionrunner/ @DataDog/action-platform
588587
/pkg/privateactionrunner/bundles/remoteaction/networks @DataDog/action-platform @Datadog/network-path
589588
/pkg/proto/ @DataDog/agent-runtimes
@@ -800,8 +799,7 @@
800799
/tasks/unit_tests/testdata/components_src/ @DataDog/agent-runtimes
801800
/tasks/unit_tests/testdata/collector/ @DataDog/opentelemetry-agent
802801
/tasks/unit_tests/experimental_gates_tests.py @DataDog/agent-build
803-
/tasks/unit_tests/static_quality_gates_tests.py @DataDog/agent-build
804-
/tasks/unit_tests/static_quality_gates_reporter_tests.py @DataDog/agent-build
802+
/tasks/unit_tests/static_quality_gates/ @DataDog/agent-build
805803
/tasks/installer.py @DataDog/fleet
806804
/tasks/host_profiler.py @DataDog/opentelemetry-agent @DataDog/profiling-full-host
807805
/test/ @DataDog/agent-devx

.github/workflows/backport-pr.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,24 @@ jobs:
1515
steps:
1616
- name: Get backport targets
1717
id: get-targets
18+
env:
19+
EVENT_ACTION: ${{ github.event.action }}
20+
EVENT_LABEL_NAME: ${{ github.event.label.name }}
21+
PR_LABEL_NAMES_JSON: ${{ toJson(github.event.pull_request.labels.*.name) }}
1822
run: |
1923
# For 'labeled' event, use just the added label
2024
# 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
25+
if [[ "$EVENT_ACTION" == "labeled" ]]; then
26+
if [[ "$EVENT_LABEL_NAME" =~ ^backport/([0-9]+\.[0-9]+\.x|main)$ ]]; then
27+
targets=$(jq -cn --arg label "$EVENT_LABEL_NAME" '[$label]')
28+
echo "targets=$targets" >> "$GITHUB_OUTPUT"
2429
else
25-
echo "targets=[]" >> $GITHUB_OUTPUT
30+
echo "targets=[]" >> "$GITHUB_OUTPUT"
2631
fi
2732
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
33+
# Extract all well-formed backport/* labels as JSON array
34+
targets=$(jq -c '[.[] | select(test("^backport/([0-9]+\\.[0-9]+\\.x|main)$"))]' <<< "$PR_LABEL_NAMES_JSON")
35+
echo "targets=$targets" >> "$GITHUB_OUTPUT"
3136
fi
3237
3338
backport:
@@ -46,10 +51,12 @@ jobs:
4651
steps:
4752
- name: Compute target branch
4853
id: target
54+
env:
55+
MATRIX_TARGET: ${{ matrix.target }}
4956
run: |
50-
target="${{ matrix.target }}"
57+
target="$MATRIX_TARGET"
5158
target_branch="${target/backport\//}"
52-
echo "target_branch=$target_branch" >> $GITHUB_OUTPUT
59+
echo "target_branch=$target_branch" >> "$GITHUB_OUTPUT"
5360
5461
- uses: DataDog/dd-octo-sts-action@96a25462dbcb10ebf0bfd6e2ccc917d2ab235b9a # v1.0.4
5562
id: octo-sts

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,6 @@ AUTO_JIRA.md
251251
# Devcontainer
252252
.devcontainer/
253253
!.devcontainer/datadog/default
254+
255+
# Ignoring compressed schema
256+
pkg/config/schema/compressed/*.zstd

.gitlab-ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,21 +268,21 @@ variables:
268268
# Build images versions
269269
# To use images from datadog-agent-buildimages dev branches, set the corresponding
270270
# SUFFIX variable to
271-
CI_IMAGE_BTF_GEN: v107034079-0ba6ff53
271+
CI_IMAGE_BTF_GEN: v109491709-17310930
272272
CI_IMAGE_BTF_GEN_SUFFIX: ""
273-
CI_IMAGE_DOCKER_X64: v107034079-0ba6ff53
273+
CI_IMAGE_DOCKER_X64: v109491709-17310930
274274
CI_IMAGE_DOCKER_X64_SUFFIX: ""
275-
CI_IMAGE_DOCKER_ARM64: v107034079-0ba6ff53
275+
CI_IMAGE_DOCKER_ARM64: v109491709-17310930
276276
CI_IMAGE_DOCKER_ARM64_SUFFIX: ""
277-
CI_IMAGE_GITLAB_AGENT_DEPLOY: v107034079-0ba6ff53
277+
CI_IMAGE_GITLAB_AGENT_DEPLOY: v109491709-17310930
278278
CI_IMAGE_GITLAB_AGENT_DEPLOY_SUFFIX: ""
279-
CI_IMAGE_LINUX: v107034079-0ba6ff53
279+
CI_IMAGE_LINUX: v109491709-17310930
280280
CI_IMAGE_LINUX_SUFFIX: ""
281-
CI_IMAGE_RPM_X64: v107034079-0ba6ff53
281+
CI_IMAGE_RPM_X64: v109491709-17310930
282282
CI_IMAGE_RPM_X64_SUFFIX: ""
283-
CI_IMAGE_RPM_ARM64: v107034079-0ba6ff53
283+
CI_IMAGE_RPM_ARM64: v109491709-17310930
284284
CI_IMAGE_RPM_ARM64_SUFFIX: ""
285-
CI_IMAGE_RPM_ARMHF: v107034079-0ba6ff53
285+
CI_IMAGE_RPM_ARMHF: v109491709-17310930
286286
CI_IMAGE_RPM_ARMHF_SUFFIX: ""
287287
CI_IMAGE_WIN_LTSC2022_X64: v107034079-0ba6ff53
288288
CI_IMAGE_WIN_LTSC2022_X64_SUFFIX: ""

0 commit comments

Comments
 (0)