fix: Windows-only test failures invisible to the Linux-only CI (tilde/canonicalize fixtures) #64
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#64
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?
Source: discovered running the full workspace suite on Windows (CI is Linux-only by design).
Symptom
These pass on Linux and FAIL on Windows, so the Linux-only CI never catches them:
code-index-cli/tests/link_tilde_e2e.rs:tilde_link_resolves_against_home_through_the_real_cli,link_add_accepts_a_tilde_path_and_list_resolves_itcode-index-indexer/config::tests::expand_tilde_formsRoot cause (test fixtures — the product is correct)
canonical_path(correctly\\?\-stripped bydisplay_path) against a rawPath::canonicalize(), which on Windows keeps the verbatim\\?\prefix.expand_tilde_formspassed a Unix home/home/u, which is NOT absolute on Windows, soexpand_tildecorrectly refused it (USERPROFILE-not-absolute).Fix (implemented, pending commit)
expand_tilde_forms: use a platform-absolute home (C:\home\uon Windows) and build expected paths viajoin.Follow-up worth considering
The Linux-only CI is blind to an entire class of Windows path bugs. A Windows CI job (even just
cargo teston a Windows runner) would catch these at the source rather than in manual dogfooding.