From 3ceabeed4afefa64eded0dd61d4497a742c7fbc9 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Tue, 8 Jul 2025 13:18:14 -0500 Subject: [PATCH 1/3] Add missing CLI options\ Fix `create token --admin` name in frontmatter Improve schedule trigger docs with more detail: 1. Core API documentation (/api-docs/influxdb3/core/v3/ref.yml): - Added missing duration units (weeks, months, years) - Added "Maximum interval: 1 year" 2. Enterprise API documentation (/api-docs/influxdb3/enterprise/v3/ref.yml): - Added missing duration units (weeks, months, years) - Added "Maximum interval: 1 year" 3. CLI reference documentation (/content/shared/influxdb3-cli/create/trigger.md): - Added complete list of supported duration units - Added "Maximum interval is 1 year" note All documentation now consistently reflects: - The complete set of supported duration units for every triggers - The 1-year maximum limit for interval-based scheduling - Clear examples showing the syntax --- api-docs/influxdb3/core/v3/ref.yml | 7 +- api-docs/influxdb3/enterprise/v3/ref.yml | 7 +- .../core/reference/cli/influxdb3/_index.md | 2 +- .../cli/influxdb3/create/database.md | 2 +- .../cli/influxdb3/create/token/admin.md | 6 +- .../cli/influxdb3/create/token/admin.md | 6 +- .../influxdb3-cli/create/token/_index.md | 9 +- .../shared/influxdb3-cli/create/trigger.md | 125 +++++++++++++++++- 8 files changed, 149 insertions(+), 15 deletions(-) diff --git a/api-docs/influxdb3/core/v3/ref.yml b/api-docs/influxdb3/core/v3/ref.yml index 3a604e4dd..c27355b9c 100644 --- a/api-docs/influxdb3/core/v3/ref.yml +++ b/api-docs/influxdb3/core/v3/ref.yml @@ -2029,11 +2029,16 @@ components: ### Interval-based scheduling Format: `every:DURATION` - Supported durations: `s` (seconds), `m` (minutes), `h` (hours), `d` (days): + Supported durations: `s` (seconds), `m` (minutes), `h` (hours), `d` (days), `w` (weeks), `M` (months), `y` (years): - `every:30s` - Every 30 seconds - `every:5m` - Every 5 minutes - `every:1h` - Every hour - `every:1d` - Every day + - `every:1w` - Every week + - `every:1M` - Every month + - `every:1y` - Every year + + **Maximum interval**: 1 year ### Table-based triggers - `all_tables` - Triggers on write events to any table in the database diff --git a/api-docs/influxdb3/enterprise/v3/ref.yml b/api-docs/influxdb3/enterprise/v3/ref.yml index 493ff2c42..3648a08a8 100644 --- a/api-docs/influxdb3/enterprise/v3/ref.yml +++ b/api-docs/influxdb3/enterprise/v3/ref.yml @@ -2176,11 +2176,16 @@ components: ### Interval-based scheduling Format: `every:DURATION` - Supported durations: `s` (seconds), `m` (minutes), `h` (hours), `d` (days): + Supported durations: `s` (seconds), `m` (minutes), `h` (hours), `d` (days), `w` (weeks), `M` (months), `y` (years): - `every:30s` - Every 30 seconds - `every:5m` - Every 5 minutes - `every:1h` - Every hour - `every:1d` - Every day + - `every:1w` - Every week + - `every:1M` - Every month + - `every:1y` - Every year + + **Maximum interval**: 1 year ### Table-based triggers - `all_tables` - Triggers on write events to any table in the database diff --git a/content/influxdb3/core/reference/cli/influxdb3/_index.md b/content/influxdb3/core/reference/cli/influxdb3/_index.md index 831597dc6..b0788e001 100644 --- a/content/influxdb3/core/reference/cli/influxdb3/_index.md +++ b/content/influxdb3/core/reference/cli/influxdb3/_index.md @@ -49,7 +49,7 @@ influxdb3 [GLOBAL-OPTIONS] [COMMAND] | | `--io-runtime-thread-keep-alive` | Custom timeout for a thread in the blocking pool of the tokio IO runtime | | | `--io-runtime-thread-priority` | Set thread priority tokio IO runtime workers | | `-h` | `--help` | Print help information | -| | `--help-all` | Print detailed help information | +| | `--help-all` | Print detailed help information including runtime configuration options | | `-V` | `--version` | Print version | ### Option environment variables diff --git a/content/influxdb3/core/reference/cli/influxdb3/create/database.md b/content/influxdb3/core/reference/cli/influxdb3/create/database.md index 39a9c016a..970660fb4 100644 --- a/content/influxdb3/core/reference/cli/influxdb3/create/database.md +++ b/content/influxdb3/core/reference/cli/influxdb3/create/database.md @@ -11,5 +11,5 @@ source: /shared/influxdb3-cli/create/database.md --- diff --git a/content/influxdb3/core/reference/cli/influxdb3/create/token/admin.md b/content/influxdb3/core/reference/cli/influxdb3/create/token/admin.md index a2646e4ec..37f212eff 100644 --- a/content/influxdb3/core/reference/cli/influxdb3/create/token/admin.md +++ b/content/influxdb3/core/reference/cli/influxdb3/create/token/admin.md @@ -1,11 +1,11 @@ --- -title: influxdb3 create token admin +title: influxdb3 create token --admin description: > - The `influxdb3 create token admin` command creates an operator token or named admin token with full administrative privileges for server actions. + The `influxdb3 create token --admin` subcommand creates an operator token or named admin token with full administrative privileges for server actions. menu: influxdb3_core: parent: influxdb3 create token - name: influxdb3 create token admin + name: influxdb3 create token --admin weight: 400 source: /shared/influxdb3-cli/create/token/admin.md --- diff --git a/content/influxdb3/enterprise/reference/cli/influxdb3/create/token/admin.md b/content/influxdb3/enterprise/reference/cli/influxdb3/create/token/admin.md index 7c4bab6bc..e6a0f8168 100644 --- a/content/influxdb3/enterprise/reference/cli/influxdb3/create/token/admin.md +++ b/content/influxdb3/enterprise/reference/cli/influxdb3/create/token/admin.md @@ -1,11 +1,11 @@ --- -title: influxdb3 create token admin +title: influxdb3 create token --admin description: > - The `influxdb3 create token admin` command creates an operator token or named admin token with full administrative privileges for server actions. + The `influxdb3 create token --admin` subcommand creates an operator token or named admin token with full administrative privileges for server actions. menu: influxdb3_enterprise: parent: influxdb3 create token - name: influxdb3 create token admin + name: influxdb3 create token --admin weight: 400 source: /shared/influxdb3-cli/create/token/admin.md --- diff --git a/content/shared/influxdb3-cli/create/token/_index.md b/content/shared/influxdb3-cli/create/token/_index.md index d1cb2139f..d2cd5f6b9 100644 --- a/content/shared/influxdb3-cli/create/token/_index.md +++ b/content/shared/influxdb3-cli/create/token/_index.md @@ -20,9 +20,10 @@ influxdb3 create token ## Options -| Option | | Description | -| :----- | :------- | :--------------------- | -| |`--admin`| Create an admin token | -| `-h` | `--help` | Print help information | +| Option | | Description | +|:-------|:----------|:-----------------------| +| | `--admin` | Create an admin token | +| `-h` | `--help` | Print help information | +| | `--help-all` | Print detailed help information diff --git a/content/shared/influxdb3-cli/create/trigger.md b/content/shared/influxdb3-cli/create/trigger.md index bc4bfd074..121fd4964 100644 --- a/content/shared/influxdb3-cli/create/trigger.md +++ b/content/shared/influxdb3-cli/create/trigger.md @@ -28,12 +28,15 @@ influxdb3 create trigger [OPTIONS] \ | | `--token` | _({{< req >}})_ Authentication token | | | `--plugin-filename` | _({{< req >}})_ Name of the file, stored in the server's `plugin-dir`, that contains the Python plugin code to run | | | `--trigger-spec` | Trigger specification: `table:`, `all_tables`, `every:`, `cron:`, or `request:` | +| | `--trigger-arguments` | Additional arguments for the trigger, in the format `key=value`, separated by commas (for example, `arg1=val1,arg2=val2`) | | | `--disabled` | Create the trigger in disabled state | +| | `--error-behavior` | Error handling behavior: `log`, `retry`, or `disable` | +| | `--run-asynchronous` | Run the trigger asynchronously, allowing multiple triggers to run simultaneously (default is synchronous) | | | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) | | `-h` | `--help` | Print help information | | | `--help-all` | Print detailed help information | -If you want to use a plugin from the [Plugin Library](https://github.com/influxdata/influxdb3_plugins) repo, use the url path with `gh:` specified as the prefix. +If you want to use a plugin from the [Plugin Library](https://github.com/influxdata/influxdb3_plugins) repo, use the URL path with `gh:` specified as the prefix. For example, to use the [System Metrics](https://github.com/influxdata/influxdb3_plugins/blob/main/examples/schedule/system_metrics/system_metrics.py) plugin, the plugin filename is `gh:examples/schedule/system_metrics/system_metrics.py`. @@ -51,6 +54,17 @@ You can use the following environment variables to set command options: The following examples show how to use the `influxdb3 create trigger` command to create triggers in different scenarios. +- [Create a trigger for a specific table](#create-a-trigger-for-a-specific-table) +- [Create a trigger for all tables](#create-a-trigger-for-all-tables) +- [Create a trigger with a schedule](#create-a-trigger-with-a-schedule) +- [Create a trigger for HTTP requests](#create-a-trigger-for-http-requests) +- [Create a trigger with additional arguments](#create-a-trigger-with-additional-arguments) +- [Create a disabled trigger](#create-a-disabled-trigger) +- [Create a trigger with error handling](#create-a-trigger-with-error-handling) + +--- + +Replace the following placeholders with your values: - {{% code-placeholder-key %}}`DATABASE_NAME`{{% /code-placeholder-key %}}: Database name - {{% code-placeholder-key %}}`AUTH_TOKEN`{{% /code-placeholder-key %}}: Authentication token @@ -77,6 +91,8 @@ influxdb3 create trigger \ TRIGGER_NAME ``` +`PLUGIN_FILENAME` must implement the [data write plugin](/influxdb3/version/plugins/#create-a-data-write-plugin) interface. + ### Create a trigger for all tables Create a trigger that applies to all tables in the specified database. @@ -92,8 +108,77 @@ influxdb3 create trigger \ TRIGGER_NAME ``` +`PLUGIN_FILENAME` must implement the [data write plugin](/influxdb3/version/plugins/#create-a-data-write-plugin) interface. + This is useful when you want a trigger to apply to any table in the database, regardless of name. +### Create a trigger with a schedule + +Create a trigger that runs at a specific interval using a duration. Supported duration units: `s` (seconds), `m` (minutes), `h` (hours), `d` (days), `w` (weeks), `M` (months), `y` (years). Maximum interval is 1 year. + +```bash +influxdb3 create trigger \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --plugin-filename \ + --trigger-spec every:5m \ + TRIGGER_NAME +``` + +Create a trigger that runs based on a cron schedule using extended 6-field cron format. The cron expression follows the format: + +```console +second minute hour day_of_month month day_of_week +``` + +Fields: +- **second**: 0-59 +- **minute**: 0-59 +- **hour**: 0-23 +- **day_of_month**: 1-31 +- **month**: 1-12 or JAN-DEC +- **day_of_week**: 0-7 (0 or 7 is Sunday) or SUN-SAT + +Example: Run at 6:00 AM every weekday (Monday-Friday): + +```bash +influxdb3 create trigger \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --plugin-filename \ + --trigger-spec "cron:0 0 6 * * 1-5" \ + TRIGGER_NAME +``` + +`PLUGIN_FILENAME` must implement the [scheduled plugin](/influxdb3/version/plugins/#create-a-scheduled-plugin) interface. + +### Create a trigger for HTTP requests + +Create a trigger that provides an API endpoint and processes HTTP requests. + +```bash +influxdb3 create trigger \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --plugin-filename PLUGIN_FILENAME \ + --trigger-spec request:REQUEST_PATH \ + TRIGGER_NAME +``` + +`PLUGIN_FILENAME` must implement the [HTTP request plugin](/influxdb3/version/plugins/#create-an-http-request-plugin) interface. + +### Create a trigger with additional arguments + +```bash +influxdb3 create trigger \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --plugin-filename \ + --trigger-spec table:TABLE_NAME \ + --trigger-arguments arg1=value1,arg2=value2 \ + TRIGGER_NAME +``` + ### Create a disabled trigger Create a trigger in a disabled state. @@ -112,4 +197,42 @@ influxdb3 create trigger \ Creating a trigger in a disabled state prevents it from running immediately. You can enable it later when you're ready to activate it. +### Create a trigger with error handling + +Log the error to the service output and the `system.processing_engine_logs` table: + +```bash +influxdb3 create trigger \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --plugin-filename \ + --trigger-spec table:TABLE_NAME \ + --error-behavior log \ + TRIGGER_NAME +``` + +Rerun the trigger if it fails: + +```bash +influxdb3 create trigger \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --plugin-filename \ + --trigger-spec table:TABLE_NAME \ + --error-behavior retry \ + TRIGGER_NAME +``` + +Disable the trigger if it fails: + +```bash +influxdb3 create trigger \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --plugin-filename \ + --trigger-spec table:TABLE_NAME \ + --error-behavior disable \ + TRIGGER_NAME +``` + {{% /code-placeholders %}} From 7674012aed0dfe11a3bed91bc4a86a21862ebcd5 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Tue, 8 Jul 2025 19:38:44 -0500 Subject: [PATCH 2/3] feat(influxdb3): Add missing precision CLI option, fix and enhance write documentation.\ - Verified precision behavior in source code. Added auto-detection note for all APIs: Added a note explaining that InfluxDB 3 uses timestamp magnitude to auto-detect precision by default, and users can specify precision to avoid ambiguity. - Fix allowed precision values\ - Add examples --- .claude/commands/analyze-api-source.md | 25 +++++++++++++++++++ .../core/reference/cli/influxdb3/write.md | 2 +- content/shared/influxdb3-cli/write.md | 19 ++++++++++++++ .../best-practices/optimize-writes.md | 18 +++++++------ .../http-api/compatibility-apis.md | 8 ++++++ .../http-api/v3-write-lp.md | 16 ++++++++---- .../influxdb3-write-guides/influxdb3-cli.md | 15 ++--------- 7 files changed, 76 insertions(+), 27 deletions(-) create mode 100644 .claude/commands/analyze-api-source.md diff --git a/.claude/commands/analyze-api-source.md b/.claude/commands/analyze-api-source.md new file mode 100644 index 000000000..32b651001 --- /dev/null +++ b/.claude/commands/analyze-api-source.md @@ -0,0 +1,25 @@ +analyze-api-source: + + + Analyze source code in the specified repo to determine: + 1. HTTP method and endpoint path + 2. Parameters for the given endpoint + 3. Whether the specified parameter is supported for the given API endpoint + 4. Parameter format, valid values, and default behavior + 5. Any limitations or quirks of the parameter + +For product InfluxDB 3 Core and Enterprise, + Search repo influxdata/influxdb + Search through: + - HTTP endpoint handlers in + influxdb3_server/src/http/ + - Parameter structs and deserialization + - Request routing and processing logic + - Type definitions in influxdb3_types/src/ + + In the output, provide: + - Comparison across v1, v2, and v3 API compatibility + +In the output, provide: + Concrete examples of endpoint and parameter usage + Cite specific source code locations. \ No newline at end of file diff --git a/content/influxdb3/core/reference/cli/influxdb3/write.md b/content/influxdb3/core/reference/cli/influxdb3/write.md index 0055d62a8..54e79dc2e 100644 --- a/content/influxdb3/core/reference/cli/influxdb3/write.md +++ b/content/influxdb3/core/reference/cli/influxdb3/write.md @@ -11,5 +11,5 @@ source: /shared/influxdb3-cli/write.md --- diff --git a/content/shared/influxdb3-cli/write.md b/content/shared/influxdb3-cli/write.md index 3ffcd0c4e..c19242f6f 100644 --- a/content/shared/influxdb3-cli/write.md +++ b/content/shared/influxdb3-cli/write.md @@ -31,6 +31,7 @@ influxdb3 write [OPTIONS] --database [LINE_PROTOCOL]... | | `--token` | _({{< req >}})_ Authentication token | | `-f` | `--file` | A file that contains line protocol to write | | | `--accept-partial` | Accept partial writes | +| | `--precision` | Precision of data timestamps (`ns`, `us`, `ms`, or `s`) | | | | `--tls-ca` | Path to a custom TLS certificate authority (for testing or self-signed certificates) | | `-h` | `--help` | Print help information | | | `--help-all` | Print detailed help information | @@ -144,4 +145,22 @@ cat ./data.lp | influxdb3 write \ {{% /code-tab-content %}} {{< /code-tabs-wrapper >}} +## Write line protocol with specific timestamp precision + +By default, in CLI and HTTP API write requests, {{% product-name %}} uses the timestamp magnitude to auto-detect the precision. +To avoid any ambiguity, specify the `--precision {ns|us|ms|s}` option: + + + +```bash +influxdb3 write \ + --database DATABASE_NAME \ + --token AUTH_TOKEN \ + --precision s \ + 'home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1641024000 +home,room=Kitchen temp=21.0,hum=35.9,co=0i 1641024000 +home,room=Living\ Room temp=21.4,hum=35.9,co=0i 1641027600 +home,room=Kitchen temp=23.0,hum=36.2,co=0i 1641027600 +' +``` {{% /code-placeholders %}} diff --git a/content/shared/influxdb3-write-guides/best-practices/optimize-writes.md b/content/shared/influxdb3-write-guides/best-practices/optimize-writes.md index 2441b414e..fe7dd9da6 100644 --- a/content/shared/influxdb3-write-guides/best-practices/optimize-writes.md +++ b/content/shared/influxdb3-write-guides/best-practices/optimize-writes.md @@ -84,15 +84,17 @@ if your data isn't collected in nanoseconds, there is no need to write at that p For better performance, use the coarsest timestamp precision you can for your use case. -By default, {{< product-name >}} attempts to auto-detect the precision of -timestamps in line protocol by identifying what precision would be relatively -close to "now." You can also specify your timestamp precision in your write -request. {{< product-name >}} supports the following timestamp precisions: +> [!Tip] +> By default, in CLI and HTTP API write requests, {{% product-name %}} uses the timestamp magnitude to auto-detect the precision. -- `ns` (nanoseconds) -- `us` (microseconds) -- `ms` (milliseconds) -- `s` (seconds) +To specify the precision of timestamps in your write +request, pass the `precision` option. + +For more information, see the following: + +- [`/api/v3/write_lp` endpoint parameters](/influxdb3/version/write-data/http-api/v3-write-lp/) +- [`/api/v2/write` v2 API endpoint parameters](/influxdb3/version/write-data/http-api/compatibility-apis/#v2-api-write-parameters) +- [`/write` v1 API endpoint parameters](/influxdb3/version/write-data/http-api/compatibility-apis/#v1-api-write-parameters) ## Use gzip compression diff --git a/content/shared/influxdb3-write-guides/http-api/compatibility-apis.md b/content/shared/influxdb3-write-guides/http-api/compatibility-apis.md index fc7dfa6ed..5f7b82102 100644 --- a/content/shared/influxdb3-write-guides/http-api/compatibility-apis.md +++ b/content/shared/influxdb3-write-guides/http-api/compatibility-apis.md @@ -75,6 +75,10 @@ Parameter | Allowed in | Ignored | Value #### Timestamp precision {#timestamp-precision-v2} +> [!Note] +> By default, {{% product-name %}} uses the timestamp magnitude to auto-detect the precision. +> To avoid any ambiguity, you can specify the precision of timestamps in your data. + Use one of the following `precision` values in v2 API `/api/v2/write` requests: - `ns`: nanoseconds @@ -224,6 +228,10 @@ Parameter | Allowed in | Ignored | Value #### Timestamp precision {#timestamp-precision-v1} +> [!Note] +> By default, {{% product-name %}} uses the timestamp magnitude to auto-detect the precision. +> To avoid any ambiguity, you can specify the precision of timestamps in your data. + Use one of the following `precision` values in v1 API `/write` requests: - `ns`: nanoseconds diff --git a/content/shared/influxdb3-write-guides/http-api/v3-write-lp.md b/content/shared/influxdb3-write-guides/http-api/v3-write-lp.md index ec00bb4c2..477b3bb2a 100644 --- a/content/shared/influxdb3-write-guides/http-api/v3-write-lp.md +++ b/content/shared/influxdb3-write-guides/http-api/v3-write-lp.md @@ -7,12 +7,18 @@ syntax as previous versions of InfluxDB, and supports the following: - `?accept_partial=`: Accept or reject partial writes (default is `true`). - `?no_sync=`: Control when writes are acknowledged: - - `no_sync=true`: Acknowledge writes before WAL persistence completes. + - `no_sync=true`: Acknowledges writes before WAL persistence completes. - `no_sync=false`: Acknowledges writes after WAL persistence completes (default). - `?precision=`: Specify the precision of the timestamp. - The default is `ns` (nanosecond) precision. - You can also use `auto` to let InfluxDB automatically determine the timestamp - precision by identifying which precisions resolves most closely to _now_. + By default, {{% product-name %}} uses the timestamp magnitude to auto-detect the precision. + To avoid any ambiguity, you can specify the precision of timestamps in your data. + + The {{< product-name >}} `/api/v3/write_lp` API endpoint supports the following timestamp precisions: + + - `ns` (nanoseconds) + - `us` (microseconds) + - `ms` (milliseconds) + - `s` (seconds) ##### Request body @@ -25,7 +31,7 @@ the {{< influxdb3/home-sample-link >}}, but you can use any HTTP client._ {{% influxdb/custom-timestamps %}} ```bash -curl -v "http://{{< influxdb/host >}}/api/v3/write_lp?db=sensors&precision=auto" \ +curl -v "http://{{< influxdb/host >}}/api/v3/write_lp?db=sensors&precision=s" \ --data-raw "home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1735545600 home,room=Kitchen temp=21.0,hum=35.9,co=0i 1735545600 home,room=Living\ Room temp=21.4,hum=35.9,co=0i 1735549200 diff --git a/content/shared/influxdb3-write-guides/influxdb3-cli.md b/content/shared/influxdb3-write-guides/influxdb3-cli.md index 11aa37b35..88594efb7 100644 --- a/content/shared/influxdb3-write-guides/influxdb3-cli.md +++ b/content/shared/influxdb3-write-guides/influxdb3-cli.md @@ -73,19 +73,8 @@ Provide the following: - from stdin > [!Note] -> {{< product-name >}} auto-detects the timestamp precision by identifying which -> precision results in timestamps relatively close to "now." - - +> By default, {{% product-name %}} uses the timestamp magnitude to auto-detect the precision. +> To specify the precision of timestamps in your data, use the [`--precision {ns|us|ms|s}` option](/influxdb3/version/reference/cli/influxdb3/write/#options). {{< tabs-wrapper >}} {{% tabs %}} From cf092cfb17a7c9646b9b3631273fb2093c5d1694 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Wed, 9 Jul 2025 09:03:45 -0500 Subject: [PATCH 3/3] fix(test): revert to staged_files --- lefthook.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index e3176dc6b..c7c36c0de 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -137,13 +137,13 @@ pre-push: tags: test,codeblocks,v2 env: SERVICE: cloud-pytest - run: yarn test:codeblocks:cloud '{push_files}' + run: yarn test:codeblocks:cloud '{staged_files}' cloud-dedicated-pytest: tags: test,codeblocks,v3 glob: content/influxdb3/cloud-dedicated/*.md run: | - yarn test:codeblocks:cloud-dedicated '{push_files}' && + yarn test:codeblocks:cloud-dedicated '{staged_files}' && ./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest cloud-serverless-pytest: @@ -151,13 +151,13 @@ pre-push: glob: content/influxdb3/cloud-serverless/*.md env: SERVICE: cloud-serverless-pytest - run: yarn test:codeblocks:cloud-serverless '{push_files}' + run: yarn test:codeblocks:cloud-serverless '{staged_files}' clustered-pytest: tags: test,codeblocks,v3 glob: content/influxdb3/clustered/*.md run: | - yarn test:codeblocks:clustered '{push_files}' && + yarn test:codeblocks:clustered '{staged_files}' && ./test/scripts/monitor-tests.sh stop clustered-pytest telegraf-pytest: @@ -165,11 +165,11 @@ pre-push: glob: content/telegraf/*.md env: SERVICE: telegraf-pytest - run: yarn test:codeblocks:telegraf '{push_files}' + run: yarn test:codeblocks:telegraf '{staged_files}' v2-pytest: tags: test,codeblocks,v2 glob: content/influxdb/v2/*.md env: SERVICE: v2-pytest - run: yarn test:codeblocks:v2 '{push_files}' \ No newline at end of file + run: yarn test:codeblocks:v2 '{staged_files}' \ No newline at end of file