Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
6 changes: 6 additions & 0 deletions docs/sources/k6/next/using-k6/k6-options/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,12 @@ export const options = {

{{< /code >}}

{{< admonition type="note" >}}

In Grafana Cloud k6, the maximum allowed value for `setupTimeout` is **10 minutes** (`"600s"` or `"10m"`). If `setup()` doesn't complete within this time, the test fails before any VUs start.

{{< /admonition >}}

## Show logs

A boolean specifying whether the cloud logs are printed out to the terminal. Available in `k6 cloud run` command.
Expand Down
4 changes: 4 additions & 0 deletions docs/sources/k6/next/using-k6/test-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ export default function (data) {
}
```

The `setup()` function must complete within the configured [`setupTimeout`](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/k6-options/reference/#setup-timeout) (default: 60 seconds). If it exceeds this timeout, the test fails before any VUs start.

In Grafana Cloud k6, `setupTimeout` has a maximum limit of 10 minutes. If your `setup()` function requires long-running operations, consider moving heavy work to an external process and passing the results to your test.

### Skip setup and teardown execution

You can skip the execution of setup and teardown stages using the options `--no-setup` and
Expand Down
6 changes: 6 additions & 0 deletions docs/sources/k6/v1.6.x/using-k6/k6-options/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,12 @@ export const options = {

{{< /code >}}

{{< admonition type="note" >}}

In Grafana Cloud k6, the maximum allowed value for `setupTimeout` is **10 minutes** (`"600s"` or `"10m"`). If `setup()` doesn't complete within this time, the test fails before any VUs start.

{{< /admonition >}}

## Show logs

A boolean specifying whether the cloud logs are printed out to the terminal. Available in `k6 cloud run` command.
Expand Down
4 changes: 4 additions & 0 deletions docs/sources/k6/v1.6.x/using-k6/test-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ export default function (data) {
}
```

The `setup()` function must complete within the configured [`setupTimeout`](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/k6-options/reference/#setup-timeout) (default: 60 seconds). If it exceeds this timeout, the test fails before any VUs start.

In Grafana Cloud k6, `setupTimeout` has a maximum limit of 10 minutes. If your `setup()` function requires long-running operations, consider moving heavy work to an external process and passing the results to your test.

### Skip setup and teardown execution

You can skip the execution of setup and teardown stages using the options `--no-setup` and
Expand Down
Loading