From d7fd0b950febeafaf1db6e64b01c14a9cadd72b6 Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Wed, 18 Nov 2026 13:33:20 +0100 Subject: [PATCH 1/4] Get the hg 3 client tests running on .NET 11 The hg 3 lane loads Chorus 5.2, a .NET Framework library, on .NET 11: - Its resumable transport saves state with BinaryFormatter, which .NET 9 removed. Add the compat package and enable it for that lane only. - On Windows it reads hg's exit code before hg exits ("Process must exit before requested information can be determined") on every hg command. That's inside Chorus, so drop the Windows hg 3 lane; Linux hg 3 still covers the server side. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-pipeline.yaml | 3 ++- backend/Directory.Packages.props | 1 + backend/HgClientTests/HgClientTests.csproj | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-pipeline.yaml b/.github/workflows/release-pipeline.yaml index 73aa45b97a..8ec4ce23c0 100644 --- a/.github/workflows/release-pipeline.yaml +++ b/.github/workflows/release-pipeline.yaml @@ -117,7 +117,8 @@ jobs: - { hg-version: '3', runs-on: ubuntu-24.04 } - { hg-version: '6', runs-on: ubuntu-24.04 } - { hg-version: '7', runs-on: ubuntu-latest } - - { hg-version: '3', runs-on: windows-latest } + # No Windows hg 3: on .NET 11 its Chorus 5.2 reads hg's exit code before hg exits + # ("Process must exit before requested information can be determined"). Real hg 3 users run it on .NET Framework. - { hg-version: '6', runs-on: windows-latest } - { hg-version: '7', runs-on: windows-latest } permissions: diff --git a/backend/Directory.Packages.props b/backend/Directory.Packages.props index 6e1b751d8c..66950870c5 100644 --- a/backend/Directory.Packages.props +++ b/backend/Directory.Packages.props @@ -131,6 +131,7 @@ + diff --git a/backend/HgClientTests/HgClientTests.csproj b/backend/HgClientTests/HgClientTests.csproj index 2a6234b8d5..dfa16a65f4 100644 --- a/backend/HgClientTests/HgClientTests.csproj +++ b/backend/HgClientTests/HgClientTests.csproj @@ -36,7 +36,12 @@ + + + + true + From a6d193cd7d6e5e0c413f3d180a21f197516455ea Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Wed, 18 Nov 2026 13:38:55 +0100 Subject: [PATCH 2/4] Test hg 3 clients with FLEx Bridge 4.3's Chorus Supersedes the previous commit, whose BinaryFormatter shim and dropped Windows lane are reverted. Chorus 6.0.0-beta0063 already runs on .NET 11 (the hg 6 lane passes on Linux and Windows) and predates the zstd-v2 bundles hg 3 can't read, so the hg 3 lane keeps both OSes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-pipeline.yaml | 3 +-- backend/Directory.Packages.props | 1 - backend/HgClientTests/HgClientTests.csproj | 13 +++++-------- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-pipeline.yaml b/.github/workflows/release-pipeline.yaml index 8ec4ce23c0..73aa45b97a 100644 --- a/.github/workflows/release-pipeline.yaml +++ b/.github/workflows/release-pipeline.yaml @@ -117,8 +117,7 @@ jobs: - { hg-version: '3', runs-on: ubuntu-24.04 } - { hg-version: '6', runs-on: ubuntu-24.04 } - { hg-version: '7', runs-on: ubuntu-latest } - # No Windows hg 3: on .NET 11 its Chorus 5.2 reads hg's exit code before hg exits - # ("Process must exit before requested information can be determined"). Real hg 3 users run it on .NET Framework. + - { hg-version: '3', runs-on: windows-latest } - { hg-version: '6', runs-on: windows-latest } - { hg-version: '7', runs-on: windows-latest } permissions: diff --git a/backend/Directory.Packages.props b/backend/Directory.Packages.props index 66950870c5..6e1b751d8c 100644 --- a/backend/Directory.Packages.props +++ b/backend/Directory.Packages.props @@ -131,7 +131,6 @@ - diff --git a/backend/HgClientTests/HgClientTests.csproj b/backend/HgClientTests/HgClientTests.csproj index dfa16a65f4..8106dc0f59 100644 --- a/backend/HgClientTests/HgClientTests.csproj +++ b/backend/HgClientTests/HgClientTests.csproj @@ -30,18 +30,15 @@ - + - - + + - - - - true - From 13e2bbe56776c922c92fbfbb16eb17cde4f6cd96 Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Wed, 18 Nov 2026 14:30:30 +0100 Subject: [PATCH 3/4] Test hg 3 with the Chorus it ran before the zstd bump 6.0.0-beta0074 with LfMergeBridge 4.3.0-beta0048 is what the hg 3 lane used until #2942; it is newer than FLEx Bridge 4.3's 6.0.0-beta0063 and still predates zstd-v2 bundles. Co-Authored-By: Claude Opus 5.5 --- backend/HgClientTests/HgClientTests.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/HgClientTests/HgClientTests.csproj b/backend/HgClientTests/HgClientTests.csproj index 8106dc0f59..9fbf54e04f 100644 --- a/backend/HgClientTests/HgClientTests.csproj +++ b/backend/HgClientTests/HgClientTests.csproj @@ -31,12 +31,12 @@ + exit code before hg exits). Use the backend's Chorus from before it started bundling with zstd-v2, which hg 3 + can't read (sillsdev/chorus#398). --> - + From 05fe44fd6196b0c213014c6efc6c1e83495324fd Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Wed, 18 Nov 2026 14:45:06 +0100 Subject: [PATCH 4/4] Test hg 3 with the same Chorus as hg 6 Co-Authored-By: Claude Opus 5.5 --- backend/HgClientTests/HgClientTests.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/HgClientTests/HgClientTests.csproj b/backend/HgClientTests/HgClientTests.csproj index 9fbf54e04f..df7d731ef1 100644 --- a/backend/HgClientTests/HgClientTests.csproj +++ b/backend/HgClientTests/HgClientTests.csproj @@ -31,12 +31,12 @@ + exit code before hg exits). Use FLEx Bridge 4.3's, as hg 6 does: it predates the zstd-v2 bundles hg 3 can't + read (sillsdev/chorus#398). --> - +