Skip to content

maestro: ship --config as config.yaml at the root of the flows zip - #87

Open
jochen-testingbot wants to merge 1 commit into
mainfrom
fix/maestro-custom-config-name
Open

jochen-testingbot wants to merge 1 commit into
mainfrom
fix/maestro-custom-config-name

Conversation

@jochen-testingbot

Copy link
Copy Markdown
Contributor

Problem

testingbot maestro app.apk ./flows --config ci-config.yaml zipped the config under its own name, or as ../ci-config.yaml when it sits outside the flows directory. On the device Maestro only treats config.yaml / config.yml as configuration, so it:

  • ran the custom config as a flow, which failed with Config Field Required at …/flows/custom-config.yaml;
  • ignored its includeTags and env.

I reproduced this on production on 2026-12-01 (Pixel 8 emulator, CLI 1.6.0).

Fix

  • archiveNameFor: the --config file, matched by resolved path, is stored as config.yaml; every other file keeps its relative name.
  • zipBaseDirectory: the archive root comes from the flow files alone, so a config outside the flows doesn't push them into a subfolder.
  • The dry-run zip listing uses the same names.

Tests

New tests/providers/maestro_config_zip.test.ts. The full suite passes (1082 tests); tsc, eslint and prettier are clean.

Verified on production

  • The dry run lists cfg.yaml and config.yaml at the root.
  • On a real run the config is no longer run as a flow, and its includeTags apply.
  • The config's env still doesn't reach the flow: Maestro's workspace config has no env. testingbot/vm develop needs to apply it; that's a separate vm PR.

A custom --config file was zipped under its own name (ci-config.yaml, or
../ci-config.yaml when it lives outside the flows directory). Maestro on the
device only reads config.yaml/config.yml, so it ran the file as a flow
('Config Field Required') and ignored its tags and env. Verified on
production (Pixel 8 emulator, 2026-12-01): with this change the config is no
longer run as a flow and the dry-run shows config.yaml next to the flows.

The archive root is now the flows' common directory even when the config
lives elsewhere, so the flows don't end up in a sub directory.
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

Successfully merging this pull request may close these issues.

1 participant