Commit a954625
committed
wa: fix cmk-agent-ctl path in integration test setup
winagt-test-integration has been failing since build 1645 with
ast.literal_eval('<<<wmi_cpuload:sep(124)>>>') -> SyntaxError
in test_check_mk_base. The real error is 30 lines earlier in the log:
Copy-Item: run_tests.ps1:278
| Cannot find path '...\checkout\requirements\rust\host\target\
| x86_64-pc-windows-msvc\release\cmk-agent-ctl.exe'
cmk-agent-ctl.exe never lands in the test root, the agent emits an empty
<<<cmk_agent_ctl_status:sep(0)>>> section, and CTL_STATUS_LINE -- a
hardcoded line index -- then points at the following section header.
Commit f236e9d reverted the copy source from $repo_root\target\... back
to $repo_root\requirements\rust\host\target\..., on the assumption that the
rust workspace revamp had only happened on master. It had not: 5499477
("ci: revamp workspaces for rust", cherry-pick of 1f54fbd) landed on
2.5.0 on 2026-03-12 and removed requirements/rust here too. Cargo writes to
$repo_root\target\x86_64-pc-windows-msvc\release, as the artifact upload in
the same build log confirms.
The wrong path went unnoticed for two months because stale build output from
before the revamp was still lying in the Jenkins workspaces -- git checkout
does not remove untracked artifacts. Build 1645 ran after agentbuild11's
workspace had been wiped ("Compiler version changed, cleaning stale PCH
files", full recompile), agentbuild1 followed at 1646.
Also add -ErrorAction Stop, matching every neighbouring Copy-Item, so a
missing controller fails at setup instead of degrading into an unrelated
SyntaxError, and guard _get_ctl_status_line so the shifted-output case
reports itself.
CMK-34214
Change-Id: I372970caae5702311538e699b7f475bdaa5bedb61 parent 974e743 commit a954625
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments