Skip to content

Commit 5558868

Browse files
committed
Merge branch 'main' into aiuto/ocln
2 parents 4c2c59c + 5dcbd30 commit 5558868

394 files changed

Lines changed: 11733 additions & 2731 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.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Create a pull request for the current branch following the Datadog Agent contrib
2222
DEFAULT_BRANCH=$(git rev-parse --abbrev-ref origin/HEAD | sed 's|^origin/||')
2323
codex review --base "$DEFAULT_BRANCH"
2424
```
25-
Show the review output to the user. If codex is not installed, skip this step silently.
25+
`codex review` is an LLM-based review and can take several minutes — do not bound it with a short Bash `timeout`, and do not let it get killed mid-run. Run it with `run_in_background: true` and wait for completion (or pass a generous `timeout`, e.g. the Bash tool max of 600000ms). If it's still running when you check back, keep waiting rather than treating it as done or skipping it, up to that 10-minute ceiling — if it still hasn't finished by then, note that to the user and proceed without it rather than stalling PR creation indefinitely. Show the review output to the user. If codex is not installed, skip this step silently.
2626
6. **Push the branch** to origin if needed
2727
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.
2828
8. **PR title**: Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) format, prefixed with the general area of change. Examples:

.agents/skills/locate-config-setting/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ dda inv -- schema.locate '.*proxy'
9797
## Related
9898

9999
- The task lives in `tasks/schema/locate.py` (registered in `tasks/schema/__init__.py`).
100-
- Schema source: `pkg/config/schema/yaml/`. To regenerate it, see `dda inv schema.generate`.
100+
- Schema source: `pkg/config/schema/yaml/`.
101101
- To **add** a new config field (not just locate one), use the `create-config-field` skill.

.bazelignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# inside of arm64 Linux containers.
77
bazel-datadog-agent/
88
bazel-testlogs/
9-
hard-coded-generation/
9+
hard-coded-generation

.cursor/rules/go_module_bazel_migration.mdc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ alwaysApply: false
1818
bazel test //path/to/module/...
1919
```
2020

21-
4. **Verify `//...`** still works after migration — intermediate BUILD files that reference external repos for local modules trigger the `bazelify_go_work` / `go_deps` `@rules_go` visibility bug.
21+
4. **Verify `//...`** still works after migration.
2222

2323
## Custom `//go:build` tags and `_GAZELLE_BUILD_TAGS`
2424

