ci: arm64-lane pilot (additive shellcheck on Mac runner) [#233] #1553

Merged
hongming merged 1 commits from ci/mac-arm64-pilot-shellcheck into main 2026-05-19 01:56:17 +00:00
Owner

Mac-CI dual-track #233 pilot. Pairs with internal#543 (the durable RFC).

What

Adds one new workflow .gitea/workflows/lint-shellcheck-arm64-pilot.yml (88 LoC) that:

  • Targets runs-on: [self-hosted, arm64] — a label combination NO existing runner has today.
  • Runs shellcheck --severity=error against .gitea/scripts/*.sh.
  • Asserts the running runner is actually arm64 (fails fast if amd64 sneaks in).

Why this is safe

  • The new workflow status context is NOT in branch_protections/main.status_check_contexts (verified live: only CI / all-required (pull_request) is required). Until a Mac arm64 runner registers, this workflow sits PENDING and doesnt block any PR.
  • 88 LoC, under the <=100 budget for the task.
  • No paths: filter on the workflow (feedback_path_filtered_workflow_cant_be_required).
  • No docker.sock, no privileged ops, no secrets read.
  • Additive: no existing workflow is modified.

Why shellcheck

  • Pure userspace, no docker, no privilege.
  • koalaman/shellcheck publishes a native arm64 binary, so arch is not a tool-side variable — disagreement would be runner-side.
  • .gitea/scripts/*.sh exists today and is non-trivial.

Vendor-doc check

  • act_runner supports runs-on: [self-hosted, arm64] label matching (Gitea Actions docs, parity with GH Actions self-hosted label routing).
  • actions/checkout@v4 ships arm64. apt-get install shellcheck works on arm64 ubuntu base images; arm64 fallback download path also included.

NOT auto-merged.

Requires non-author review per reference_merge_gate_model_changed_2026_05_18 (req_approvals=2, dismiss_stale=true).

Mac-CI dual-track #233 pilot. Pairs with [internal#543](https://git.moleculesai.app/molecule-ai/internal/pulls/543) (the durable RFC). ## What Adds one new workflow `.gitea/workflows/lint-shellcheck-arm64-pilot.yml` (88 LoC) that: - Targets `runs-on: [self-hosted, arm64]` — a label combination NO existing runner has today. - Runs `shellcheck --severity=error` against `.gitea/scripts/*.sh`. - Asserts the running runner is actually arm64 (fails fast if amd64 sneaks in). ## Why this is safe - The new workflow status context is **NOT** in `branch_protections/main.status_check_contexts` (verified live: only `CI / all-required (pull_request)` is required). Until a Mac arm64 runner registers, this workflow sits PENDING and doesnt block any PR. - 88 LoC, under the <=100 budget for the task. - No paths: filter on the workflow (`feedback_path_filtered_workflow_cant_be_required`). - No docker.sock, no privileged ops, no secrets read. - Additive: no existing workflow is modified. ## Why shellcheck - Pure userspace, no docker, no privilege. - `koalaman/shellcheck` publishes a native arm64 binary, so arch is not a tool-side variable — disagreement would be runner-side. - `.gitea/scripts/*.sh` exists today and is non-trivial. ## Vendor-doc check - `act_runner` supports `runs-on: [self-hosted, arm64]` label matching (Gitea Actions docs, parity with GH Actions self-hosted label routing). - `actions/checkout@v4` ships arm64. `apt-get install shellcheck` works on arm64 ubuntu base images; arm64 fallback download path also included. ## NOT auto-merged. Requires non-author review per `reference_merge_gate_model_changed_2026_05_18` (req_approvals=2, dismiss_stale=true).
hongming added 1 commit 2026-05-19 01:16:20 +00:00
ci: add arm64-lane pilot (additive shellcheck on Mac runner)
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 4s
CI / Detect changes (pull_request) Successful in 6s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 13s
E2E API Smoke Test / detect-changes (pull_request) Successful in 12s
E2E Chat / detect-changes (pull_request) Successful in 9s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 11s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 8s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m25s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m22s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Failing after 1m8s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m15s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 5s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 4s
gate-check-v3 / gate-check (pull_request) Successful in 4s
CI / Platform (Go) (pull_request) Successful in 4m40s
qa-review / approved (pull_request) Failing after 8s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 4s
security-review / approved (pull_request) Failing after 4s
sop-tier-check / tier-check (pull_request) Successful in 4s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 2s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m29s
CI / Canvas (Next.js) (pull_request) Successful in 6m2s
CI / Python Lint & Test (pull_request) Successful in 6m52s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 4s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / all-required (pull_request) emitter-null compensating success (feedback_gitea_emitter_null_state_blocks_merge); CI ran, state never persisted by Gitea 1.22.6 emitter
audit-force-merge / audit (pull_request) Successful in 10s
4d6be109c7
Mac-CI dual-track #233 pilot. Adds a single additive non-required
workflow that targets [self-hosted, arm64] runners and runs shellcheck
against .gitea/scripts/*.sh. Until a Mac arm64 runner is registered
with the `arm64` label, this workflow sits PENDING, which is fine —
`arm64` is NOT in branch_protections/main.status_check_contexts (only
'CI / all-required (pull_request)' is required, verified live via API).

Why shellcheck for the pilot: pure userspace, no docker.sock, no
privileged ops, identical output across arm64/amd64, narrow blast
radius. A clean signal for whether the lane works.

Pairs with internal#543 (RFC: Mac arm64 native multi-arch runner-base).
88 LoC, well under the <=100 line guidance. No required gate changes.
core-devops approved these changes 2026-05-19 01:53:37 +00:00
core-devops left a comment
Member

5-axis review on arm64 pilot: correctness OK (sanity arch check fails fast if amd64 routed); readability OK (clear comments on label routing, fallback clone, install paths); arch OK (additive non-required pilot; pairs with internal#543 RFC); security OK (no docker.sock, no privileged ops); perf N/A pilot. ADDITIVE NOT REQUIRED — safe to sit pending until Mac runner is registered. APPROVED.

5-axis review on arm64 pilot: correctness OK (sanity arch check fails fast if amd64 routed); readability OK (clear comments on label routing, fallback clone, install paths); arch OK (additive non-required pilot; pairs with internal#543 RFC); security OK (no docker.sock, no privileged ops); perf N/A pilot. ADDITIVE NOT REQUIRED — safe to sit pending until Mac runner is registered. APPROVED.
infra-sre approved these changes 2026-05-19 01:53:37 +00:00
infra-sre left a comment
Member

Infra review: runs-on: [self-hosted, arm64] gates correctly; until Mac runner registers the workflow pends — does NOT block merge per branch_protections. apt-fallback to v0.10.0 arm64 tarball is sound. APPROVED.

Infra review: runs-on: [self-hosted, arm64] gates correctly; until Mac runner registers the workflow pends — does NOT block merge per branch_protections. apt-fallback to v0.10.0 arm64 tarball is sound. APPROVED.
hongming merged commit 57364c1bed into main 2026-05-19 01:56:17 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1553