Repository navigation
feat(e2e): run e2e tests on DeviceCloud devices with @devicecloud.dev… - #346
Merged
Merged
Conversation
…/dcd/e2e A device provider for e2e (github.com/e2e-inc/e2e), published as a new entry point of this package. Each e2e worker gets its own DeviceCloud device session: the provider starts it, waits until the device is up and the build is installed, then hands e2e the address of the session's own agent-device daemon. e2e drives the device directly; the session is an ordinary one, in the console, recorded and billed as any other. Early access: the organization needs it turned on. - Credentials as the CLI takes them: DEVICE_CLOUD_API_KEY from the run's environment (or an apiKey option), DCD_API_URL checked by the same rules as --api-url before the key is sent anywhere. - The target's app.appPath is uploaded the way `dcd upload` does, once per run however many workers ask, and the lease reports installedApp so e2e installs nothing itself. appBinaryId uses a build already uploaded. - Polls and the engine request are sent again when the network loses one, as `dcd device` waits are; a session start never is. A failed acquire stops the session it started. - The e2e types are described by shape, so the package gains no dependency. Importing the entry point has no side effects. - package.json gains an exports map: ".", "./e2e", "./package.json", and "./dist/*" so every path that could be imported before still can. Checked with the packed package in a project of its own: the config type- checks against e2e 0.23.1 / @e2e-dev/mobile 0.12.7 and 0.24.0 / 0.12.8, and a deterministic test passed on a real device with both, uploading the APK from a local path.
Contributor
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
Merged
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.
…/dcd/e2e
A device provider for e2e (github.com/e2e-inc/e2e), published as a new entry point of this package. Each e2e worker gets its own DeviceCloud device session: the provider starts it, waits until the device is up and the build is installed, then hands e2e the address of the session's own agent-device daemon. e2e drives the device directly; the session is an ordinary one, in the console, recorded and billed as any other. Early access: the organization needs it turned on.
dcd uploaddoes, once per run however many workers ask, and the lease reports installedApp so e2e installs nothing itself. appBinaryId uses a build already uploaded.dcd devicewaits are; a session start never is. A failed acquire stops the session it started.Checked with the packed package in a project of its own: the config type- checks against e2e 0.23.1 / @e2e-dev/mobile 0.12.7 and 0.24.0 / 0.12.8, and a deterministic test passed on a real device with both, uploading the APK from a local path.
What & why
Type of change
fix— bug fixfeat— new featureperf— performance improvementrefactor— code change that's neither a fix nor a featuredocs— documentation onlychore/ci/build/test— tooling, no user-facing change!or PR notes aBREAKING CHANGE:)Checklist
pnpm lintpassespnpm typecheckpassespnpm buildpassesCHANGELOG.md(the release workflow handles this)README.md/STYLE_GUIDE.mdupdated if behaviour or output changedHow to test