Skip to content

Repeat am kill until the backgrounded example app is gone - #30

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
c4-am-kill
Oct 13, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
c4-am-kill

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Owner

ci/android/example.sh sometimes failed with "the process outlived am kill" after the example app went home: 4 of 157 example jobs since 2026-10-08, including #22 and #28's first run. am kill goes through killBackgroundProcesses, which in AOSP skips any process whose oom adj is below ProcessList.SERVICE_ADJ (500). An app still in the home transition sits at VISIBLE_APP_ADJ (100), so the script's single am kill two seconds after going home could find nothing to kill on a slow emulator.

The script now repeats am kill once a second until pidof finds no process, and fails after 30 s. It touches different lines from #28 and merges cleanly with it.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

⚙️ Run configuration
  • Configuration used: Repository: LucaCappelletti94/coderabbit/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: baac89ef-a058-4f35-b2af-c406300f8766
  • 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

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.60%. Comparing base (c6810dc) to head (c74b0e2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #30   +/-   ##
=======================================
  Coverage   92.60%   92.60%           
=======================================
  Files          32       32           
  Lines        2865     2865           
  Branches       39       39           
=======================================
  Hits         2653     2653           
  Misses        185      185           
  Partials       27       27           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@LucaCappelletti94
LucaCappelletti94 merged commit 9b1c5b3 into main Oct 13, 2026
37 checks passed
@LucaCappelletti94
LucaCappelletti94 deleted the c4-am-kill branch October 15, 2026 09:16
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