Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,24 +208,14 @@ On a browser or device, the script runs on Revyl's hosted runner, not on your ma

`Open` returns when the session is ready and Revyl reports the profile's status as `succeeded`, within the target's `StartTimeout` (10 minutes by default) and the caller's context. While it waits, it logs `<platform>: waiting for session profile <name>` through `OpenOptions.Log`. Verify never shows the script's output: Revyl doesn't send it, because setup scripts often print secrets. On a Mac computer, Revyl refuses commands and screen actions with HTTP 409 `session_profile_running` while the profile runs, without running them. If a call on a computer, such as one you `Attach` to, still gets that refusal, Verify waits and sends the same call again, for up to the start timeout (10 minutes for `Attach` and `CurrentComputer`), then returns `ErrTimeout` naming the profile. It repeats only calls Revyl refused that way.

### While Revyl's production backend doesn't run profiles

Revyl's production backend doesn't run session profiles for starts from Verify yet. Until it does:

- **`Profile: "<name>"`** returns `ErrNotAvailableOnPlatform`: `Revyl doesn't run session profiles for API starts yet; open the session without Profile.` Nothing runs. A refused iOS or Android start still shows in Revyl as one failed session; a refused web start or Mac create leaves nothing.
- **`Profile` left empty, with `session.default_profile` set:** Verify logs `Skipping default session profile <name>: Revyl doesn't run session profiles for API starts yet. Pass Profile: "none" to silence this.` through `OpenOptions.Log` and opens the session again without it, with a new session ID. `Open` then works as it did before profiles existed.
- **`Profile: "none"`** sends nothing and works everywhere.

Once the backend runs profiles, the same calls run them, with no change to your code.

### Session profile errors

Neither errors nor logs contain the script's content or output. Check the code with `errors.Is(err, verify.ErrSessionProfileFailed)` and read the details with `errors.As(err, &sdkError)`. A refusal keeps Revyl's code in `sdkError.Reason`, such as `verify.ReasonProjectNotFound` (`project_not_found`), and Revyl's sentence in the message.

| Error | When | What to do |
| --- | --- | --- |
| `ErrInvalidArgument` | `Profile` isn't a profile name (1-64 lowercase letters, digits or hyphens) or `"none"` | Pass a name from `session.profiles`, or `"none"` |
| `ErrNotAvailableOnPlatform` | A Linux computer; Revyl's backend doesn't run session profiles for API starts yet (see [above](#while-revyls-production-backend-doesnt-run-profiles)); or a session started without reporting its profile, which Verify then stops | Leave out `Profile`, or pass `Profile: "none"` |
| `ErrNotAvailableOnPlatform` | A Linux computer, or a session started without reporting its profile, which Verify then stops | Leave out `Profile`, or pass `Profile: "none"` |
| `ErrConfigNotFound` | `Profile` names a profile, but no `.revyl/config.yaml` is in the working directory or above it | Run from your app's checkout, or pass `Profile: "none"` |
| `ErrConfigInvalid` | `.revyl/config.yaml` isn't valid YAML, `project.id` isn't a UUID, or `session.profiles` doesn't define the name (the message lists the ones it does); or Revyl refused with `session_profile_undefined`, `project_not_found` (`project.id` isn't in this API key's organization) or `repository_connection_missing` (connect the repository's GitHub or GitLab app to the project in Revyl) | The message names the file and the fix |
| `ErrSessionProfileFailed` | Verify couldn't send the script (missing, outside the repository, not executable, over 64 KiB or not UTF-8); Revyl couldn't find it (`session_profile_script_unavailable`); or the profile ran and failed. `sdkError.Outcome` says how and `sdkError.FailureReason` says why | Follow the message, as the next table says. Revyl stops a session whose profile failed, so Verify doesn't |
Expand Down
12 changes: 1 addition & 11 deletions packages/verify/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,14 @@ On a browser or device, the script runs on Revyl's hosted runner, not on your ma

`open()` returns when the session is ready and Revyl reports the profile's status as `succeeded`, within the target's `startTimeout` (10 minutes by default). While it waits, it logs `<platform>: waiting for session profile <name>`. Verify never shows the script's output: Revyl doesn't send it, because setup scripts often print secrets. On a Mac computer, Revyl refuses commands and screen actions with HTTP 409 `session_profile_running` while the profile runs, without running them. If a call on a computer, such as one you `attach()` to, still gets that refusal, Verify waits and sends the same call again, for up to the start timeout (10 minutes for `attach()`), then throws `TIMEOUT` naming the profile. It repeats only calls Revyl refused that way.

### While Revyl's production backend doesn't run profiles

Revyl's production backend doesn't run session profiles for starts from Verify yet. Until it does:

- **`profile: '<name>'`** throws `NOT_AVAILABLE_ON_PLATFORM`: `Revyl doesn't run session profiles for API starts yet; open the session without profile.` Nothing runs. A refused iOS or Android start still shows in Revyl as one failed session; a refused web start or Mac create leaves nothing.
- **`profile` left out, with `session.default_profile` set:** Verify logs `Skipping default session profile <name>: Revyl doesn't run session profiles for API starts yet. Pass profile: 'none' to silence this.` and opens the session again without it, with a new session ID. `open()` then works as it did before profiles existed.
- **`profile: 'none'`** sends nothing and works everywhere.

Once the backend runs profiles, the same calls run them, with no change to your code.

### Session profile errors

Neither errors nor logs contain the script's content or output. A refusal keeps Revyl's code in `error.reason`, such as `project_not_found`, and Revyl's sentence in the message.

| Error | When | What to do |
| --- | --- | --- |
| `INVALID_ARGUMENT` | `profile` isn't a profile name (1-64 lowercase letters, digits or hyphens) or `'none'` | Pass a name from `session.profiles`, or `'none'` |
| `NOT_AVAILABLE_ON_PLATFORM` | A Linux computer; Revyl's backend doesn't run session profiles for API starts yet (see [above](#while-revyls-production-backend-doesnt-run-profiles)); or a session started without reporting its profile, which Verify then stops | Leave out `profile`, or pass `profile: 'none'` |
| `NOT_AVAILABLE_ON_PLATFORM` | A Linux computer, or a session started without reporting its profile, which Verify then stops | Leave out `profile`, or pass `profile: 'none'` |
| `CONFIG_NOT_FOUND` | `profile` names a profile, but no `.revyl/config.yaml` is in the current folder or above it | Run from your app's checkout, or pass `profile: 'none'` |
| `CONFIG_INVALID` | `.revyl/config.yaml` isn't valid YAML, `project.id` isn't a UUID, or `session.profiles` doesn't define the name (the message lists the ones it does); or Revyl refused with `session_profile_undefined`, `project_not_found` (`project.id` isn't in this API key's organization) or `repository_connection_missing` (connect the repository's GitHub or GitLab app to the project in Revyl) | The message names the file and the fix |
| `SESSION_PROFILE_FAILED` | Verify couldn't send the script (missing, outside the repository, not executable, over 64 KiB or not UTF-8); Revyl couldn't find it (`session_profile_script_unavailable`); or the profile ran and failed. `error.outcome` says how and `error.failureReason` says why | Follow the message, as the next table says. Revyl stops a session whose profile failed, so Verify doesn't |
Expand Down
12 changes: 1 addition & 11 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,24 +228,14 @@ On a browser or device, the script runs on Revyl's hosted runner, not on your ma

`open()` returns when the session is ready and Revyl reports the profile's status as `succeeded`, within the target's `start_timeout` (600 seconds by default). While it waits, it logs `<platform>: waiting for session profile <name>`. Verify never shows the script's output: Revyl doesn't send it, because setup scripts often print secrets. On a Mac computer, Revyl refuses commands and screen actions with HTTP 409 `session_profile_running` while the profile runs, without running them. If a call on a computer, such as one you `attach()` to, still gets that refusal, Verify waits and sends the same call again, for up to the start timeout (600 seconds for `attach()` and `current_computer()`), then raises `TIMEOUT` naming the profile. It repeats only calls Revyl refused that way.

### While Revyl's production backend doesn't run profiles

Revyl's production backend doesn't run session profiles for starts from Verify yet. Until it does:

- **`profile="<name>"`** raises `NOT_AVAILABLE_ON_PLATFORM`: `Revyl doesn't run session profiles for API starts yet; open the session without profile.` Nothing runs. A refused iOS or Android start still shows in Revyl as one failed session; a refused web start or Mac create leaves nothing.
- **`profile` left out, with `session.default_profile` set:** Verify logs `Skipping default session profile <name>: Revyl doesn't run session profiles for API starts yet. Pass profile="none" to silence this.` and opens the session again without it, with a new session ID. `open()` then works as it did before profiles existed.
- **`profile="none"`** sends nothing and works everywhere.

Once the backend runs profiles, the same calls run them, with no change to your code.

### Session profile errors

Neither errors nor logs contain the script's content or output. A refusal keeps Revyl's code in `error.reason`, such as `project_not_found`, and Revyl's sentence in the message.

| Error | When | What to do |
| --- | --- | --- |
| `INVALID_ARGUMENT` | `profile` isn't a profile name (1-64 lowercase letters, digits or hyphens) or `"none"` | Pass a name from `session.profiles`, or `"none"` |
| `NOT_AVAILABLE_ON_PLATFORM` | A Linux computer; Revyl's backend doesn't run session profiles for API starts yet (see [above](#while-revyls-production-backend-doesnt-run-profiles)); or a session started without reporting its profile, which Verify then stops | Leave out `profile`, or pass `profile="none"` |
| `NOT_AVAILABLE_ON_PLATFORM` | A Linux computer, or a session started without reporting its profile, which Verify then stops | Leave out `profile`, or pass `profile="none"` |
| `CONFIG_NOT_FOUND` | `profile` names a profile, but no `.revyl/config.yaml` is in the current folder or above it | Run from your app's checkout, or pass `profile="none"` |
| `CONFIG_INVALID` | `.revyl/config.yaml` isn't valid YAML, `project.id` isn't a UUID, or `session.profiles` doesn't define the name (the message lists the ones it does); or Revyl refused with `session_profile_undefined`, `project_not_found` (`project.id` isn't in this API key's organization) or `repository_connection_missing` (connect the repository's GitHub or GitLab app to the project in Revyl) | The message names the file and the fix |
| `SESSION_PROFILE_FAILED` | Verify couldn't send the script (missing, outside the repository, not executable, over 64 KiB or not UTF-8); Revyl couldn't find it (`session_profile_script_unavailable`); or the profile ran and failed. `error.outcome` says how and `error.failure_reason` says why | Follow the message, as the next table says. Revyl stops a session whose profile failed, so Verify doesn't, and `error.cleanup_status` is `not_required` |
Expand Down
Loading