Skip to content

Commit 98a223d

Browse files
feat(procmgr): supervise process-agent on Windows via dd-procmgr (split PR 4/4)
Wire dual-mode agent startup, fleet processes.d install for process-agent, dd-procmgr-service LocalSystem credentials, and Windows E2E coverage. Completes the process-agent migration off legacy SCM when procmgr owns supervision.
1 parent b3175a7 commit 98a223d

30 files changed

Lines changed: 1154 additions & 215 deletions

cmd/agent/subcommands/run/BUILD.bazel

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ go_library(
290290
"//comp/trace/etwtracer/fx",
291291
"//pkg/config/model",
292292
"//pkg/util/winutil",
293+
"@org_golang_x_sys//windows/svc",
293294
],
294295
"//conditions:default": [],
295296
}),
@@ -300,6 +301,7 @@ dd_agent_go_test(
300301
srcs = [
301302
"command_test.go",
302303
"command_windows_test.go",
304+
"dependent_services_windows_test.go",
303305
],
304306
embed = [":run"],
305307
deps = [
@@ -308,5 +310,12 @@ dd_agent_go_test(
308310
"//comp/core/pid/impl",
309311
"//pkg/util/fxutil",
310312
"@com_github_stretchr_testify//require",
311-
],
313+
] + select({
314+
"@rules_go//go/platform:windows": [
315+
"//pkg/config/mock",
316+
"//pkg/config/model",
317+
"@com_github_stretchr_testify//assert",
318+
],
319+
"//conditions:default": [],
320+
}),
312321
)

0 commit comments

Comments
 (0)