Status Update
Comments
di...@google.com <di...@google.com>
vi...@google.com <vi...@google.com>
ma...@google.com <ma...@google.com> #2
What version of kotlin are you using?
jg...@google.com <jg...@google.com> #3
1.7.10
ma...@google.com <ma...@google.com> #6
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 Canary 6
- Android Gradle Plugin 8.3.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
rp...@google.com <rp...@google.com> #7
Arif, is this a know issue with instrumented tests?
ar...@google.com <ar...@google.com> #8
No this is not a known issue with instrumented tests. Let me see if I can repro.
pr...@google.com <pr...@google.com> #9
This is one of the Studio bugs that gated Baseline Profiles Studio Template in Hedgehog.
Studio team committed to fix it in Iguana-Canary to enable the Baseline Profiles Studio Template in Iguana.
ya...@google.com <ya...@google.com>
ya...@google.com <ya...@google.com>
mi...@google.com <mi...@google.com> #10
Hi, I see the test APK containing the flag in the manifest that debuggable="true"
.
ml...@google.com <ml...@google.com> #11
This is correct because the test APK runs out of the target app process and this is also why it can be running with debugger.
pr...@google.com <pr...@google.com>
du...@google.com <du...@google.com> #12
Given what I recall of AndroidProcessHandler (the thing that actually prints out "Waiting for processes <name>"), it's probably being handed target app's package name, rather than test APK's package name. If #6 cut and pasted, then that seems to be the case since it's not waiting for com.example.myapplication.test
(test APK), but for com.example.myapplication
(target APK) instead.
But I'll take a look.
ml...@google.com <ml...@google.com> #13
I think there must've been some "recent" (<1year ago) change, because it used to work in previous versions of Studio.
ml...@google.com <ml...@google.com> #14
Just checked in a project and target
package (which is wrong) and not for the test
package.
du...@google.com <du...@google.com> #15
#13: yes, the whole "build execution" pipeline has been completely refactored over the past year...this is probably one of the bugs that has slipped through
du...@google.com <du...@google.com> #16
Hey Polina, we're probably just passing in the wrong process to wait on from the Config Executors.
ko...@google.com <ko...@google.com> #17
Hi!
I talked with test team about it in past, we need to make decision here:
I provided in this class both package and testPackage values, but I don't know how do we decide with one to choose in which case
@pa...@google.com could you look into this ?
pr...@google.com <pr...@google.com> #18
ar...@google.com <ar...@google.com> #19
Yuki, can you take a look while Paige is OOO this week?
hu...@google.com <hu...@google.com>
hu...@google.com <hu...@google.com> #20
We cannot use package name here as a debug target process name can be different. AndroidModel has implemented a logic to determine the correct target process name for testing. I'll create a patch.
hu...@google.com <hu...@google.com> #21
I created a patch for fixing this. It turned out self-instrumenting experimental flag has not been exposed to builder model so I needed to update the builder model. I'll clean up my patch and send it for review shortly.
pr...@google.com <pr...@google.com> #22
hu...@google.com <hu...@google.com>
hu...@google.com <hu...@google.com> #23
My patch was merged on Oct 27. It will be included in the Canary 11 build.
an...@google.com <an...@google.com> #24
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 Canary 12
- Android Gradle Plugin 8.3.0-alpha12
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ma...@google.com <ma...@google.com> #25
We just updated androidx to Iguana Beta 1 and the issue is still ongoing.
I'm attaching some screenshots.
hu...@google.com <hu...@google.com> #26
Hi Marcello,
Screenshot doesn't give us much information to investigate the cause. It looks like the test was executed in non-debugging run to me, and it's likely to be caused by the separate root cause. Could you open a new bug and attach all other logs?
ma...@google.com <ma...@google.com> #27
I created
hu...@google.com <hu...@google.com> #28
I fixed the issue with self-instrumenting confusing the target debuggee process name in this bug. I renamed the issue title for clarify. Let's continue to discuss in
ma...@google.com <ma...@google.com> #29
A clarification: the conditions of
In both cases:
- there is a test module
- the test module is self-instrumenting
- the tested variant is non-debuggable
- the issue is triggered when trying to debug an integration test of the test module
In this bug AS hangs "Waiting for process". In
This is why I initially reopened. I'm ok in continuing the discussion in the other bug.
Description
AS 2022.3.1.13 C3 doesn't allow debugging integration tests when the tested variant is non debuggable.
This is what we normally do with benchmark tests: the app variant is non debuggable but the instrumentation apk is debuggable and we still expect to debug the instrumentation code. To achieve this, benchmark tests run in a
com.android.test
module, out of app process. This is achieved setting the following flag:Currently it's not possible to debug benchmark and baseline profile generator tests.