Add Cloud Agent development environment - #25
Draft
pmishchenko-ua wants to merge 1 commit into
Draft
Conversation
Pin the .NET 10 SDK via a repository Dockerfile and restore/build the solution on install so Cloud Agents can build and test the connector. Co-authored-by: Pavlo Mishchenko <pmishchenko-ua@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a repository-managed Cloud Agent development environment so the SingleStore .NET Connector can be built and tested in Cursor Cloud Agents out of the box.
.cursor/Dockerfile— pins the .NET 10 SDK (mcr.microsoft.com/dotnet/sdk:10.0), which CI targets (net10.0) and which can build every framework the connector multi-targets (net462/471/48,netstandard2.0/2.1,net6.0/8.0/9.0/10.0). Also installsgit,curl,ca-certificates, and the MySQL/MariaDB client used by the repo's integration-test helper scripts..cursor/environment.json— uses that Dockerfile and runsdotnet restore SingleStoreConnector.slnx && dotnet build -c Releaseon install to warm the build.Design notes
install. The install command is idempotent (a second run is a no-op incremental build).SideBySide,Conformance,NativeAot) require a running SingleStore server, which needs Docker plus aLICENSE_KEYsecret — that remains a follow-up (documented below) rather than a hard dependency of the environment.Validation
All performed in the Cloud Agent VM.
docker buildof.cursor/Dockerfileinstallcommand inside the image (clean checkout)dotnet build -c Release(host)SingleStoreConnector.Tests, net10.0, CI mode)dotnet format whitespace --verify-no-changesThe end-to-end flow was exercised with a small console app built against the connector, run against a live MySQL-protocol server (MariaDB), performing a real create/insert/read cycle.
Follow-up (optional)
To run the SingleStore integration suites (
SideBySide,Conformance,NativeAot) in the environment, aLICENSE_KEYsecret and a Dockerized SingleStore dev server would need to be wired in. Happy to add this if desired.