Open growse opened 1 year ago
Hi @growse are you still receiving this issue?
Hi @growse, I've spent some time looking into this over the last few days, and it looks like using this command with environment variables is not currently possible with the state of the orb. Changing it to allow for this usage would require the step to be rewritten and remove other features that have been added to this command, such as running in background. As a result, I am going to backlog this issue for now and keep an eye on it to see how the orb changes in the coming months and revisit it periodically.
@ryanbourdais, any update on this? Circle-ci does not provide a way to invalidate the cache other than simply renaming the cache key, because of that, I need an easy way without changing the code of the application to invalidate the cache used by restore-gradle-cache-prefix
and defines the API version of the android system-image
- android/start-emulator-and-run-tests:
restore-gradle-cache-prefix: ${ANDROID_LARGE_CACHE_VERSION}-android-${ANDROID_LARGE_API_VERSION}-large
system-image: system-images;android-${ANDROID_LARGE_API_VERSION};google_apis;x86_64
additional-avd-args: --device pixel_5
avd-name: pixel5_api_31
Hi @luzfcb, no there is no update on this currently.
Orb version 2.1.1
What happened
Orb can no longer accept step arguments that are environment variables.
I have a step that looks like this:
This works great on 2.1.0. On 2.1.1 however, it fails at "Create avd 'test'":
(See https://app.circleci.com/pipelines/github/owntracks/android/1025/workflows/7844a0b9-deec-447a-838e-99d67c476e2a/jobs/4071)
If I replace
system-image: $SYSTEM_IMAGE
with a hard-coded value, the create AVD stage works, but then the "Run tests with max tries of 2" step fails with:(See https://app.circleci.com/pipelines/github/owntracks/android/1022/workflows/502e1a7a-d62e-43d8-9110-c3dfb6c649ee/jobs/4062)
Expected behavior
Environemnt var values should be passed through to the orb correctly, as they were in 2.1.0