workshop-testing
Skill59 starsChanged 4 months agoMITView on GitHub
Walk through the .NET AI Workshop as an attendee to validate that the READMEs, commands, and code snapshots still work. USE FOR: testing the workshop, testing a specific Part, dry-running the labs, verifying a README against its snapshot, reconciling or refreshing code snapshots, producing a workshop test report. DO NOT USE FOR: authoring new workshop content, general repo edits, or fixing a single build error (just fix it directly).
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- dependency-update-reviewSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Always scaffold with
dotnet new: Never hand-author or copy a .csproj, and never use a committed snapshot as your working directory. - Distinctive: line 15
Ask, don't guess: If a step needs a value you don't have (subscription, endpoint, model name), ask the user.
- Very specific: line 56
Run tests/McpStructuredOutputTests from the repository root to exercise real tools/list and tools/call requests against both server …
- Very specific: line 63
Default to configuration-only testing: confirm AppHost.cs calls AddAzureSearch("search") and WithExternalHttpEndpoints(), confirm the web …
- Distinctive: line 69
Only run a real deployment if the user explicitly asks.
- Very specific: line 71
Use Push-Location with the absolute path to the Part 11 folder.
- Very specific: line 73
Use a unique environment name, e.g.
- Very specific: line 84
Before copying a working directory over a snapshot, strip bin/, obj/, .vs/, and TestResults/.
- Very specific: line 88
Write docs/testing/workshop-test-report-<YYYY-MM-DD>.md using report-template.md, and add it to the index in docs/README.md.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workshop Testing
Complete the workshop the way an attendee would - follow each Part N - */README.md literally, in a scratch directory - then reconcile what you produced against the committed snapshot and write a report.
Ground rules
- Follow the README, not this skill. The README is the artifact under test. If it is wrong or ambiguous, that is a finding, not something to silently work around.
- Always scaffold with
dotnet new. Never hand-author or copy a.csproj, and never use a committed snapshot as your working directory. The template workflow is part of what is being tested. - Work in
test-workspace/at the repo root (gitignored / delete when done). Never build inside the snapshot folders while testing. - Ask, don't guess. If a step needs a value you don't have (subscription, endpoint, model name), ask the user.
- Record every clarification you needed. Anything you had to infer is a documentation gap worth reporting.
Setup
.\.github\scripts\setup-workshop-credentials.ps1 -ApplyUserSecrets
dotnet --list-sdks # expect 10.0.9+
dotnet new install Microsoft.Extensions.AI.Templates
dotnet new mcpserver -h # built into .NET 10.0.9+ SDK
docker --version # only needed for Parts 4 and 11The script collects the WORKSHOP_* variables and, with -ApplyUserSecrets, writes the Foundry endpoint and key into the snapshot console projects (as AzureOpenAI:Endpoint / AzureOpenAI:Key), the local model settings into Part 9 if configured, and the composed ConnectionStrings:openai into the Part 11 AppHost. Add -Force if a key has been rotated since the last run.
Nothing in the workshop reads WORKSHOP_* directly. The console samples read user secrets (AzureOpenAI:Endpoint, AzureOpenAI:Key) and the Aspire app reads ConnectionStrings:openai. The script also configures a Part 4 app scaffolded at test-workspace/GenAiLab.
The samples hardcode the deployment names gpt-5-mini and text-embedding-3-small. If the test resource uses different names, that is a source edit in every part, not a config change.
Part-by-part
| Part | What to do | Snapshot to reconcile |
| 1 - Setup | Verify prerequisites and install steps actually work | - |
| 2 - Build Chat App | dotnet new console -n ChatApp, add packages and code per README. Run it: chat, streaming, structured output | Part 02 - Build Chat App/ChatApp/ |
| 3 - Add RAG | Continue from your Part 2 app (README says copy it). Verify retrieval answers from sample-docs/contoso-trailblazer-3000.md. Also check the two checkpoints/*.cs variants still compile against the described packages | Part 03 - Add RAG/RagChatApp/ |
| 4 - AI Web Chat Template | Scaffold with the exact command in the README (--provider azureopenai --vector-store qdrant --aspire --name GenAiLab). Run via GenAiLab.AppHost. Also sanity-check the documented Docker-free --vector-store local path | Compare shared app code with Part 11 - Deployment/GenAiLab/; expect Part 10's Azure AI Search substitutions |
| 5 - MCP Server Basics | Verify dotnet new mcpserver -n MyMcpServer (included in .NET 10.0.9+ SDK) and add WeatherTools per README. Keep the template's RandomNumberTools | Part 05 - MCP Server Basics/MyMcpServer/ |
| 6 - Enhanced MCP Server (bonus) | Exploration only - build and run the existing snapshot, review the README's business-integration guidance | Part 06 - Enhanced MCP Server/ContosoOrdersMcpServer/ |
| 7 - MCP Publishing (bonus) | Documentation review only. Do not publish anything | - |
| 8 - Agent Framework Basics | dotnet new console → AgentApp, add Microsoft.Agents.AI per README. Verify the agent runs and can call the Part 5 weather tool if the README wires that up | Part 08 - Agent Framework Basics/AgentApp/ |
| 9 - Adding AI to an Existing App | Follow the README in eShopLite-start/, then reconcile against the eShopLite/ answer key. The optional local-model step needs LocalModel:Endpoint / LocalModel:Model (Foundry Local or Ollama) in the Store project - note it as skipped if unavailable | Part 09 - Adding AI to an Existing App/eShopLite/ (answer key); Part 09 - Adding AI to an Existing App/eShopLite-start/ |
| 10 - Choosing Providers and Services | Apply the documented Azure AI Search package and registration changes to the Part 4 project. Verify Qdrant remains a usable fallback | Reconcile with Part 11 - Deployment/GenAiLab/ |
| 11 - Deployment | See below | Part 11 - Deployment/GenAiLab/ |
MCP server verification (Parts 5-6)
An MCP server is a stdio process - it starts and waits. Check:
dotnet buildsucceeds with no warnings.dotnet runwaits for protocol input; no terminal banner is required.- Run
tests/McpStructuredOutputTestsfrom the repository root to exercise realtools/listandtools/callrequests against both server snapshots. - Ctrl+C shuts a manually started server down cleanly.
- Optional: register it in
.vscode/mcp.jsonand confirm the tools appear in Copilot Chat.
Part 11 deployment
Default to configuration-only testing: confirm AppHost.cs calls
AddAzureSearch("search") and WithExternalHttpEndpoints(), confirm the web app
uses the Azure AI Search vector-store registrations, and build GenAiLab.sln in
Release. Note that azure.yaml and .azure/ are not committed - azd init
generates them, and .azure/ is gitignored.
Only run a real deployment if the user explicitly asks. If so:
- Use
Push-Locationwith the absolute path to the Part 11 folder; terminal cwd does not persist reliably across azd invocations. azd auth login --use-device-code, then interactiveazd up.--no-promptfails on the secure OpenAI connection-string parameter.- Use a unique environment name, e.g.
workshoptest-<timestamp>. - Provision takes roughly 7-12 minutes;
azd down --purge --forceis mandatory afterward and takes 20-25 minutes. Confirm the resource group is gone in the portal.
Reconciling snapshots
At the end of each code part, diff your working directory against the committed snapshot and classify each difference:
- Template drift (the template now emits different code) → update the snapshot, note the change.
- README gap (a step is missing, stale, or ambiguous) → record it as a finding; fix the README if the user asks.
- Your mistake → redo the step.
Before copying a working directory over a snapshot, strip bin/, obj/, .vs/, and TestResults/. Preserve Properties/launchSettings.json exactly for the Aspire projects - port drift breaks the Part 11 instructions. Then verify with dotnet clean; dotnet build -c Release.
Report
Write docs/testing/workshop-test-report-<YYYY-MM-DD>.md using report-template.md, and add it to the index in docs/README.md. Older reports live in docs/archive/testing/.
Known quirks
- Package versions drift between parts (
Microsoft.Extensions.AI,Microsoft.Agents.AI,Azure.AI.OpenAI). Flag inconsistencies in the report rather than unilaterally bumping them. - The MCP template's namespace style has changed between releases. The Part 5 snapshot uses
namespace MyMcpServer.Tools;, and the Part 6 snapshot usesnamespace ContosoOrdersMcpServer.Tools;; Part 7 is README-only. Note which style the current template emits. - Missing
--vector-store qdrantin Part 4 silently produces the local SQLite variant and prevents the intended Qdrant-to-Azure-AI-Search comparison in Part 10. - The AI Web Chat template ships
ChatInput.razor.jsandChatMessageList.razor.js(auto-resize and auto-scroll). They must survive into any snapshot update.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

