OpenParable
Skip to content
← Back to skills

Validate No-AVX tests

Testing & Quality

Validate No-AVX tests is an Agent Skill for testing & quality published in the sandrohanea/whisper.net repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when changing CPU NoAvx runtime loading, package imports, or tests that must run without AVX.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/sandrohanea/whisper.net/blob/HEAD/.github/skills/validate-noavx-tests/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/validate-no-avx-tests, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Validate No-AVX tests

Use this skill for changes involving CpuNoAvx, Whisper.net.Runtime.NoAvx, USE_WHISPER_NOAVX_TESTS, or the no-AVX CI workflow.

Important behavior

Setting USE_WHISPER_NOAVX_TESTS=true changes which runtime targets are imported by the demo, test project, and dependency checker. It should be used only for no-AVX validation.

Workflow

From the repository root with no-AVX runtime artifacts available under runtimes/:

$env:USE_WHISPER_NOAVX_TESTS = "true"
dotnet restore .\Whisper.net.slnx
dotnet build .\Whisper.net.slnx --no-restore -warnaserror
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj -- CpuNoAvx
dotnet test .\Whisper.net.slnx --no-build --logger "trx"
Remove-Item Env:\USE_WHISPER_NOAVX_TESTS

If no-AVX native artifacts are not present and the task changed native no-AVX outputs, use the Change native runtimes skill to build or obtain matching artifacts instead of using the preview native libs shortcut.

Files to inspect

  • .github/workflows/dotnet-noavx.yml
  • .github/workflows/linux-noavx-native-build.yml
  • .github/workflows/windows-noavx-native-build.yml
  • runtimes/Whisper.net.Runtime.NoAvx.nuspec
  • runtimes/Whisper.net.Runtime.NoAvx/Whisper.net.Runtime.NoAvx.targets
  • Whisper.net/LibraryLoader/NativeLibraryLoader.cs
  • tools/WhisperNetDependencyChecker/Program.cs