-
Notifications
You must be signed in to change notification settings - Fork 60
feat(cli): self-hosted (non-BrowserStack) Maestro + Percy support — V1 #2261
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
Open
Sriram567
wants to merge
24
commits into
master
Choose a base branch
from
feat/self-hosted-maestro-percy-v1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
613d8c9
feat(core): self-hosted Maestro relay — sessionId optional + PERCY_MA…
Sriram567 55574ba
fix(core): self-hosted glob — enable `dot: true` for Maestro `.maestr…
Sriram567 eeec0a8
feat(core): iOS self-hosted element-region resolver — probe 7001 + ls…
Sriram567 d0c61bb
test(core): cross-platform parity — iOS env-missing now returns self-…
Sriram567 8aa75c6
feat(cli-exec): export PERCY_CLI_API alongside PERCY_SERVER_ADDRESS
Sriram567 690c500
feat(cli-app): auto-inject -e PERCY_SERVER for `maestro test`
Sriram567 d9d508d
feat(cli-app): auto-resolve PERCY_MAESTRO_SCREENSHOT_DIR + --test-out…
Sriram567 ac86447
feat(core): explicit runtime field gates /percy/maestro-screenshot se…
Sriram567 a3d9673
fix(core): correct self-hosted maestro runtime routing + stabilize re…
Sriram567 c01a59d
test(core): cover self-hosted maestro coverage gaps (api.js:667, maes…
Sriram567 816d37a
test(core): cover remaining maestro-hierarchy iOS self-hosted branch …
Sriram567 05b2295
test(core): fix lsof multi-match test row format to cover the >1 branch
Sriram567 d6a88d6
test(core): cover the no-port lsof row branch (maestro-hierarchy.js:1…
Sriram567 67a14bd
Merge branch 'master' of github.com:percy/cli into feat/self-hosted-m…
Sriram567 1487d9a
refactor(core,cli-exec): address Rishi review — drop runtime field + …
Sriram567 13616a8
feat(cli-app): prescribe iOS Maestro driver port via --driver-host-po…
Sriram567 9f40e23
refactor(core): remove iOS port-discovery cascade after prescribe shift
Sriram567 a2adad6
fix(cli-app): detect --flag=value equals-form for driver-host-port + …
Sriram567 a7bc61d
Merge remote-tracking branch 'origin/master' into feat/self-hosted-ma…
Sriram567 841b8ad
test(core): use os.tmpdir() for self-hosted maestro fixtures (fix Win…
Sriram567 9c8754a
fix(core): make self-hosted maestro relay path-handling Windows-portable
Sriram567 e22793d
fix(core): forward-slash normalize both sides of self-hosted realpath…
Sriram567 8b60341
fix(self-hosted maestro): align iOS port discovery with Maestro 2.4.0…
Sriram567 93fb5c2
fix(cli-app): inject maestro env+output-dir past global parent flags
Sriram567 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| export { default, app } from './app.js'; | ||
| export { exec, start, stop, ping } from './exec.js'; | ||
| export { exec, start, stop, ping, maybeInjectMaestroServer, maybeInjectScreenshotDir } from './exec.js'; |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all this check SDK should do using existing healthcheck endpoint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The healthcheck would work IF the SDK could read
PERCY_SERVER_ADDRESSfrom its process env — but it can't. Maestro runs JS scripts inside a GraalJS sandbox that doesn't inherit the parent process's environment. The only channel into the sandbox is Maestro's-e KEY=VALUECLI flag.So when a customer runs
percy app:exec -- maestro test ..., the env var we set on the wrapping process never reaches the SDK; the SDK has no address to healthcheck against, falls back tolocalhost:5338, and if the CLI is on a non-default port the snapshot silently fails.maybeInjectMaestroServerexists specifically to bridge that gap — it splices-e PERCY_SERVER=<addr>into themaestro testargv so the value crosses the GraalJS boundary. It's not a check; it's the only mechanism that gets the address through. The WARN is just a safety net for when percy itself didn't start (e.g. missing token) so the customer gets an actionable message instead of silent zero-snapshot builds.Happy to add a comment block on top of the helper calling out the GraalJS-sandbox rationale so it's not a mystery to future readers.