Skip to content

ci: move SonarCloud back to ubuntu-latest - #100

Merged
mattinannt merged 2 commits into
mainfrom
anshuman/ci-sonarcloud-ubuntu-latest
Nov 9, 2026
Merged

mattinannt merged 2 commits into
mainfrom
anshuman/ci-sonarcloud-ubuntu-latest

Conversation

@pandeymangg

@pandeymangg pandeymangg commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What & why

#99 had to pin the SonarCloud job to ubuntu-24.04. ubuntu-latest started serving Ubuntu 26.04, where the "Setup KVM" step fails: qemu-kvm has no install candidate.

GitHub is moving ubuntu-latest to 26.04 between Oct 19 and Nov 19 (announcement). A pin has to be moved by hand later; ubuntu-latest follows GitHub's image updates.

This replaces the step with the udev rule from the android-emulator-runner README, and goes back to ubuntu-latest. The runner already has /dev/kvm; the emulator only needs permission to use it. Nothing is installed.

Where to look

  • sonarcloud.yml: the "Enable KVM" step. The only other change is runs-on.

Breaking changes

  • This PR contains breaking changes

None. CI only.

How this was tested

Run Image (from the log) Result
48b1b9b, job pinned to ubuntu-26.04 on purpose ubuntu-26.04 Passed in 7m35s
044689b, ubuntu-latest ubuntu-26.04 Passed in 7m33s

Both runs passed every step: Enable KVM, SDK install, emulator boot, instrumented tests, Sonar scan, and the quality gate (0 new issues).

Open gaps

  • The new step has not run on ubuntu-24.04. Until Nov 19, ubuntu-latest can still serve it. The rule is the one the emulator action documents for all Ubuntu runners, but no run here shows it passing there.

qemu-kvm has no install candidate on 26.04, so the apt step fails before any analysis runs. Hosted runners already expose /dev/kvm; the emulator only needs permission to use it, so use the udev rule from the android-emulator-runner README instead.

runs-on is ubuntu-26.04 in this commit on purpose, to test the step on the image that broke. The next commit returns it to ubuntu-latest.
The 26.04 run of the new Enable KVM step passed end to end, so the job no longer needs a pinned image.
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

@pandeymangg
pandeymangg marked this pull request as ready for review November 9, 2026 12:35
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 9408b970-1f40-4f56-b24f-140fc7d9d3c9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@mattinannt
mattinannt added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit e8b62dc Nov 9, 2026
8 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.

2 participants