cli: status, list and artifacts commands for async Maestro runs (TB-372) - #32
Merged
Merged
Conversation
…TB-372) --async previously left no way to come back for results from the CLI. - testingbot status --id <projectId> [--wait]: snapshot of runs and flows (last-attempt-wins verdicts); --wait reuses the foreground poll loop and live table. Exits 0 while running, 2 when failed. - testingbot artifacts --id <projectId>: downloads --report and/or --download-artifacts for a finished project via the existing code path; refuses a project that is still running and points to status --wait. - testingbot list [--count] [--offset]: newest-first page of projects with run/flow counts and dashboard URLs. All three accept --json/--json-file and share credential resolution. No server changes: GET /, GET /:id and the report endpoints already exist.
5 tasks
jochen-testingbot
changed the base branch from
feat/TB-371-json-output-exit-codes
to
main
September 2, 2026 08:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--asyncpreviously left no way to come back for results from the CLI. This adds three commands, all sharing credential resolution and the--json/--json-fileoutput from #31:testingbot status --id <projectId> [--wait]– snapshot of every run and flow with last-attempt-wins verdicts.--waitreuses the foreground poll loop and live flow table. Exit0while still running (JSONoutcome: "running"),2when failed,1on errors.testingbot artifacts --id <projectId>– downloads--report <html|html-detailed|junit>and/or--download-artifacts [all|failed]for a finished project via the existing fetchReports/downloadArtifacts path. Refuses a project that is still running and points tostatus --wait.testingbot list [--count] [--offset]– newest-first page of Maestro projects with state, run/flow counts and dashboard URLs;--jsonreturns{ provider, meta, projects }.No server changes:
GET /app-automate/maestro,GET /:idand the report endpoints already exist. Invalid--idvalues are rejected by Commander with usage help.Jira: TB-372 (epic TB-370).
Test plan
npm test— 680 passed (24 new: CLI wiring for all three commands, providerstatus()/artifacts()/listProjects())npm run lint,npm run buildtestingbot list --count 3,list --jsonstatus --id 91265(text +--json, exit 0),status --id 1→ not found, exit 1artifacts --id 91265 --report junit --report-output-dir …savedreport_run_94853.xml;artifacts --id 91265with nothing requested → exit 1maestro sample.ipa flow.yaml --async --json→outcome: started;status --id 91595 --waitshowed the live flow table through WAITING → RUNNING → PASSED and exited 0;artifacts --id 91595 --download-artifactsproduced a zip withFlow/logs/{maestro,vm}.txt,Flow/video/video.mp4,Flow/report.xmlandreport.xml