Skip to content

Change the order of the process state listen invocation#1984

Merged
bidetofevil merged 1 commit intomainfrom
hho/process-state-invocation
Mar 5, 2025
Merged

Change the order of the process state listen invocation#1984
bidetofevil merged 1 commit intomainfrom
hho/process-state-invocation

Conversation

@bidetofevil
Copy link
Contributor

@bidetofevil bidetofevil commented Mar 4, 2025

Goal

Invoke the onBackground callback for the SessionOrchestrator last so that every other service has a chance to "do the wrap up before going into the background" thing.

Currently, this only affects the ANR service, which means it'll stop monitoring ANRs just before the session payload is taken. A side effect of this is our session payload creation time won't be counted in an on-going ANR, which seems to be correct to me as the app will soon not be on screen, so extending the blockage interval doesn't seem like it adds much value.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@codecov
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.32%. Comparing base (c5e174d) to head (a5c8271).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1984   +/-   ##
=======================================
  Coverage   85.32%   85.32%           
=======================================
  Files         482      482           
  Lines       11233    11233           
  Branches     1686     1686           
=======================================
  Hits         9585     9585           
  Misses        906      906           
  Partials      742      742           
Files with missing lines Coverage Δ
...al/session/lifecycle/EmbraceProcessStateService.kt 95.45% <100.00%> (ø)

@bidetofevil bidetofevil marked this pull request as ready for review March 5, 2025 01:01
@bidetofevil bidetofevil requested a review from a team as a code owner March 5, 2025 01:01
Copy link
Member

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor Author

bidetofevil commented Mar 5, 2025

Merge activity

  • Mar 5, 11:02 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Mar 5, 11:03 AM EST: Graphite rebased this pull request as part of a merge.
  • Mar 5, 11:17 AM EST: Graphite rebased this pull request as part of a merge.
  • Mar 5, 11:38 AM EST: A user merged this pull request with Graphite.

@bidetofevil bidetofevil force-pushed the hho/process-state-invocation branch 2 times, most recently from 14579a7 to 7488cca Compare March 5, 2025 16:10
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