ort-ci
Skill22k starsChanged 3 months agoMITView on GitHub
Trigger, re-run, and unblock ONNX Runtime CI checks on a GitHub pull request. Use this skill when a required check is stuck, missing, failed, or needs re-running. Nearly all ORT CI runs as GitHub Actions workflows; only the "Linux Android Emulator QNN CI Pipeline" remains on Azure Pipelines, plus the bot-driven "license/cla" and "Python format" lint checks. Triggers on: rerun CI, retrigger checks, stuck check, missing pipeline, failed CI, license/cla, Python format failure, Doc Gen CI failure, operator docs out of date, /azp run.
- Installs packages
- Commits and pushes
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/onnxruntime
- A Hacker News story“ONNX Runtime merges WebGPU backend”Hacker News · Apr 24, 2023 · 178 points
- immich-app/immich“feat(ml): introduce support of onnxruntime-rocm for AMD GPU”GitHub · Jul 12, 2024 · 28 reactions
- Unstructured-IO/unstructured“feat/numpy_2”GitHub · Oct 1, 2024 · 17 reactions
- microsoft/vcpkg“[onnxruntime] new ports for microsoft/onnxruntime v1.23.2”GitHub · Feb 19, 2024 · 17 reactions
- huggingface/transformers.js“Can GPU acceleration be used when using this library in a node.js environment?”GitHub · Feb 7, 2024 · 17 reactions
The biggest 5 of 39 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 39
Talked about on GitHub, Hacker News, Bluesky and the web (39 times).
On GitHub · 32
- Jul 12, 2024feat(ml): introduce support of onnxruntime-rocm for AMD GPU — immich-app/immich28 reactions · 58 comments
- Oct 1, 2024feat/numpy_2 — Unstructured-IO/unstructured17 reactions · 10 comments
- Feb 19, 2024[onnxruntime] new ports for microsoft/onnxruntime v1.23.2 — microsoft/vcpkg17 reactions · 80 comments
- Feb 7, 2024Can GPU acceleration be used when using this library in a node.js environment? — huggingface/transformers.js17 reactions · 6 comments
- Jan 21, 2024FAQ/GUIDE: I've figured out why CUDA isn't available in Insightface! — cubiq/ComfyUI_IPAdapter_plus17 reactions · 14 comments
27 more on GitHub
- Jan 8, 2020[request] some of most relevant c++ libraries in github (by number of stars) — conan-io/conan-center-index16 reactions · 132 comments
- Jun 18, 2024feat: add support for custom ai models | Pipeline API RFC — supabase/edge-runtime14 reactions · 18 comments
- Mar 16, 2021Add support for anchor tags — lycheeverse/lychee13 reactions · 39 comments
- May 14, 2024wanted: microsoft/onnxruntime — bazelbuild/bazel-central-registry11 reactions · 3 comments
- Mar 6, 2021[request] onnxruntime/1.7.1 — conan-io/conan-center-index11 reactions · 11 comments
- Nov 13, 2025Getting wrong .NET version — actions/setup-dotnet10 reactions · 18 comments
- May 8, 2025Enable Android 16 KB page size support — microsoft/onnxruntime-extensions9 reactions · 14 comments
- Apr 11, 2024Expose onnxruntime session options (intra_op_num_threads) — deepinsight/insightface9 reactions
- Sep 16, 2020Exporting the pytorch grid_sample operator to ONNX opset version 9 is not supported — pytorch/pytorch7 reactions · 1 comment
- Dec 29, 2023wasm does not work on node right now with multiple threads — huggingface/transformers.js6 reactions · 3 comments
- Mar 22, 2022Define layer normalization as a function — onnx/onnx6 reactions
- Dec 2, 2020[onnxruntime] Add new port — microsoft/vcpkg6 reactions · 28 comments
- Jul 28, 2026(partially) fix #23462: configure onnxruntime to stop VRAM usage from growing — immich-app/immich5 reactions · 4 comments
- Jul 23, 2024windows 10 installation tutorial (win10 安装教程) — warmshao/FasterLivePortrait5 reactions · 1 comment
- Nov 30, 2023[ROCm] TunableOp — pytorch/pytorch5 reactions · 31 comments
- Apr 15, 2025[DO NOT SUBMIT] Model cache POC — shiyi9801/chromium4 reactions · 2 comments
- Nov 19, 2024GafferML — GafferHQ/gaffer4 reactions · 3 comments
- Apr 15, 2026Add support for q1, q1f16, q2, q2f16 data types — huggingface/transformers.js3 reactions · 1 comment
- Dec 26, 2025onnx and onnxruntime bump versions (fixed onnx dependency with shared=True) — conan-io/conan-center-index3 reactions
- Nov 4, 2025python3Packages.rapidocr-onnxruntime: fix aarch64-linux build — NixOS/nixpkgs3 reactions · 7 comments
- Feb 26, 2025introduce "--webnn-ort-ov-gpu-precision" to specify gpu precision — shiyi9801/chromium3 reactions · 1 comment
- Feb 4, 2025Add: WASM Emscripten example — pykeio/ort3 reactions · 33 comments
- Feb 1, 2025Object mask — darktable-org/darktable3 reactions · 5 comments
- Sep 23, 2024C, C++, and Python API for Adapters (Multi-LoRA and others) — microsoft/onnxruntime-genai3 reactions
- Dec 12, 2023relax protobuf restriction — microsoft/onnxconverter-common3 reactions · 12 comments
- Apr 1, 2023onnxruntime: add 1.14.1 — conan-io/conan-center-index3 reactions · 36 comments
- Jan 14, 2022Add Col2Im operator — onnx/onnx3 reactions · 21 comments
On Hacker News · 5
- Apr 24, 2023ONNX Runtime merges WebGPU backend178 points · 35 comments
- Jan 19, 2020ONNX Runtime: cross-platform, high performance scoring engine for ML models8 points · 1 comment
- Sep 26, 2025ONNX Runtime v1.23.0 Released4 points
- Dec 11, 2020ONNX Runtime v1.6.0 Release1 point
- Oct 31, 2019Microsoft collects telemetry in onnxruntime Python module1 point
On Bluesky · 1
- Aug 22, 2026📦 microsoft / onnxruntime ⭐ 21,420 (+5) 🗒 C++ ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator — @github-trending.bsky.social1 likes and repost
On the web · 1
- Oct 21, 2026microsoft/onnxruntime - GitHub Explorer — ghe.derekchia.com
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- contrib-op-shape-inference-memory-safetySkill
- cuda-attention-kernel-patternsSkill
- cuda-cutlass-fmha-incremental-rebuildSkill
- onnx-opset-bump-checklistSkill
- ort-buildSkill
- ort-lintSkill
- ort-release-notesSkill
- ort-testSkill
- ort-transformers-gpu-pytestSkill
- python-kwargs-setattr-securitySkill
- webgpu-local-testingSkill
- workspace-estimation-shared-headerSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Failures are not all the same: Before touching anything, diagnose each failure (see Triage: Diagnose Before Re-running): most failures need …
- Distinctive: line 20
Before doing anything, inspect current state so you do not queue duplicate runs.
- Very specific: line 103
Only re-run when the log shows a network/disk/agent problem and no compile or assertion error.
- Distinctive: line 104
When unsure, download the log and read it.
- Distinctive: line 105
After any code, test, lint, or generated-file fix, commit and push it.
- Distinctive: line 147
When it is stuck as *"Expected — Waiting for status to be reported"*, re-trigger only the bot — no CI jobs are re-run — by posting this …
- Very specific: line 221
If the bot replies *"No pipelines are associated with this pull request"*, the pipeline is not wired to the comment app — use the direct …
- Very specific: line 226
Keep it to one batch /azp run comment per attempt.
- Very specific: line 293
Always --dry-run the rerun script before the real run.
- Distinctive: line 294
Do not re-run green checks or dispatch unrelated workflows.
- Very specific: line 295
Prefer PR merge refs (refs/pull/<number>/merge) over branch refs for external CI so the run validates the merge result.
- Very specific: line 297
Do not claim success until the provider returns a queued/in-progress/completed run ID or URL, or the check flips state in statusCheckRollup.
≈ “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
ONNX Runtime CI Management
Workflows for triggering, re-running, and unblocking CI checks on an ONNX Runtime PR.
The repository is microsoft/onnxruntime. As of 2026-07, nearly all CI runs as GitHub
Actions workflows (~80+ checks per PR). Only one required check still runs on Azure
Pipelines — Linux Android Emulator QNN CI Pipeline (host aiinfra.visualstudio.com).
There is also the bot-driven license/cla status check.
Failures are not all the same. Before touching anything, diagnose each failure (see Triage: Diagnose Before Re-running): most failures need a code change and re-running them just fails again; only genuinely transient (network/disk) failures should be re-run via §1. §4 (Azure Pipelines) applies only to the single QNN pipeline.
Before doing anything, inspect current state so you do not queue duplicate runs.
If you make any change, commit and push it, then stop. A push updates the PR head SHA and automatically starts CI for the new commit. Do not manually re-run failures from the old SHA after pushing a fix; that only queues redundant runs against stale code. Manual re-runs are only for transient failures when the PR head has not changed.
Classify a check's provider
GitHub Actions checks have a non-empty workflowName and a detailsUrl on github.com; the
Azure Pipelines check has an empty workflowName and a detailsUrl on aiinfra.visualstudio.com:
gh pr view <number> --repo microsoft/onnxruntime --json statusCheckRollup \
--jq '[.statusCheckRollup[] | {name, host:(.detailsUrl|split("/")[2])}]
| group_by(.host) | map({host:.[0].host, count:length})'Gather Context
# PR metadata + all checks grouped by state
gh pr view <number> --repo microsoft/onnxruntime \
--json number,title,url,state,isDraft,headRefName,headRefOid,baseRefName,statusCheckRollup
# Head / merge SHAs for external CI
gh api repos/microsoft/onnxruntime/pulls/<number> --jq '{head:.head.sha, merge:.merge_commit_sha}'Inspect statusCheckRollup and note, for each requested check, whether it is missing, queued,
in progress, failed, canceled, skipped, or already successful. Do not re-trigger a check
that is already queued/in_progress/SUCCESS unless the user explicitly asks.
Quickly list just the failed/pending checks:
gh pr view <number> --repo microsoft/onnxruntime --json statusCheckRollup \
--jq '.statusCheckRollup[]
| {name:(.name//.context), status:(.status//.state), conclusion:.conclusion}
| select(.conclusion!="SUCCESS" and .status!="SUCCESS")'Triage: Diagnose Before Re-running
Never blindly re-run failed CI. Most failures need a code change and will fail again identically on re-run. Only transient failures should be re-run. The process is: download the failed job's log, read the actual error, classify it, then fix or re-run case by case.
Step 1 — Download the failed log
For a GitHub Actions check (the vast majority), get the run and read only the failed steps:
HEAD_SHA=$(gh api repos/microsoft/onnxruntime/pulls/<number> --jq .head.sha)
# Map failed checks to their workflow run IDs
gh run list --repo microsoft/onnxruntime --commit "$HEAD_SHA" --limit 100 \
--json databaseId,workflowName,status,conclusion,url \
--jq '.[] | select(.conclusion=="failure" or .conclusion=="cancelled")' # cspell:ignore cancelled -- literal GitHub API value
# Dump just the failed steps of a run (grep for the real error)
gh run view <run_id> --repo microsoft/onnxruntime --log-failed > /tmp/ci_<run_id>.log
grep -nE "error:|FAILED|warning:|Traceback|fatal error|No space left|Could not resolve|timed out" \
/tmp/ci_<run_id>.log | head -50For the Azure Pipelines QNN check, open its detailsUrl (a dev.azure.com /
aiinfra.visualstudio.com build page) and download the job log, or use the Azure DevOps
.../builds/<buildId>/timeline + log APIs (see the ci-failure-retrieval skill for the exact
requests).
Step 2 — Classify the failure and act
| # | Failure class | How to recognize it in the log | Action — re-run or fix? |
| 1 | C/C++ warning-as-error | error: on a -Werror//WX line — e.g. implicit type-cast/narrowing (-Werror=conversion), unused variable/unused parameter (-Werror=unused-*), sign-compare, maybe-uninitialized | Fix code. Re-run will not help. Remove/[[maybe_unused]] the unused symbol, add an explicit static_cast<T>() / gsl::narrow_cast<T>() for the cast, or fix the real logic. Rebuild locally to confirm the warning is gone. |
| 2 | Test failure | [ FAILED ] Suite.Case (gtest) or FAILED test_*.py::... - AssertionError (pytest); often only on some EPs | Fix code/test. If a newly added op test fails only on EPs that don't support the op, restrict the test to supported EPs (e.g. gtest OpTester::Run(..., {kCpuExecutionProvider, kCudaExecutionProvider}) / excluded_provider_types, or skip via SetUp), or fix the kernel. Don't re-run unchanged. See the ort-test skill. |
| 3 | Transient / infra failure | Could not resolve host, Connection timed out, 429 Too Many Requests, No space left on device, package/download 5xx, agent lost, submodule clone timeout — with no compile/test error | Re-run (§1). This is the one class that a plain re-run fixes. If it recurs 2–3×, escalate — it may be a real infra/proxy issue, not noise. |
| 4 | Lint / Python format | Python format check fails; lintrunner reports diffs | Fix code with lintrunner -a, commit, push (§3). Re-run alone won't fix it. |
Rules of thumb:
- A compile
error:or a[ FAILED ]/FAILEDline means fix the code — re-running reruns the same failing commit and fails identically. - Only re-run when the log shows a network/disk/agent problem and no compile or assertion error.
- When unsure, download the log and read it; do not guess from the check name alone.
- After any code, test, lint, or generated-file fix, commit and push it. CI starts automatically for the new head SHA. Do not use §1 after pushing a change; the failed runs belong to the old SHA and re-running them would test stale code.
1. Re-run Failed GitHub Actions (transient failures only)
The repo ships a helper that re-runs only the GitHub Actions workflows whose latest run for the PR's current head commit failed/canceled — and skips any workflow that already has a newer run queued or in progress. Use it only after triage confirms the failures are transient (network/disk/agent) — see Triage. It is the safest way to retry those without piling on duplicates. Do not use this helper if you changed anything and pushed a new commit; the push already starts CI for the new head SHA.
Script: tools/scripts/rerun_failed_ci.sh
# Dry run first — shows what would be re-run, triggers nothing
./tools/scripts/rerun_failed_ci.sh <number> --dry-run
# Actually re-run the failed/canceled workflows for the PR's head commit
./tools/scripts/rerun_failed_ci.sh <number>
# Explicit repo (auto-detected from cwd when omitted)
./tools/scripts/rerun_failed_ci.sh <number> microsoft/onnxruntimeIt prefers gh run rerun <id> --failed (retry only failed jobs) and falls back to a full
rerun for fully canceled runs that have no discrete failed jobs. Requires an authenticated
gh. Always run --dry-run first and confirm the list looks right before the real run.
To re-run one specific workflow manually:
gh run list --repo microsoft/onnxruntime --commit <head_sha> --limit 100 \
--json databaseId,workflowName,status,conclusion,url
gh run rerun <run_id> --repo microsoft/onnxruntime --failed # only failed jobs
gh run rerun <run_id> --repo microsoft/onnxruntime # full rerun2. Unblock license/cla (CLA bot)
The license/cla check is posted by Microsoft's CLA bot, independent of the CI pipelines.
When it is stuck as "Expected — Waiting for status to be reported", re-trigger only the bot —
no CI jobs are re-run — by posting this comment on the PR:
gh pr comment <number> --repo microsoft/onnxruntime \
--body "@microsoft-github-policy-service rerun"Then verify it flips to success:
gh pr view <number> --repo microsoft/onnxruntime --json statusCheckRollup \
--jq '.statusCheckRollup[] | select((.name//.context)=="license/cla")
| {status, conclusion}'Expect {"status":"COMPLETED","conclusion":"SUCCESS"}.
3. Fix the "Python format" required check
The required Python format check (job lint-python-format in
.github/workflows/lint.yml) runs
lintrunner --all-files and fails on any formatting/lint violation. Re-running it will not
help — you must fix the code, commit, and push. See
docs/Coding_Conventions_and_Standards.md
and the ort-lint skill.
# One-time setup (in an activated Python venv)
pip install -r requirements-lintrunner.txt
lintrunner init
# Auto-fix. Prefer changed files; use --all-files to match CI exactly.
lintrunner -a # changed files only
lintrunner -a --all-files # everything (what CI checks)
# Verify clean (no changes reported == pass)
lintrunner --all-filesThen commit and push the formatting fixes; the check re-runs automatically on the new commit:
git add -u && git commit -m "Fix lint" && git pushNotes:
- CI runs
lintrunner --all-files, so a locallintrunner -aon only changed files can miss a pre-existing violation the CI reports. If the check still fails, run--all-fileslocally. - The same job also covers C++ clang-format and other adapters; the fix is the same
(
lintrunner -a).
4. Trigger the Azure Pipelines check (QNN Android Emulator only)
As of 2026-07, the only ORT check still on Azure Pipelines is
Linux Android Emulator QNN CI Pipeline. Everything else is GitHub Actions (use §1). Trigger
it through the PR comment integration:
gh pr comment <number> --repo microsoft/onnxruntime \
--body "/azp run Linux Android Emulator QNN CI Pipeline"Then wait briefly and check for a reply from azure-pipelines[bot]:
# Note: through the GraphQL `comments` field (what `gh pr view --json comments`
# uses), the bot's author.login is `azure-pipelines` (no `[bot]` suffix), even
# though it surfaces as azure-pipelines[bot] in the UI and the REST API.
gh pr view <number> --repo microsoft/onnxruntime --json comments \
--jq '.comments[] | select(.author.login=="azure-pipelines")
| {createdAt, body}' | tail- If the bot replies "No pipelines are associated with this pull request", the pipeline is not
wired to the comment app — use the direct Azure DevOps API fallback (see the
Trigger CI Pipelinessection of the privategh-pr-managementskill for thedev.azure.comproject/definition discovery andPOST .../runspayload usingrefName: refs/pull/<number>/mergeand the PRmerge_commit_sha). - Keep it to one batch
/azp runcomment per attempt; do not spam repeated comments.
5. Fix the "Windows GPU Doc Gen CI" check (operator docs out of date)
The ONNX Runtime Windows GPU Doc Gen CI check (workflow
.github/workflows/windows_gpu_doc_gen.yml)
builds ORT and runs build.py --gen_doc validate. It fails when the generated operator docs
no longer match what's committed — typically after you add/modify an operator or its kernel
registrations but forget to regenerate docs/ContribOperators.md / docs/OperatorKernels.md.
Re-running will not help; you must update the docs.
The easiest fix is to download the regenerated docs the failed job already produced: on failure
the workflow uploads a single artifact named updated-docs that contains both
OperatorKernels.md and ContribOperators.md at its top level, so you can replace the committed
copies without building locally.
HEAD_SHA=$(gh api repos/microsoft/onnxruntime/pulls/<number> --jq .head.sha)
# Find the failed Doc Gen run
run_id=$(gh run list --repo microsoft/onnxruntime --commit "$HEAD_SHA" --limit 100 \
--json databaseId,workflowName,conclusion \
--jq '.[] | select(.workflowName|test("Doc Gen")) | select(.conclusion=="failure") | .databaseId' | head -1)
# Confirm the artifact is present (expect: updated-docs)
gh api repos/microsoft/onnxruntime/actions/runs/$run_id/artifacts --jq '.artifacts[].name'
# gh run download does not overwrite existing files. Remove both stale generated docs first,
# then extract their replacements (the artifact always holds both files).
rm docs/OperatorKernels.md docs/ContribOperators.md
gh run download "$run_id" --repo microsoft/onnxruntime -n updated-docs --dir docs/Then review, commit, and push — the check re-runs on the new commit:
git diff --stat docs/ContribOperators.md docs/OperatorKernels.md
git add docs/ContribOperators.md docs/OperatorKernels.md
git commit -m "Update operator docs" && git pushNotes:
- The
updated-docsartifact always contains bothOperatorKernels.mdandContribOperators.mdat its top level. Remove both committed files before downloading becausegh run downloadrefuses to overwrite them;--dir docs/then recreates both. Only the file(s) whose generated content changed will show up ingit diffafter extraction. - Equivalent local alternative:
python tools/ci_build/build.py --config Release --build_dir build/Linux --gen_docafter a build, then commit the regenerated files. Downloading the artifact is faster since it avoids a full build.
Special-Case Check Handling
| Check / job name | Owner | How to unblock |
license/cla | CLA bot | Comment @microsoft-github-policy-service rerun (§2) |
Python format (lint-python-format) | GitHub Actions | Fix with lintrunner -a, commit, push (§3) — rerun alone won't fix |
ONNX Runtime Windows GPU Doc Gen CI | GitHub Actions | Download the updated-docs artifact into docs/, commit, push (§5) — rerun alone won't fix |
Optional Lint, Optional Lint C++ | GitHub Actions | Non-required reviewdog checks; fix warnings or ignore |
Most CI (Linux/Windows/Mac/CUDA/TensorRT/WebGPU/Web/Android/iOS, windows_x64_*, Builds, PR Checks) | GitHub Actions | rerun_failed_ci.sh <number> (§1) |
Linux Android Emulator QNN CI Pipeline | Azure DevOps | /azp run Linux Android Emulator QNN CI Pipeline (§4), then API fallback |
Safety Rules
- Never trigger release, publish, official, nightly, signing (
ESRP), deployment, or package-upload pipelines unless the user explicitly asks for that class of pipeline. Treat names containingrelease,publish,official,nightly,sign,ESRP,production, ordeployas high-risk and confirm first. - Always
--dry-runthe rerun script before the real run. - Do not re-run green checks or dispatch unrelated workflows.
- Prefer PR merge refs (
refs/pull/<number>/merge) over branch refs for external CI so the run validates the merge result. - Do not claim success until the provider returns a queued/in-progress/completed run ID or URL,
or the check flips state in
statusCheckRollup.
Verify After Triggering
gh pr view <number> --repo microsoft/onnxruntime --json statusCheckRollup \
--jq '.statusCheckRollup | group_by(.status//.state)
| map({state:(.[0].status//.[0].state), count:length})'Confirm the previously stuck/failed check moved to queued/in_progress (or SUCCESS for the
CLA bot), and that no duplicate runs were created for the same head SHA.
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.

