Use wen dem ask you to validate, test, smoke-test, or run di course notebook and code samples against live Microsoft Foundry / Azure OpenAI configuration. E cov
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-testing-course-samples-074c5a3eb556 ,按照其中的说明把「testing-course-samples」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Make sure say di lesson notebooks and code samples dey run well well for one live
Microsoft Foundry / Azure OpenAI setup. Di repo get one runner wey dey for
scripts/validate-notebooks.ps1 wey
dey run every Python notebook without display and e go show PASS/FAIL matrix.
No use am for di AI Smoke Test GitHub Action (wey dey check deployed
hosted agents — see tests/README.md). Dis skill
dey run di notebooks for local machine.
python -m pip install -r requirements.txt
plus di executor: python -m pip install nbconvert ipykernel..env for di root of di repo (copy am from .env.example) with at least:
AZURE_AI_PROJECT_ENDPOINT — Foundry project endpoint
(https://<account>.services.ai.azure.com/api/projects/<project>)AZURE_AI_MODEL_DEPLOYMENT_NAME — one deployment wey no old (e.g. gpt-5-mini)AZURE_OPENAI_ENDPOINT (https://<account>.openai.azure.com) and AZURE_OPENAI_DEPLOYMENT
for di lessons wey dey call Azure OpenAI directly (Lesson 06, 02-azure-openai, 14 handoff/human-loop).az login finish — di samples dey use AzureCliCredential (Entra ID, no need key).az cognitiveservices account deployment list -g <rg> -n <account> -o table.# All Python notebooks (no go include .NET, .venv, site-packages, translations, skill assets)
pwsh scripts/validate-notebooks.ps1
# One lesson, wit longer time wey e fit run per cell
pwsh scripts/validate-notebooks.ps1 -Filter '08-*' -Timeout 600
# Only show wetin go run (no dey run anything)
pwsh scripts/validate-notebooks.ps1 -List
# Clear interpreter (if `python` no dey for PATH, like Windows Store alias)
pwsh scripts/validate-notebooks.ps1 -Python "C:/path/to/python.exe"
Di script dey write di runs copy, per-notebook logs, and results.json go
$env:TEMP\aiab-nbval and e go exit with di number of failures.
Temporary failures (shared-subscription HTTP 429 rate limits, one-time
AzureCliCredential token wahala, or timeout) e go try again automatically
(-Retries, default 2, plus -RetryDelaySeconds backoff, default 20). If
one model deployment dey always 429, check di subscription's GlobalStandard
TPM quota (az cognitiveservices usage list -l <region>) — even if you raise one
deployment capacity e no go help if di subscription quota don finish.
PASS — di notebook run finish without any cell error.FAIL — di first *Error / *Exception line dey appear; open di right
log_*.txt for di output folder to see di full problem.-Timeout (per cell), so if one
human-in-the-loop cell jam, e go show StdinNotImplementedError instead of hang.| Lesson | Extra requirement |
|---|---|
| 05 Agentic RAG | Azure AI Search (AZURE_SEARCH_SERVICE_ENDPOINT, key) — get fallback way wey dey memory |
| 11 MCP / GitHub | GitHub MCP server + PAT |
| 13 memory (cognee) | cognee setup with one model provider |
| 15 browser-use | Playwright browsers installed (playwright install) + AZURE_OPENAI_CHAT_DEPLOYMENT_NAME |
| 17 local agent | Foundry Local runtime + Qwen model wey you don download (on-device, no cloud) |
*-dotnet-* notebooks | .NET Interactive kernel (no include by default; use -IncludeDotnet) |
Summarize am as PASS/FAIL table grouped by lesson. Separate real regressions
(code/config bugs wey need fix) from environment problems (missing Search/Foundry Local/PAT),
and talk about di failing log_*.txt for each real failure.
Disclaimer: Dis document don translate wit AI translation service Co-op Translator. Even tho we dey try make am correct, abeg make you know say automated translation fit get errors or mistakes. Di original document for dia own language na im be di correct source. For important info, make person wey sabi human translation do am. We no go responsible for any misunderstanding or wrong understanding wey fit happen because of dis translation.