Skip to content

Add CPU-only GitHub Actions CI (presubmit + nightly + lint)#143

Open
yinlin09 wants to merge 4 commits into
mainfrom
ci/github-actions-cpu
Open

Add CPU-only GitHub Actions CI (presubmit + nightly + lint)#143
yinlin09 wants to merge 4 commits into
mainfrom
ci/github-actions-cpu

Conversation

@yinlin09

Copy link
Copy Markdown
Collaborator

Adds CPU-only GitHub Actions CI mirroring torch_tpu's setup, scoped to a CPU runner (linux-x86-n2-32) since this repo isn't granted TPU runner scale-sets.

  • presubmit (PR): build JAX extension + OSS-safe CPU unit tests + import smoke
  • nightly (cron/push): CPU build + unit tests + tpu_raiden_jax wheel + failure issue
  • lint / clang_format: license headers, commit msg, C++ format

Kokoro CI is kept alongside. See .github/README.md.

Opened to validate the workflows on the runner; landing happens via google3/Copybara.

Mirrors torch_tpu's GitHub Actions setup, scoped to a CPU runner
(linux-x86-n2-32) since google/tpu-raiden is not granted TPU runner
scale-sets. Builds the JAX extension, runs OSS-safe CPU unit tests, builds
the tpu_raiden_jax wheel nightly, and lints license headers + C++ format.
Kokoro CI is kept alongside. See .github/README.md.
addlicense flagged the root BUILD file (no header); add the standard Apache
header. Add a pull-request smoke workflow on linux-x86-tpu7x-224-4tpu to test
whether the v7 TPU runner scale-set is available to this repo.
n2-32 and tpu7x jobs stayed queued/unassigned (not granted to this repo), so
run presubmit + nightly on the available v5e TPU host: build, verify TPU
visible, run unit tests + a device test. Drop the tpu7x probe.
n2-32 and v5e are self-hosted scale-sets that cold-start slowly; jobs may sit
queued for several minutes before pickup. Keep CPU (presubmit/nightly) and TPU
(device_test) in separate workflows so a slow TPU runner never blocks the CPU
gate. v5e is used for device tests since tpu7x is unavailable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants