-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(1.39.0) ENV variables are not persisting when set from a pipeline #2101
Comments
Seeing the same issue |
We're experiencing the same issue |
I've recreated this in a simple example. https://github.com/Fishbowler/maestro-examples/tree/env_vars/env-vars (I regret naming the folder and branch the same - sorry about that) Running
Log file: maestro.log |
Same here. |
Any updated regarding this issue? When we use the command export MAESTRO_VERSION=1.38.1 it seems to work fine ONLY if used together with |
I just spent a day trying to debug why this was not working, I have had to downgrade to |
Locally, I'm working around this in v1.39.1 by passing them tiresomely at the CLI. e.g. For the OP's example, |
Be aware that for env vars passed to maestro they need a preceding
|
A quick conversation in Slack with Mário Raček set me onto a key difference: running an individual flow accurately captures variables from the environment. Running a folder does not. This offers a key avenue for investigation in the CLI codebase ❤️ |
* Add e2e-test for environment variables * Apply environment variables to test suite runs (fixes #2101)
* Add e2e-test for environment variables * Apply environment variables to test suite runs (fixes mobile-dev-inc#2101)
* Add e2e-test for environment variables * Apply environment variables to test suite runs (fixes mobile-dev-inc#2101)
This fix will be included in the next CLI release. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Is there an existing issue for this?
Steps to reproduce
Run maestro test on a flow from a gitlab pipeline - using a shell-script installed runner on the host machine.
Actual results
I have a niche use-case with maestro, with my app i'm using a shell-script gitlab runner to run test flows said runner, on a host machine.
Env variables are set from a pipeline:
- export MAESTRO_TEST_EMAIL="$TEST_EMAIL"
CLI 1.38.1
- inputText: ${MAESTRO_TEST_EMAIL}
worksCLI 1.39.0
- inputText: ${MAESTRO_TEST_EMAIL}
returns nullExpected results
Expect the env variables to persist in maestro tests when set from a gitlab pipeline.
About app
App is a native android application
About environment
MacOS Sonoma
Logs
Logs
Maestro version
1.39.0
How did you install Maestro?
install script (https://get.maestro.mobile.dev)
Anything else?
N/A
The text was updated successfully, but these errors were encountered: