Skip to content

CIEXE-2338: Add manual core-it latest-api job on KVM runners - #4039

Draft
chagui wants to merge 1 commit into
developfrom
chagui/ciexe-2338/core-it-kvm-runner
Draft

chagui wants to merge 1 commit into
developfrom
chagui/ciexe-2338/core-it-kvm-runner

Conversation

@chagui

@chagui chagui commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds test-pyramid:core-it-latest-api-kvm, a manual, allowed-to-fail copy of test-pyramid:core-it-latest-api that runs on the Linux kvm:amd64 runner pool instead of the macOS AMI.

  • Uses $CI_IMAGE_DOCKER and installs at runtime what the image lacks: emulator shared libraries (apt), emulator, the API 37 platform/build-tools and system-images;android-37.0;google_apis_ps16k;x86_64.
  • Uses an x86_64 system image: KVM only accelerates guests matching the host architecture.
  • Runs emulator -accel-check first so a missing /dev/kvm fails fast with an explicit reason.
  • Starts the emulator without -qemu -machine virt (ARM-only machine type), so it cannot reuse the start-emulator / run-core-it-instrumented snippets.
  • Waits up to 300s for sys.boot_completed before connectedDebugAndroidTest.
  • Uploads JUnit results via dd-sts exchange … datadog-ci junit upload, like the other Linux jobs.

No existing job or snippet is modified.

Motivation

Evaluate the new KVM-enabled Linux runners as a replacement for the macOS AMI for emulator-based tests.

Additional Notes

  • Runtime install downloads ~1.5 GB of system image per run. If the trial succeeds, the follow-up is to bake the emulator, its libraries and the x86_64 image into ci/Dockerfile.gitlab and bump CURRENT_CI_IMAGE.
  • The job duplicates ~6 lines of run-core-it-instrumented; if promoted, the ARM-only -qemu args should become a variable so the snippets can be shared.
  • Extends .cpu-memory-intensive-job (20 CPU / 8Gi request); may need tuning for the KVM node shape.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

🤖 Generated with Claude Code

Trial the core-it API 37 instrumented tests on Linux kvm:amd64 runners
with an x86_64 emulator, as an alternative to the macOS AMI job.

Ref: CIEXE-2338
@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 71.73% (-0.15%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ceb5de7 | Docs | View more details | Give us feedback!

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