Repository navigation
test(targets): use platform-absolute user-root paths in tests - #3815
Merged
Daniel Meppiel (danielmeppiel) merged 1 commit intoNov 18, 2026
Merged
Conversation
#3782 rejects relative harness user-root values (decision E1). On Windows a POSIX literal such as "/custom/hermes" has no drive and is relative, so TestHermesConfigPath::test_hermes_home_override failed on the release Windows unit run. Build the values from a temp directory instead, fix the two other POSIX literals set for CLAUDE_CONFIG_DIR and COPILOT_HOME, and mark the three tests windows_compat so the PR-time Windows gate runs them. Refs #3745 Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 17, 2026 21:20
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the Windows portability updates to the three user-root tests.
No open issues 🎉
What changed in this PR
Repairs Windows portability in three user-root tests following #3782, without changing production behavior.
Changes:
- Replaces hard-coded POSIX paths with temporary-directory-based absolute paths.
- Adds
windows_compatmarkers to the three affected tests.
| File | Description |
|---|---|
| tests/unit/integration/test_scope_integration.py | Uses a portable CLAUDE_CONFIG_DIR path when checking project-scope isolation. |
| tests/unit/adapters/test_hermes_client_adapter.py | Uses a temporary directory for the HERMES_HOME override test. |
| tests/integration/test_canvas_integration.py | Uses a portable COPILOT_HOME path in the global canvas refusal test. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-t3-p3-win-user-root-tests
branch
November 18, 2026 02:51
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 18, 2026
Resolve tests/unit/adapters/test_hermes_client_adapter.py by keeping #3815's tmp_path-based, windows_compat HERMES_HOME override test; the #3749 Hermes tests keep their tmp_path fixture and windows_compat marks. Co-authored-by: Parth-Vasave <[email protected]> Co-authored-by: Copilot App <[email protected]>
Merged
3 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix-forward for a red
main. After #3782 merged, thebuild-releasepush runs 44174245387 (28e7450) and 44174467822 (59925cd) failed on the Windows x86_64 unit tests:The product behavior is correct. #3782 rejects relative harness user-root values (approved decision E1), and on Windows a POSIX literal such as
/custom/hermeshas no drive, so it is relative. The test was wrong: it hard-coded a POSIX-only absolute path.Changes (tests only):
tests/unit/adapters/test_hermes_client_adapter.py::TestHermesConfigPath::test_hermes_home_override: buildsHERMES_HOMEfrom a temp directory.COPILOT_HOME,CODEX_HOME,CLAUDE_CONFIG_DIRorHERMES_HOMEfor POSIX-literal values and fixed the other two the same way:tests/unit/integration/test_scope_integration.py::TestClaudeScopeResolution::test_project_scope_ignores_env_var(CLAUDE_CONFIG_DIR)tests/integration/test_canvas_integration.py::TestGlobalCanvasGuards::test_global_nondefault_copilot_home_refused(COPILOT_HOME)The remaining
~/...values are absolute afterexpanduseron every OS. All tests added by fix(targets): one owner for harness user roots; honor COPILOT_HOME (#3745) #3782 already build their paths fromtmp_path.@pytest.mark.windows_compat, so the PR-time Windows Compatibility Gate runs them.No CHANGELOG entry: this is a test-only change with no user-visible behavior.
Issue and approved scope
Issue: Refs #3745
Human scope-approval comment: #3745 (comment)
Does this PR complete the issue, or what remains? #3745 was completed by #3782. This PR only repairs the tests' Windows portability.
Type of change
Testing
uvx [email protected] check/format --checkonsrc/ tests/ scripts/lint_architecture_boundaries.py scripts/architecture_linter/ scripts/windows_native_symlink_probe_entry.pypytest -p no:xdist tests/unit/adapters/test_hermes_client_adapter.py tests/unit/integration/test_scope_integration.py tests/integration/test_canvas_integration.py(macOS)pytest -m windows_compat --coon the same filesFails before: the release runs above show the Windows failure at 28e7450 and 59925cd.
Spec conformance (OpenAPM v0.1)
docs/src/content/docs/specs/openapm-v0.1.mdupdated(new/changed
<a id="req-XXX"></a>anchor + prose + Appendix Crow).
docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.ymlupdated.
@pytest.mark.req("req-XXX")test undertests/spec_conformance/added or extended.CONFORMANCE.{md,json}regenerated viauv run --extra dev python -m tests.spec_conformance.gen_statementand committed.