maui helix-device-tests.instructions.md

maui helix-device-tests.instructions.md is an instructions file for GitHub Copilot from dotnet/maui. It costs 2,246 tokens per session, scanned A, original, MIT.

Guidance for running .NET MAUI device tests on Helix, Microsoft's cloud testing system, with XHarness across iOS, Mac Catalyst, and Android devices or simulators.

In plain words
What is it for?
Use it to configure or troubleshoot Helix device-test jobs, choose platform queues, split iOS tests, inspect retries, and work with the pipeline configuration.
Why use it?
It explains which test projects, build settings, queues, and retry behavior are involved when tests run outside a developer's machine.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dotnet/maui/helix-device-tests
Clone the repo
git clone --depth 1 https://github.com/dotnet/maui

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maui helix-device-tests.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dotnet/maui/helix-device-tests.svg)](https://agentmods.dev/instructions/dotnet/maui/helix-device-tests)
Your own site
<a href="https://agentmods.dev/instructions/dotnet/maui/helix-device-tests"><img src="https://agentmods.dev/badge/instructions/dotnet/maui/helix-device-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,246 This file is loaded in full into every session.
When invoked 2,246 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02246 $0.02246
Opus 5 $0.01123 $0.01123
Sonnet 5 $0.00449 $0.00449
Haiku 4.5 $0.00225 $0.00225

Measured 4d ago against content hash 22c720f14e28, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

maui helix-device-tests.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/helix-device-tests.instructions.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Helix Device Tests Guidelines

This document provides guidance for working with .NET MAUI device tests that run on Helix infrastructure using XHarness.

Overview

.NET MAUI uses .NET Engineering Services Helix with XHarness to run device tests across multiple platforms in parallel. This provides cloud-based device testing infrastructure.

Device Test Projects

  • Controls.DeviceTests - UI control tests
  • Core.DeviceTests - Core framework tests
  • Graphics.DeviceTests - Graphics and drawing tests
  • Essentials.DeviceTests - Platform API tests
  • MauiBlazorWebView.DeviceTests - Blazor WebView tests

Available Helix Queues

Current configuration uses:

  • iOS: osx.15.arm64.maui.open
  • Mac Catalyst: osx.15.arm64.maui.open
  • Android: ubuntu.2204.amd64.android.33.open

Check available queues at helix.dot.net.

Key Configuration Files

File Purpose
eng/helix_xharness.proj Main Helix configuration - defines scenarios, queues, and work items
eng/pipelines/common/stage-device-tests.yml Pipeline template for device tests
eng/test-configuration.json Test retry configuration

iOS Category Splitting

For iOS, Controls.DeviceTests heavy categories are split into separate Helix work items. This mirrors the old cake-based approach and enables parallel execution for the slowest tests.

How it works:

  1. Heavy categories are defined in ControlsTestCategoriesToSkipForRestOfTests property in helix_xharness.proj
  2. The ControlsTestCategoriesToRunIndividually ItemGroup is populated from that property
  3. Each heavy category becomes a separate Helix work item
  4. All other Controls tests run together in a single "General" work item
  5. XHarness passes --set-env="TestFilter=Category=X" for individual categories
  6. XHarness passes --set-env="TestFilter=SkipCategories=X;Y;Z" for the "General" work item
  7. Core.DeviceTests runs as a single work item (no splitting)

Read the full file on GitHub · 214 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 214 lines · 2,246 tokens per session scan A 22c720f14e28

Subscribe to this mod's changes

maui helix-device-tests.instructions.md is an instructions file published in the GitHub repository dotnet/maui (23,317 stars, last pushed 4d ago), licensed MIT. It adds 2,246 tokens to every session, about $0.0112 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

azure-sdk-for-net AGENTS.md

AGENTS.md instructions for Azure/azure-sdk-for-net, covering azure sdk for .net - ai agent guidelines, repository overview, purpose and scope, repository structure and agent interaction guidelines.

Azure/azure-sdk-for-net · 2,836 tokens

azure-sdk-for-net copilot-instructions.md

Copilot instructions for Azure/azure-sdk-for-net, covering project overview, prerequisites, folder structure, azure generator and azure management generator.

Azure/azure-sdk-for-net · 738 tokens

BlazorBindings.Maui AGENTS.md

AGENTS.md instructions for Dreamescaper/BlazorBindings.Maui, covering mobile guidelines, platform, razor and component conventions and blazor bindings generation.

Dreamescaper/BlazorBindings.Maui · 688 tokens

Maestro AGENTS.md

Instructions for mobile-dev-inc/Maestro, covering agents.md — maestro, module map, e2e test fixtures (e2e/), passing/ vs failing/ suites and test-e2e.yaml workflow contract.

mobile-dev-inc/Maestro · 3,171 tokens

ios-simulator-skill CLAUDE.md

Instructions for conorluddy/ios-simulator-skill, covering claude.md - developer guide, project overview, project structure, architecture patterns and pattern 1: class-based script design.

conorluddy/ios-simulator-skill · 2,315 tokens

android-qa-kit AGENTS.md

Instructions for willbytee-sudo/android-qa-kit, covering agents.md — setting up and driving an android device, 1. how to work with the user, 2. start by finding out what's already there, 3. what you can do in each mode and 4. if there's no device: ask first.

willbytee-sudo/android-qa-kit · 2,707 tokens