@@ -62,8 +62,8 @@ Proto source-only trees (`pkg/proto/datadog`, `pkg/proto/protodep`) still need `
6262

6363
## `gazelle:ignore` vs `gazelle:exclude`
6464

65-
- `gazelle:exclude` — stops Gazelle AND affects `bazelify_go_work` filtering of `go.work` entries for `go_deps`.
66-
- `gazelle:ignore` — only stops Gazelle from generating/updating targets in that directory. Safe for stub BUILD files at intermediate unmigrated packages.
65+
- `gazelle:exclude <pattern>` — a directory match stops Gazelle from recursing into it, whereas a file match excludes it from managed rules,
66+
- `gazelle:ignore` — stops Gazelle from modifying its containing BUILD.bazel file.
6767

6868
## Known issue: `go_deps` external repo `@rules_go` visibility
6969

.devcontainer/datadog/default/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"-v",
2222
"/sys/kernel/debug:/sys/kernel/debug",
2323
"-v",
24-
"/etc/os-release:/etc/os-release",
25-
],
24+
"/etc/os-release:/etc/os-release"
25+
]
2626
}

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@
445445
/comp/autoscaling/datadogclient @DataDog/container-integrations
446446
/comp/connectivitychecker @DataDog/fleet
447447
/comp/dataobs/queryactions @DataDog/data-observability
448+
/comp/dataplane/preflightmode @DataDog/agent-data-plane
448449
/comp/etw @DataDog/windows-products
449450
/comp/filterlist @DataDog/agent-metric-pipelines
450451
/comp/fleetstatus @DataDog/fleet
@@ -961,6 +962,7 @@
961962
/test/new-e2e/tests/agent-platform/common/agent_integration.go @DataDog/agent-integrations
962963
/test/new-e2e/tests/agent-platform/tests/macos* @DataDog/windows-products
963964
/test/new-e2e/tests/agent-runtimes @DataDog/agent-runtimes
965+
/test/new-e2e/tests/agent-data-plane @DataDog/agent-data-plane
964966
/test/new-e2e/tests/agent-configuration @DataDog/fleet-automation
965967
/test/new-e2e/tests/agent-health @DataDog/fleet-remediation
966968
/test/new-e2e/tests/agent-metric-pipelines @DataDog/agent-metric-pipelines

.github/workflows/upgrade-python-patch-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ jobs:
8989
### Describe how you validated your changes
9090
CI is considered enough to validate changes.
9191
team-reviewers: agent-integrations
92-
labels: team/agent-integrations,changelog/no-changelog,ask-review
92+
labels: team/agent-integrations,changelog/no-changelog

.gitlab-ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@
121121

122122
# E2E framework
123123
- test/e2e-framework/components/activedirectory/**/*
124+
- test/e2e-framework/components/os/scripts/setup-ssh.ps1
125+
- test/e2e-framework/components/os/windows*
126+
- test/e2e-framework/scenarios/aws/ec2/os_win.go
124127

125128
# Process manager
126129
.windows_path_4: &windows_path_4
@@ -307,9 +310,9 @@ variables:
307310
CI_IMAGE_RPM_ARM64_SUFFIX: ""
308311
CI_IMAGE_RPM_ARMHF: v126430166-27084be1
309312
CI_IMAGE_RPM_ARMHF_SUFFIX: ""
310-
CI_IMAGE_WIN_LTSC2022_X64: v126430166-27084be1
313+
CI_IMAGE_WIN_LTSC2022_X64: v127592905-6a747366
311314
CI_IMAGE_WIN_LTSC2022_X64_SUFFIX: ""
312-
CI_IMAGE_WIN_LTSC2025_X64: v126430166-27084be1
315+
CI_IMAGE_WIN_LTSC2025_X64: v127592905-6a747366
313316
CI_IMAGE_WIN_LTSC2025_X64_SUFFIX: ""
314317

315318
DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
@@ -1142,6 +1145,20 @@ workflow:
11421145
- pkg/discovery/**/*
11431146
compare_to: $COMPARE_TO_BRANCH
11441147

1148+
.on_adp_preflight_mode_or_e2e_changes:
1149+
- !reference [.on_e2e_main_release_or_rc]
1150+
- changes:
1151+
paths:
1152+
- comp/dataplane/preflightmode/**/*
1153+
- test/new-e2e/tests/agent-data-plane/**/*
1154+
# Preflight mode's eligibility gate lives in the config layer, not in the component:
1155+
# sanitizeDataPlaneConfig decides whether data_plane.enabled stays at its default
1156+
# source, which is what makes the pre-flight run at all.
1157+
- pkg/config/setup/config.go
1158+
# The pre-flight has nothing to run if ADP stops being packaged.
1159+
- deps/agent_data_plane/**/*
1160+
compare_to: $COMPARE_TO_BRANCH
1161+
11451162
.on_amp_or_e2e_changes:
11461163
- !reference [.on_e2e_main_release_or_rc]
11471164
- changes:

.gitlab/JOBOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ new-e2e-ndm-netflow* @DataDog/ndm-integrations
229229
new-e2e-ndm-snmp* @DataDog/network-device-monitoring-core
230230
new-e2e-ha-agent* @DataDog/network-device-monitoring-core
231231
# --- Pipelines (metrics / logs / traces) ---
232-
new-e2e-amp @DataDog/agent-metric-pipelines
232+
new-e2e-adp* @DataDog/agent-data-plane
233233
new-e2e-amp-adp @DataDog/agent-data-plane
234+
new-e2e-amp @DataDog/agent-metric-pipelines
234235
new-e2e-alp* @DataDog/agent-log-pipelines
235236
new-e2e-apm* @DataDog/agent-apm
236237
# --- Security ---

.gitlab/build/bazel/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bazel:coverage:linux-amd64:
3636
extends: [.bazel:test:reporting, .bazel:runner:linux-amd64, .bazel:test]
3737
script:
3838
- !reference [.bazel:test:reporting:ci_links]
39-
- bazel coverage --config=go --config=gorace --config=dd-agent-go-tests-only --jobs=$KUBERNETES_CPU_REQUEST --build_tests_only --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //...
39+
- bazel coverage --config=go --config=gorace --config=dd-agent-go-tests-only --jobs=$KUBERNETES_CPU_REQUEST --build_tests_only --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //... -- -//test/new-e2e/...
4040
after_script:
4141
- !reference [.bazel:test:reporting, after_script]
4242
- cp "$(bazel info output_path)/_coverage/_coverage_report.dat" "$CI_PROJECT_DIR/coverage-bazel-$CI_JOB_NAME_SLUG.out"
@@ -52,20 +52,20 @@ bazel:test:linux-amd64:
5252
extends: [.bazel:test:reporting, .bazel:runner:linux-amd64, .bazel:test]
5353
script:
5454
- !reference [.bazel:test:reporting:ci_links]
55-
- bazel test --config=gorace --jobs=$KUBERNETES_CPU_REQUEST --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //...
55+
- bazel test --config=gorace --jobs=$KUBERNETES_CPU_REQUEST --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //... -- -//test/new-e2e/...
5656

5757
bazel:test:linux-arm64:
5858
extends: [.bazel:test:reporting, .bazel:runner:linux-arm64, .bazel:test]
5959
script:
6060
- !reference [.bazel:test:reporting:ci_links]
61-
- bazel test --config=gorace --jobs=$KUBERNETES_CPU_REQUEST --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //...
61+
- bazel test --config=gorace --jobs=$KUBERNETES_CPU_REQUEST --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //... -- -//test/new-e2e/...
6262

6363
bazel:test:macos-amd64:
6464
extends: [.bazel:test:reporting, .bazel:runner:macos-amd64, .bazel:test]
6565
script:
6666
- !reference [.install_python_dependencies]
6767
- !reference [.bazel:test:reporting:ci_links]
68-
- bazel test --config=gorace --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //...
68+
- bazel test --config=gorace --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE //... -- -//test/new-e2e/...
6969
after_script:
7070
- !reference [.install_python_dependencies]
7171
- !reference [.bazel:test:reporting, after_script]
@@ -75,7 +75,7 @@ bazel:test:macos-arm64:
7575
script:
7676
- !reference [.install_python_dependencies]
7777
- !reference [.bazel:test:reporting:ci_links]
78-
- bazel test --config=gorace --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE --execution_log_compact_file=$CI_PROJECT_DIR/bazel-exec.log //...
78+
- bazel test --config=gorace --keep_going --remote_download_outputs=toplevel --build_event_json_file=$BEP_FILE --execution_log_compact_file=$CI_PROJECT_DIR/bazel-exec.log //... -- -//test/new-e2e/...
7979
after_script:
8080
- !reference [.install_python_dependencies]
8181
- !reference [.bazel:test:reporting, after_script]
@@ -94,13 +94,16 @@ bazel:test:windows-amd64:
9494
variables:
9595
POWERSHELL_SCRIPT: >-
9696
bazel test --config=gorace --config=no-dd-agent-go-tests --keep_going //... --
97+
-//test/new-e2e/...
9798
-//bazel/rules/dd_packaging/...
9899
-//packages/agent/linux/...
99100
100101
bazel:test:windows-amd64:go:
101102
extends: [.bazel:runner:windows-amd64, .bazel:test]
102103
variables:
103104
POWERSHELL_SCRIPT: >-
104-
bazel test --config=gorace --config=dd-agent-go-tests-only --build_tests_only --keep_going //... --
105+
bazel test --config=gorace --config=dd-agent-go-tests-only --build_tests_only --keep_going
106+
//... --
107+
-//test/new-e2e/...
105108
-//bazel/rules/dd_packaging/...
106109
-//packages/agent/linux/...

0 commit comments

Comments
 (0)