flaky-smoke-tests
БесплатноБез исполняемых скриптовНе проверенDiagnose intermittent VS Code Electron smoke-test failures from the Azure DevOps Flaky Smoke Tests pipeline (definition 700). Covers finding failed…
от posit-dev★ 4 361 звезда на GitHubОб этом скилле
Diagnosing Flaky Smoke Tests
Use this skill for failures from the Azure DevOps Flaky Smoke Tests pipeline:
- Organization:
https://dev.azure.com/monacotools - Project:
Monaco - Definition ID:
700 - Pipeline YAML:
build/azure-pipelines/product-smoke-flaky.yml - Scheduled runs: twice daily on
main
The pipeline builds VS Code from source and runs the complete Electron smoke suite once per entry in the iterations parameter. Each platform runs its iterations sequentially in one job. The exception is Windows unit and integration tests, which are each split into two parallel jobs: WindowsSmokeFlakyUnit_odd / WindowsSmokeFlakyIntegration_odd run the odd iterations and WindowsSmokeFlakyUnit_even / WindowsSmokeFlakyIntegration_even run the even ones. Each shard has its own artifacts (logs-windows-x64-<unit|integration>-<odd|even>-<attempt>) and its own Slack tally line.
Important Pipeline Behavior
- Each iteration is a separate timeline task named
Smoke test iteration <N>/<total> (Electron). - Iteration tasks use
continueOnError: true, so a failed iteration normally has resultsucceededWithIssuesand later iterations still run. - Do not infer smoke-test health from the overall build or job result. Inspect every iteration task.
- Logs are published once per platform job from the shared
.build/logsdirectory. The artifact is job-scoped, not iteration-scoped:smoke-test-runner.logcan contain multiple iterations, and suite directories are not separated by iteration. - Do not cancel a platform job while investigating if you still need its logs artifact. Cancellation can skip the publish steps entirely, even when one or more failed iteration task logs are already available. If a validation run has become predictably red, either let the current job finish or queue a single diagnostic iteration and let that job publish before iterating.
- Later iterations can overwrite or truncate files in the shared logs directory. The final artifact may therefore contain the last iteration's suite directory or runner log but not the failed iteration's detailed diagnostics. Preserve the exact task log, and use a one-iteration diagnostic run when extension-host, renderer, mock-server, screenshot, or trace evidence from the failed attempt is required.
- The exact iteration task log is authoritative for its failure summary and time range. Correlate that range with the job-level artifact.
- Iterations can see persisted smoke-test state from earlier iterations, such as historical session rows. Never assume the newest-looking row or a matching prompt belongs to the active conversation without verifying the active view.
Platform definitions and artifacts:
| Platform | Job | Logs artifact | Crash artifact |
|---|---|---|---|
| macOS arm64 | macOSSmokeFlaky |
logs-macos-arm64-smoke-<attempt> |
crash-dump-macos-arm64-smoke-<attempt> |
| Windows x64 | WindowsSmokeFlaky |
logs-windows-x64-smoke-<attempt> |
crash-dump-windows-x64-smoke-<attempt> |
| Linux x64 | LinuxSmokeFlaky |
logs-linux-x64-smoke-<attempt> |
crash-dump-linux-x64-smoke-<attempt> |
Prerequisites
Use Azure CLI rather than the browser:
az --version
az extension show --name azure-devops
az devops configure --defaults \
organization=https://dev.azure.com/monacotools \
project=Monaco
If authentication fails, run az login.
1. Confirm the Build and Source Revision
az pipelines build show \
--id <BUILD_ID> \
--org https://dev.azure.com/monacotools \
--project Monaco \
--query "{id:id,status:status,result:result,sourceBranch:sourceBranch,sourceVersion:sourceVersion,templateParameters:templateParameters}" \
--output json
Record sourceVersion. Investigate the exact code built by the pipeline, not the current working tree.
2. Find Failed Iterations
Download the build timeline:
az devops invoke \
--org https://dev.azure.com/monacotools \
--area build \
--resource timeline \
--route-parameters project=Monaco buildId=<BUILD_ID> \
--output json
Filter task records whose names contain Smoke test iteration. Treat succeededWithIssues, failed, and tasks with error issues as failed iterations. Record:
- task
id - parent job
id - task
name startTimeandfinishTimelog.idissues
If the user supplied an Azure log URL, its j= value is the job ID and its t= value is the task ID. Query those records directly:
az devops invoke \
--org https://dev.azure.com/monacotools \
--area build \
--resource timeline \
--route-parameters project=Monaco buildId=<BUILD_ID> \
--query "records[?id=='<JOB_OR_TASK_ID>'].{id:id,parentId:parentId,name:name,type:type,state:state,result:result,logId:log.id,startTime:startTime,finishTime:finishTime,issues:issues}" \
--output json
3. Download the Exact Iteration Task Log
Use timeline record log.id. The correct REST resource is logs, not buildLog:
az devops invoke
Установить flaky-smoke-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл flaky-smoke-tests?
Diagnose intermittent VS Code Electron smoke-test failures from the Azure DevOps Flaky Smoke Tests pipeline (definition 700). Covers finding failed iterations, downloading task logs and platform artifacts with Azure CLI, correlating cumulative runner logs, tracing the introducing commit, and queueing focused validation runs.
Как установить скилл flaky-smoke-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flaky-smoke-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic