Skip to content

Fix windows/linux CI and document release process - #141

Open
samhill303 wants to merge 11 commits into
mainfrom
sh/release-docs
Open

Fix windows/linux CI and document release process#141
samhill303 wants to merge 11 commits into
mainfrom
sh/release-docs

Conversation

@samhill303

@samhill303 samhill303 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

Establishes a release process with documentation and cleans up the workflows. Get windows and linux builds and tests working in CI

The three databasePathRemoves* tests fail on mingwX64. They were added in
f59c6b1 along with a mechanical port of the file:// handling to all three
File.kt copies, but the mingw tests have never run, so the port was never
checked against a Windows host.

mingw's File sets separatorChar to a back slash, and both fixSlashes and
join compared against it directly. Forward slashes were therefore not
separators: "//tmp//" collapsed to nothing, and join saw no trailing
separator and inserted one, so File("//tmp//", "testdb") produced
"//tmp//\testdb".

Windows accepts either slash direction, so treat both as separators and
normalize to separatorChar. Paths built from USERPROFILE are unaffected as
they already use back slashes; only inputs that previously produced mixed
garbage change.

fixSlashes also reused the original string whenever the length was
unchanged. That held when the only edits were collapsing and truncating,
but rewriting slashes in place keeps the length, so drop the shortcut and
always rebuild.

The tests asserted POSIX separators. Derive the expected separator from
Platform.osFamily so they assert the same normalization on every host.
@samhill303 samhill303 linked an issue Sep 3, 2026 that may be closed by this pull request
@samhill303 samhill303 changed the title Workflow cleanup and release doc Fix windows/linux CI and document release process Sep 3, 2026
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.

Fix windows and linux builds

1 participant