Skip to content
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

Open
1 task done
nboxill opened this issue Oct 18, 2024 · 5 comments
Open
1 task done

(1.39.0) ENV variables are not persisting when set from a pipeline #2101

nboxill opened this issue Oct 18, 2024 · 5 comments

Comments

@nboxill
Copy link

nboxill commented Oct 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

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} works

CLI 1.39.0

- inputText: ${MAESTRO_TEST_EMAIL} returns null

Expected 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
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

1.39.0

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

N/A

Copy link

linear bot commented Oct 18, 2024

@nboxill nboxill changed the title (1.39.0) ENV variables no longer working when set from a pipeline (1.39.0) ENV variables are not persisting when set from a pipeline Oct 18, 2024
@arancauchi
Copy link

Seeing the same issue

@freak4pc
Copy link

We're experiencing the same issue

@Fishbowler
Copy link
Contributor

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 run.sh gives:

Running on emulator-5554                                                        
                                                                                
 ║                                                                              
 ║  > Flow: flow                                                                
 ║                                                                              
 ║    ✅   Run test.js                                                          
 ║         Log messages:                                                        
 ║           Running test.js                                                    
 ║           MAESTRO_EXAMPLE: undefined                                         
 ║           The env var $MAESTRO_EXAMPLE should be 'potato' but it is not      
 ║    ✅   Run test.js                                                          
 ║         Log messages:                                                        
 ║           Running test.js                                                    
 ║           MAESTRO_EXAMPLE: undefined                                         
 ║           The env var $MAESTRO_EXAMPLE should be 'potato' but it is not      
 ║    ✅   Run ${console.log('MAESTRO_EXAMPLE:' + MAESTRO_EXAMPLE)}             
 ║         Log messages:                                                        
 ║           MAESTRO_EXAMPLE:$MAESTRO_EXAMPLE 

Log file: maestro.log

@woytekn
Copy link

woytekn commented Oct 22, 2024

Same here

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

No branches or pull requests

5 participants