Skip to content

Add CI build workflow for all samples; fix broken DistributedTracing sample#118

Merged
torosent merged 5 commits into
mainfrom
copilot/add-ci-build-test-samples
Feb 15, 2026
Merged

Add CI build workflow for all samples; fix broken DistributedTracing sample#118
torosent merged 5 commits into
mainfrom
copilot/add-ci-build-test-samples

Conversation

Copilot AI commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

No CI existed to catch sample build failures. The DistributedTracing sample was already broken.

CI Workflow (.github/workflows/build-samples.yml)

Four parallel jobs triggered on push/PR to main when samples/ changes:

  • .NET — Builds all 33 csproj files across DTS SDK, Durable Functions, and Scenarios. Sets up both .NET 8 (most samples) and .NET 10 preview (Aspire samples).
  • Java — Java 21 for 7 Gradle-based DTS SDK samples + Maven for DF HelloCities.
  • Pythonpip install for all 14 requirements.txt files + py_compile syntax check on every .py file.
  • JavaScriptnpm install / npm run build for DF HelloCities and the React frontend.

Fix: DistributedTracing sample

Two missing pieces prevented compilation:

  • Missing using System.Threading.Tasks; in Functions.cs (Task<T> return types)
  • Missing NuGet packages in .csproj that Program.cs already referenced:
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.2.0" />

Matches the pattern used by HelloCities, OrderProcessor, and other DF samples in the repo.

Cleanup

Removed a Java build artifact (target/classes/) that was previously committed despite being covered by .gitignore.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits February 15, 2026 04:45
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
Copilot AI changed the title [WIP] Add CI build and test for all samples in GitHub Actions Add CI build workflow for all samples; fix broken DistributedTracing sample Feb 15, 2026
Copilot AI requested a review from torosent February 15, 2026 04:55
@torosent
torosent marked this pull request as ready for review February 15, 2026 05:00
@torosent
torosent merged commit 10a9242 into main Feb 15, 2026
6 checks passed
@torosent
torosent deleted the copilot/add-ci-build-test-samples branch February 15, 2026 05:00
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.

2 participants