Skip to content

feat(csharp/client): DH-23198: Gradle support for testing C# client - #8295

Merged
kosak merged 2 commits into
deephaven:mainfrom
kosak:kosak_test-csharp-with-gradle
Aug 7, 2026
Merged

feat(csharp/client): DH-23198: Gradle support for testing C# client#8295
kosak merged 2 commits into
deephaven:mainfrom
kosak:kosak_test-csharp-with-gradle

Conversation

@kosak

@kosak kosak commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Mostly written by Claude, with me nagging now and then. Bugs and feature requests should be sent to claude@dev.null

@kosak kosak self-assigned this Jul 28, 2026
@kosak kosak added NoDocumentationNeeded NoReleaseNotesNeeded No release notes are needed. labels Jul 28, 2026
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

No docs changes detected for 4bd9bc8

@kosak
kosak requested a review from niloc132 July 29, 2026 01:25
niloc132
niloc132 previously approved these changes Jul 30, 2026
Comment thread csharp/client/build.gradle Outdated
Comment on lines +40 to +61
dockerfile {
from(Docker.localImageName('dotnet'))
environmentVariable 'DOTNET_CLI_TELEMETRY_OPTOUT', '1'
environmentVariable 'DOTNET_NOLOGO', '1'
// The SDK image only carries the net10.0 runtime; graft in the net8.0
// runtime from the (digest-pinned) official runtime image so that both
// target frameworks of the test project can execute.
copyFile(new Dockerfile.CopyFile(
'/usr/share/dotnet/shared/Microsoft.NETCore.App',
'/usr/share/dotnet/shared/Microsoft.NETCore.App/')
.withStage(Docker.localImageName('dotnet-runtime-8')))
workingDir('/project')
copyFile('.', '/project/')
runCommand('''set -eux; \\
mkdir /out; \\
dotnet restore /project/csharp/client/Dh_NetClientTests/Dh_NetClientTests.csproj; \\
dotnet build /project/csharp/client/Dh_NetClientTests/Dh_NetClientTests.csproj \\
-c Release --no-restore
''')
environmentVariable 'DH_HOST', deephavenDocker.containerName.get()
environmentVariable 'DH_PORT', '10000'
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it would be easier to read/maintain, this can also be written as a plain Dockerfile and we can reference it from here.

@kosak kosak Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, moved to separate Dockerfile. Also added a global.json file so that the thing is now invocable as "dotnet test"

@kosak
kosak force-pushed the kosak_test-csharp-with-gradle branch from 27268bb to 4bd9bc8 Compare August 7, 2026 20:29
@kosak
kosak enabled auto-merge (squash) August 7, 2026 21:03
@kosak
kosak merged commit c0dcdf1 into deephaven:main Aug 7, 2026
23 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants