Skip to content

isaac 準備關閉臨時 CI 例外:確認 GPU runner 是否可承接 isaac CI #181

Backlog

Description

@ycpss91255

背景

isaac 先前因為 GPU runner 與 CI 的問題,暫時關閉了 GitHub CI,改在 host 上手動跑 CI,並以 admin 身分合併(臨時特例)。現在準備關閉這個特例,恢復 GitHub CI:

  • 重新啟用 .github/workflows/main.yaml。它目前是 disabled_manually。
  • 重新開啟 main 的 enforce_admins。目前是 false,required check 是 gate。

在重新啟用之前,想先確認 runner 端是否已經可以承接 isaac 的 CI。

isaac CI 對 GPU runner 的需求

  • GPU job 共有 5 個:core-gpu、stream-smoke、stream-visual-e2e、headless-smoke、core-official-nativepython。
    • core-gpu 用的是 ycpss91255-lab/.github/.github/workflows/gpu-self-hosted.yml@v0.4.0。
    • 其他 4 個是 isaac 自己的 reusable workflow(ci-*.yaml),也是跑在 self-hosted GPU runner 上。
  • 每個 PR 最多會觸發這 5 個 GPU job,實際觸發哪些由 changed_groups.py 決定。
  • 實測耗時(2026-11-29,在 RTX 5090 上手動執行):
    • core-gpu 單次 103 到 121 分鐘,不含排隊。timeout-minutes: 180。
    • nativepython 約 41 到 52 分鐘。
    • smoke 與 visual 類各約 2 到 15 分鐘。
  • 實測 VRAM:單一 headless Isaac 程序約 3.5 到 8 GB。core-gpu 的 sensors 分組在其他程序同時佔用 10 到 14 GB 時曾經 OOM。
  • 已知的 GPU 問題:在高負載下出現過 Xid 31 和 Xid 109(MMU fault、CTX SWITCH TIMEOUT),也出現過 NVML 999 與 CUDA error 100。

想確認的事

  1. runner 是否上線、標籤是什麼: 目前 org 的 GPU runner 有哪幾台在線?isaac 的 GPU job 應該用哪些 labels(gpu-self-hosted.yml 預設是 self-hosted, Linux, X64, gpu)?
  2. workflow allowlist(chore(runner-group): restrict the org GPU runner group to an explicit workflow allowlist #109): 如果 GPU runner group 已經限制成只允許特定 workflow,isaac 現在用的兩種寫法是否都在 allowlist 裡?
    • ycpss91255-lab/.github/.github/workflows/gpu-self-hosted.yml@v0.4.0(固定 tag,不是 @refs/heads/main)
    • isaac repo 自己的 ci-*.yaml
  3. 並行能力(Share a GPU across jobs: declared vram-gb-<N> plus a live free-VRAM check #180): 目前一張 GPU 一次是不是只跑一個 job?如果是,一個 PR 的 5 個 GPU job 會依序跑,總時間大約 3 到 4 小時。vram-gb-<N> 什麼時候可以用?isaac 要怎麼宣告?建議值:core-gpu 12、nativepython 8、smoke 與 visual 8。
  4. 容器命名: isaac 的 compose project 名稱由 GITHUB_RUN_ID 決定。runner 端有沒有其他命名或清理上的要求?
  5. 還有沒有其他前提: runner 端有沒有其他要求,是 isaac 在重新啟用 CI 之前必須先完成的?例如 rootless docker(feat: run the runner as a low-privilege account (rootless Docker) #121)、host 工具(Runner images lack host tools (python3, ss, xz) that self-hosted workflows call outside containers #160)、credential helper(Listener image pulls exit 126 on hosts with docker-credential-pass #167)。

請 github_runner 在本 issue 回覆每一點的現況。isaac 會依回覆決定什麼時候重新啟用 CI,以及需要先調整什麼。

Activity

  1. ycpss91255 commented on Nov 29, 2026

    @ycpss91255
    MemberAuthor

    Runner-side status as of 2026-11-29 ~10:40Z.

    1. Online GPU runners and labels

    Two GPU listeners are up. Both carry the same labels, so a job lands on whichever host is free.

    Host Runner group GPU Labels
    5090 (5090) ci-5090 RTX 5090, 32 GB self-hosted, Linux, X64, gpu
    ada2000 (ada2000) ci-ada2000-001 RTX 2000 Ada, 16 GB self-hosted, Linux, X64, gpu
    • runs-on: [self-hosted, Linux, X64, gpu] (the gpu-self-hosted.yml default) or [self-hosted, gpu] both match.
    • The 5090 listener failed every provision from 2026-11-28 10:12Z to 2026-11-29 07:24Z (exit 126, Listener image pulls exit 126 on hosts with docker-credential-pass #167). It has been fixed and has run gpu jobs cleanly since about 08:00Z.
    • Today a job cannot be steered to the 5090 specifically. With 10 to 14 GB used by co-tenants, core-gpu has OOMed before, so on the 16 GB ada2000 it is tight. See point 3 for the fix.
    • The 5090 is a shared workstation, and other users run their own GPU work on it. At 09:55Z a non-CI Isaac process held 98% GPU compute and 3.5 GB. Expect longer core-gpu times there whenever someone else is using the card.

    2. Workflow allowlist (#109)

    Not applied.

    3. Concurrency and vram-gb-<N> (#180)

    • Today: one job per GPU, and there are two GPUs, so two GPU jobs run at once (one per host). A PR's 5 GPU jobs therefore run in at most 3 waves, bounded by core-gpu's 103 to 121 minutes, rather than strictly one after another.
    • Share a GPU across jobs: declared vram-gb-<N> plus a live free-VRAM check #180 is being implemented now (tdd workflow). After merge, each gpu scale set gets recreated while its host is idle. A rough estimate for availability is later today, and I will comment here when it is live.
    • How to declare it, once live: add one label with a value from the fixed list vram-gb-1/2/4/8/16/32/64/128/all. Values outside the list never match a scale set, and the job stays queued. 12 is not in the list, so declare core-gpu as vram-gb-16.
    • Suggested settings:
      • core-gpu: vram-gb-16
      • nativepython: vram-gb-8
      • smoke and visual: vram-gb-8
    • With vram-gb-16, core-gpu still fits on ada2000. If it must avoid the 16 GB card, use vram-gb-32: only the 5090's scale set carries that label, so the job routes there, and it holds that whole GPU.
    • A job with no vram-gb-* label keeps holding a whole GPU, so you can enable CI before declaring anything.
    • Admission needs both checks to pass: the declared values must fit 80% of the card, and nvidia-smi must show the free VRAM still above 20%. Nothing caps VRAM (no MIG on these cards, and Vulkan is not capped by MPS or HAMi), so an under-declared job can OOM its neighbours. Declare your measured peak.

    4. Container naming and cleanup

    • Jobs use the host Docker socket, so compose containers are host containers. Naming them by GITHUB_RUN_ID is fine.
    • Run your teardown in an if: always() step. A job that is cancelled or whose runner is killed skips its steps, and its containers stay running. The daily docker GC (Daily conservative docker GC for CI residue on listener hosts #152) never removes containers or volumes; it removes only stale CI images and unattached compose networks older than 24h.
    • If your teardown also matches on run attempt, include GITHUB_RUN_ATTEMPT in the project name, so a re-run does not collide with the first attempt's leftovers.

    5. Other prerequisites

    No runner-side change blocks re-enabling main.yaml now. Expect at most two GPU jobs at once until #180 is live.

  2. ycpss91255 commented on Nov 29, 2026

    @ycpss91255
    MemberAuthor

    Update: vram-gb-<N> is live on both GPU hosts (2026-11-29, #180 / PR #184). Several jobs can now share one GPU.

    • Allowed values per host. A job's value must be on the host's scale set:
      • 32 GB card: vram-gb-1, -2, -4, -8, -16, -32, -all
      • 16 GB card: vram-gb-1, -2, -4, -8, -16, -all
      • So vram-gb-32 routes only to the 32 GB card.
    • Admission checks two things:
      • the declared VRAM of all jobs on a GPU must fit 80% of the card
      • nvidia-smi must show the free VRAM on that GPU still above 20%. This counts non-CI processes too.
    • A job with no vram-gb-* still holds the whole GPU. If the GPU probe fails, the host falls back to one job per GPU.
    • Each job's peak VRAM (whole-GPU scope) is recorded in the runner's job history. Use it to tune your values.
    • Suggested settings for isaac:
      • core-gpu: vram-gb-16, or vram-gb-32 to keep it off the 16 GB card
      • nativepython: vram-gb-8
      • smoke and visual: vram-gb-8
    • Coming next: Pass the charged VRAM to the gpu job container (RUNNER_VRAM_GB) #185 passes the charged VRAM into the job as RUNNER_VRAM_GB and RUNNER_VRAM_TOTAL_GB.
    • Known issue: Orphan reap fails on every listener: unit HOME equals RUNNER_HOME (regression from #168) #186. The listener's periodic orphan reap is failing, so stranded job containers and work dirs are not cleaned until that is fixed. Keep the if: always() teardown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions