Skip to content

ci: migrate workflows from GitHub-hosted to Ubicloud runners#161

Closed
moonming wants to merge 1 commit into
mainfrom
ci/migrate-to-ubicloud-runners
Closed

ci: migrate workflows from GitHub-hosted to Ubicloud runners#161
moonming wants to merge 1 commit into
mainfrom
ci/migrate-to-ubicloud-runners

Conversation

@moonming
Copy link
Copy Markdown

@moonming moonming commented Jun 6, 2026

What

Migrate GitHub Actions workflows from GitHub-hosted runners to Ubicloud runners, matching the org-wide convention (see api7ee-3-console).

Changes

19 runs-on declarations across 8 workflows. Label mapping (per Ubicloud runner types):

From (GitHub-hosted) To (Ubicloud) Notes
ubuntu-latest ubicloud-standard-2 Ubuntu 24.04 → 24.04 (no OS change)
ubuntu-22.04 (openresty job) ubicloud-standard-2-ubuntu-2204 22.04 pin preserved for the OpenResty container lane
macos-14 (rust matrix) unchanged Ubicloud has no macOS runners

rust job — matrix handled carefully

The rust job runs a [linux, macos] matrix. Only the Linux lane moves:

-        os: [ubuntu-latest, macos-14]
+        os: [ubicloud-standard-2, macos-14]

The job keys several steps on the matrix value. The macOS guards (if: matrix.os == 'macos-14') are untouched, and the two Linux-only guards were renamed in lockstep so they keep firing — otherwise Test debug scalar-only and Test with test-panic feature would silently stop running:

-        if: matrix.os == 'ubuntu-latest'
+        if: matrix.os == 'ubicloud-standard-2'

bench job — runner moved + baseline reset required

bench.yml moves to ubicloud-standard-2. It compares against historical results stored on the gh-pages branch (dev/bench) with alert-threshold: 105%. Because absolute numbers shift on a different CPU:

  • fail-on-alert: falsethe migration cannot fail CI; at most it posts one comparison comment.
  • The gh-pages dev/bench history (measured on ubuntu-latest) will be reset so the Ubicloud series starts from a clean baseline. This is a one-time post-merge step (the old points would otherwise produce a misleading step-change on the chart).

Test plan

  • All workflows complete green on Ubicloud (Linux lanes)
  • rust job: macos-14 lane still runs on GitHub; both Linux-only steps execute on the ubicloud-standard-2 lane
  • openresty job runs on Ubuntu 22.04 (ubicloud-standard-2-ubuntu-2204)
  • valgrind / sanitizers / fuzz pass on Ubicloud
  • Post-merge: reset gh-pages:dev/bench so the benchmark series restarts on Ubicloud

Notes

  • This repo is public; runner enablement for public repos must be configured in the api7 org's Ubicloud settings. If checks stay queued, the repo isn't enabled yet.
  • Runner size: 2 vCPU everywhere (minimal cost). runner.os/runner.arch are unchanged (Linux/X64), so cache keys are preserved.

Summary by CodeRabbit

  • Chores
    • Updated CI/CD infrastructure and build environments across GitHub Actions workflows for optimized performance and reliability.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 6, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a3841e2c-d445-4185-b385-46b62ec43559

📥 Commits

Reviewing files that changed from the base of the PR and between 8e1b394 and 2b42cc2.

📒 Files selected for processing (8)
  • .github/workflows/bench.yml
  • .github/workflows/changelog-policy.yml
  • .github/workflows/ci.yml
  • .github/workflows/fuzz.yml
  • .github/workflows/lua-lazy-mutation-property.yml
  • .github/workflows/lua-valgrind-full.yml
  • .github/workflows/release.yml
  • .github/workflows/supply-chain-audit.yml

📝 Walkthrough

Walkthrough

All GitHub Actions workflows are migrated from GitHub-hosted runners to Ubicloud runners. Peripheral workflows switch from ubuntu-latest to ubicloud-standard-2, and the CI workflow updates both its job runners and OS matrix conditionals to reference the new Ubicloud environment.

Changes

Runner Environment Migration

Layer / File(s) Summary
Peripheral workflow runner migrations
.github/workflows/bench.yml, .github/workflows/changelog-policy.yml, .github/workflows/fuzz.yml, .github/workflows/lua-lazy-mutation-property.yml, .github/workflows/lua-valgrind-full.yml, .github/workflows/release.yml, .github/workflows/supply-chain-audit.yml
Independent workflows are switched from ubuntu-latest to ubicloud-standard-2 for improved performance and cost efficiency.
CI workflow runner migrations and matrix updates
.github/workflows/ci.yml
The CI workflow's nine jobs are migrated to ubicloud-standard-2 (or ubicloud-standard-2-ubuntu-2204 for OpenResty compatibility). The Rust test job OS matrix now uses ubicloud-standard-2 in place of ubuntu-latest, and step-level conditions for scalar-only and panic feature tests are updated to reference the new runner label.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • api7/lua-qjson#99: Both PRs touch the OpenResty CI job in .github/workflows/ci.yml, with this PR changing the runner while the retrieved PR introduces the OpenResty matrix job and test scripts that execute on the runner.

Poem

🐰 Hopping onto faster clouds,
From GitHub's runners we now bounce,
Ubicloud's swift machines await,
Each workflow glides without a wait!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: migrating CI workflows from GitHub-hosted runners to Ubicloud runners, which is the primary objective of this pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/migrate-to-ubicloud-runners

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@moonming
Copy link
Copy Markdown
Author

moonming commented Jun 7, 2026

Closing — lua-qjson is a public repository, and GitHub-hosted runners are free for public repos. Migrating to Ubicloud (billed per-minute) would add cost with no benefit, so this repo should stay on GitHub-hosted runners. The Ubicloud migration applies only to the private repos.

@moonming moonming closed this Jun 7, 2026
@moonming moonming deleted the ci/migrate-to-ubicloud-runners branch June 7, 2026 11:55
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.

1 participant