test(cli): no execution coverage for Windows PATH registration (AC4/AC5 rest on string assertions) #60
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#60
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from the round-5 review of #47 (comment). #47 states this caveat in its own body; this issue tracks closing it.
Problem
Every Windows assertion in
tests/test_cli_adapters.pyis a substring check against generated PowerShell text. Nothing runs it. The suite confirms the script saysDoNotExpandEnvironmentNames,ExpandString,0x001A; it cannot confirm the script works.Consequences already observed on this branch — each found by reading, not by a failing test:
bcfd1a4);;turned a trailing empty PATH element into an interior one (fixed in5240167).String assertions also pin shape, not behaviour: they pass just as happily on a script that is syntactically valid and semantically wrong.
Constraint
CI is
runs-on: native— a single Linux runner. There is no Windows execution path today, so this needs infrastructure, not just test code.Options
(3) and (2) compose well and could land first; (1) is the durable answer.
Acceptance
%SystemDrive%-style entries and a trailing;REG_EXPAND_SZconfirmed intact after both operations (reg querybefore/after)Related: #23, #47.
Triage resolution — 2026-09-23
Adopt portable behavioral tests for PATH transformation logic together with a
human-run Windows Server 2019 checklist. The user owns human validation; the
agent implementing the change prepares commands and an evidence template.
An automated Windows runner remains a separate infrastructure commitment.
Acceptance:
and unregistration, unexpanded variables, spaces and trailing separators.
Server 2019 execution in both normal and constrained-language modes.
unregistration, including
%SystemDrive%-style entries and a trailing;.REG_EXPAND_SZand unexpanded values remain intact, repeatedoperations are idempotent, and unrelated PATH entries are preserved.
behavior. Failures must not claim that registry writes succeeded.
Keep this issue
ready-for-human; portable tests and checklist preparation canbe delivered by the agent alongside #59.
gabogg referenced this issue2026-10-02 18:23:43 +00:00