saucectl icon indicating copy to clipboard operation
saucectl copied to clipboard

Connect tunnel before preExec scripts

Open 3dd93 opened this issue 11 months ago • 1 comments

🚀 Feature Proposal

Connect tunnel before preExec scripts execution

Motivation

Right now we have split suites by shard but our global setup is getting executed once per shard making them to fail as we cannot login multiple times, to avoid that we put our login into a small node script and call it via preExec tag but unfortunately it runs before even the tunnel connection so we are getting a proxy issue and not able to reach the login page

Example

3dd93 avatar Mar 19 '24 18:03 3dd93

The tunnel should definitely be already set up by the time the commands from preExec are executed. However, you may likely need to configure your HTTP client with the tunnel proxy yourself – in your script – by reading the HTTP_PROXY environment variable, whose value will be akin to http://host:port.

alexplischke avatar Apr 03 '24 23:04 alexplischke