Skip to content

[SCAL-322686] Add C# SDK sanity and registry checks - #493

Open
prathum-pandey-ts wants to merge 1 commit into
releasefrom
scal-322686-sdk-sanity-checks
Open

prathum-pandey-ts wants to merge 1 commit into
releasefrom
scal-322686-sdk-sanity-checks

Conversation

@prathum-pandey-ts

@prathum-pandey-ts prathum-pandey-ts commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds two GitHub Actions checks that install the C# SDK the way a customer does and compile and run a small program against it. Today nothing does this: the Jenkins image that generates the SDKs has no dotnet, so the C# SDK is first compiled inside the NuGet publish workflow, after the code is already on release, and nothing checks nuget.org after publishing.

Changes

  • csharp-sdk-sanity.yml runs on PRs to release and on pushes to version branches that change sdks/csharp/. It packs the SDK, installs the packed .nupkg into a new console project, and compiles and runs .github/csharp-sdk-smoke/Program.cs.
  • csharp-sdk-registry-check.yml runs daily, after the "Publish C# SDK to NuGet" workflow succeeds, and on demand (optional ref and version inputs). It confirms the branch's SDK version is on nuget.org, waiting up to 15 minutes after a publish for NuGet indexing. It then installs that version from nuget.org and runs the same program. The run page shows a one-row result table.
  • .github/scripts/csharp-sdk-smoke.sh is the shared script, with three modes: version, local and registry. Each run uses a private NuGet package cache, so a cached copy can't stand in for the feed. The program must print the expected SDK version, so a pass proves the right package was loaded.
  • The program builds UsersApi from an ApiClientConfiguration and creates a SearchUsersRequest. It makes no network call.
  • No existing workflow is changed. No other SDK is affected.

@prathum-pandey-ts
prathum-pandey-ts requested a review from a team as a code owner October 26, 2026 17:53
@codesandbox

codesandbox Bot commented Oct 26, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web Editor • VS Code • Insiders

Open Preview

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
rest-api-sdk Ready Ready Preview Oct 26, 2026 6:31pm UTC

Request Review

Nothing checked that a published C# SDK version could be installed from
nuget.org. Publishing runs from the manual NuGet workflow, after the
Jenkins generation pipeline has finished, so this check lives here.

The check runs daily, after the "Publish C# SDK to NuGet" workflow
succeeds, and on demand. It confirms the branch's C# SDK version is on
nuget.org, waiting up to 15 minutes after a publish for indexing. It then
installs that version into a new console project and compiles and runs a
small program that builds UsersApi and a SearchUsersRequest.

The build-and-pack sanity check runs in the Jenkins generation pipeline
instead, before the SDK is pushed to this repo.

This branch was successfully deployed

1 active deployment
Preview – rest-api-sdk — 88845ccf Deployed Oct 26, 2026 by vercel[bot]
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.

1 participant