Skip to content

Environment variables not working in Web Beta #2587

@CalvinNFT

Description

@CalvinNFT

About

When running maestro test --headless tests/test-suite.yaml an error of Want to use 0 devices, which is not enough to run 1 shards. Missing 1 device(s). [\n] Not enough devices connected (1) to run the requested number of shards (1).

The issue arose after converting a hardcoded URL value to an environment variable. The issue persists with all methods of passing params / env variables to yaml files, including -e flag.

Reproduction
Test script setting the env:

#!/bin/bash

export MAESTRO_URL="https://example.com"
maestro test --headless tests/test.yaml

Test file:

url: ${MASTRO_URL}
---
- launchApp

Expected result

Open and run tests in the browser (Chromium).
NOTICE: If the ${MASTRO_URL} is changed to https://example.com the test suite runs without error.

Conclusion
Environment variables do not work currently in the web beta due to a bug.

Issue Logs and CLI version
2025-07-17_160048.zip
2025-07-17_160052.zip
2025-07-17_160103.zip
2025-07-17_160314.zip
2025-07-17_160420.zip
2025-07-17_160528.zip

❯ maestro -v
1.41.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions