Skip to content

acc: make $TESTDIR use forward slashes on all platforms - #6310

Merged
pavloKozlov merged 1 commit into
mainfrom
acc-testdir-forward-slashes
Aug 18, 2026
Merged

acc: make $TESTDIR use forward slashes on all platforms#6310
pavloKozlov merged 1 commit into
mainfrom
acc-testdir-forward-slashes

Conversation

@pavloKozlov

@pavloKozlov pavloKozlov commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Changes

Normalize the TESTDIR env var in the acceptance harness with filepath.ToSlash, so paths built from $TESTDIR (e.g. the diff.py invocation echoed in trace output) use forward slashes on every OS.

The other backslash replacements across the suite address paths emitted by the CLI itself (bundle roots, sync paths, artifact globs) and are left in place.

Why

Follow-up to review feedback from @denik on #6293: rather than papering over the Windows backslashes with a per-test replacement, fix it at the source where the path is produced. This matches the repo rule "Always output file paths with forward slashes, even on Windows. Use filepath.ToSlash."

The [TESTROOT] replacement already registers both slash forms on Windows (SetPathNoEval), so the forward-slash TESTDIR prefix is still collapsed to [TESTROOT] — no golden changes.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 029ae23

Run: 32149072980

Env 🟨​KNOWN 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
🟨​ aws linux 1 2 1 4 286 1152 8:33
🟨​ aws windows 2 1 1 4 288 1150 7:46
🟨​ azure linux 3 1 4 285 1152 9:00
🟨​ azure windows 3 1 4 287 1150 7:41
💚​ gcp linux 1 5 286 1152 7:38
💚​ gcp windows 1 5 288 1150 7:14
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo 🔄​f 🟨​K 🟨​K 🟨​K 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo/root 🔄​f 🟨​K 🟨​K 🟨​K
🟨​ TestFetchRepositoryInfoAPI_FromRepo/subdir 🟨​K 🔄​f 🟨​K 🟨​K
Top 6 slowest tests (at least 2 minutes):
duration env testname
5:57 aws windows TestAccept
5:44 gcp windows TestAccept
5:36 azure windows TestAccept
3:54 gcp linux TestAccept
3:54 azure linux TestAccept
3:47 aws linux TestAccept

Normalize the TESTDIR env var with filepath.ToSlash so paths built from it
(e.g. the diff.py invocation echoed in trace output) are stable across OSes.
Previously TESTDIR carried Windows backslashes, so a test echoing it needed a
per-test `\\`->`/` replacement in test.toml.

Remove that now-redundant replacement from default-sql-catalog-dash, whose only
purpose was normalizing the TESTDIR path. Other backslash replacements in the
suite address paths emitted by the CLI itself and stay.

Follow-up to review feedback on #6293.

Co-authored-by: Isaac
@pavloKozlov
pavloKozlov force-pushed the acc-testdir-forward-slashes branch from 42b85b1 to 029ae23 Compare August 18, 2026 14:32
@pavloKozlov
pavloKozlov added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit 78cfa54 Aug 18, 2026
25 checks passed
@pavloKozlov
pavloKozlov deleted the acc-testdir-forward-slashes branch August 18, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants