Skip to content

fix(ci): move Linux native candidates to internal runners - #2909

Merged
frf12 merged 7 commits into
oceanbase:masterfrom
frf12:codex/native-candidate-internal-ci
Nov 29, 2026
Merged

frf12 merged 7 commits into
oceanbase:masterfrom
frf12:codex/native-candidate-internal-ci

Conversation

@frf12

@frf12 frf12 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Problem and behavior

Follow-up to #2711: the resource-target selector used an internal runner, but the actual Linux candidate matrix entry still used GitHub-hosted Ubuntu. Linux native resource candidates now run on the existing internal standard pool with shared download and compilation caches, mirrors, and upstream fallback. Windows and macOS keep their existing hosted runners and effective qualification steps.

Changes

  • Give Linux a separate job using the shared candidate qualification steps, without adding a Linux matrix concurrency cap or fixed worker count.
  • Reuse shared Python and Cargo caches; cache raw native inputs by locked identity and verify restored hashes. Route pinned Python distributions, Python packages, Ubuntu packages, Rust distributions, and Cargo downloads through the existing cache/mirror infrastructure with official fallback. Preserve locked versions, hashes, and original source URLs. Prepared inputs, installed environments, and candidate outputs are rebuilt.
  • Extract archive originals sequentially before materializing validated aliases, avoiding repeated gzip decompression while preserving bytes, modes, independent files, and provenance. Keep existing test deadlines.
  • Provide the genuine systemd user manager required by native Ops acceptance in a job-owned container with private PID/cgroup namespaces. Use the existing runner Docker daemon, digest-pinned runner configuration, real session bus, and cleanup on both failure and completion. APT connects directly to the cache/mirror host even when Docker injects proxy defaults.
  • After Cargo cache restoration, invalidate only workspace fingerprints and build-script outputs without resolving registry dependencies. Preserve third-party compilation and support custom target directories, profiles, binary names, and external build inputs.
  • Document routing and cache boundaries in both CI guides. No product API or lockfile changes.

Validation

  • Final head: 1753d71000b0b6a793845fc6f4e3fb57c62962f3. Complete workflow: passed: 71 successful jobs, 24 conditionally skipped jobs, 0 failures, and 0 cancellations. Tested merge tree: ea4c054aec9022184118f3dcaa781a56c577d135 against master 476bd2ccc4b6ff54e6d9078ca1290cc632cd01d1.
  • The actual internal Linux job completed successfully: two fresh offline builds and byte comparison; catalog/launcher/Python Ops qualification (77 passed, 8 platform-conditional skips); original native Rust trust-boundary case (1 passed, 0 failed, 0 ignored); artifact/diagnostic upload and cleanup. The owned manager container, runtime directory, state file, and ephemeral runner Pod were removed.
  • All nine real Cargo regressions passed without skips in the current GitHub CI. The same cases fail with the original cleanup; they cover missing registry configuration/index, source and external-input changes, custom profiles/targets, and same-prefix third-party packages.
  • Full pre-commit checks, Ruff, type checks, actionlint, and the official workflow parser passed. Effective Windows/macOS steps match the baseline. Archive regression verifies bounded compressed reads and identical output; equivalent runner-Pod checks cover genuine user-manager operation and idempotent cleanup.
  • Shared cache service and runner image configuration are deployed. Pinned interpreter downloads match the original SHA-256; actual Docker proxy configuration was exercised. The runner-template update preserved busy Pods and listeners.

AI usage statement

Implemented and reviewed with OpenAI Codex.

@frf12
frf12 merged commit df2cee0 into oceanbase:master Nov 29, 2026
96 checks passed
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