Skip to content

ci: test-ansible を native arm64 runner + 並列化で高速化 (BOXP-128) - #11578

Merged
boxp merged 2 commits into
mainfrom
boxp-128-arm64-native-runner
Jul 23, 2026
Merged

ci: test-ansible を native arm64 runner + 並列化で高速化 (BOXP-128)#11578
boxp merged 2 commits into
mainfrom
boxp-128-arm64-native-runner

Conversation

@boxp

@boxp boxp commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

BOXP-128: test-ansible.yml の実行時間が60分に近づいていた問題を解消する。

主な変更:

  • runs-on: ubuntu-latest(x86_64)→ ubuntu-24.04-arm(GitHub native arm64 runner)に切り替え
  • docker/setup-qemu-action / docker/setup-buildx-action を削除(QEMU エミュレーション不要)
  • MOLECULE_DOCKER_PLATFORM=linux/arm64 指定を削除(native 実行のため不要)
  • ロール検出・lint・テストを別 Job に分離し、テストを matrix strategy で並列実行
  • timeout-minutes を 60 → 20 分 に縮小

期待される効果:

  • native arm64 実行により QEMU エミュレーション(5〜10倍遅延)を廃止
  • 4ロールの並列実行で逐次実行から並列実行へ
  • 推定実行時間: 30〜55 分 → 10 分以内

Test plan

  • ansible ロール変更を含む PR でテストを確認
  • 実行時間が 20 分以内に収まることを確認
  • lint 失敗時に test Job がスキップされることを確認
  • ロール変更なしの場合に test Job が skip されることを確認

🤖 Generated with Claude Code

boxp and others added 2 commits July 23, 2026 14:28
…(BOXP-128)

- runs-on を ubuntu-latest から ubuntu-24.04-arm に変更し QEMU エミュレーションを廃止
- docker/setup-qemu-action・docker/setup-buildx-action を削除
- ロール検出・lint・テストを別 Job に分離し、テストを matrix strategy で並列実行
- timeout-minutes を 60 → 20 分に縮小
- MOLECULE_DOCKER_PLATFORM 指定不要(native arm64 実行)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Molecule configs default to linux/amd64 via \${MOLECULE_DOCKER_PLATFORM:-linux/amd64}.
On native ubuntu-24.04-arm runner without QEMU, running amd64 containers would
fail with exec format error. Setting MOLECULE_DOCKER_PLATFORM at job level ensures
arm64 containers are used natively (fast, no emulation needed).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@boxp
boxp merged commit e72312a into main Jul 23, 2026
14 checks passed
@boxp
boxp deleted the boxp-128-arm64-native-runner branch July 23, 2026 15:27
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