From 241b33dfa468ce5f7de9bbe0426e6a374753aa29 Mon Sep 17 00:00:00 2001 From: David Stancu Date: Wed, 4 Sep 2024 15:26:16 -0400 Subject: [PATCH 1/2] run_duration millis i32 -> i64 --- Cargo.lock | 2 +- charts/databricks-kube-operator/Chart.yaml | 4 ++-- databricks-rust-jobs/Cargo.toml | 2 +- databricks-rust-jobs/docs/JobsRunsGet200Response.md | 2 +- databricks-rust-jobs/docs/Run.md | 2 +- databricks-rust-jobs/src/models/jobs_runs_get_200_response.rs | 2 +- databricks-rust-jobs/src/models/run.rs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1505ba2..0f52a84 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -463,7 +463,7 @@ dependencies = [ [[package]] name = "databricks_rust_jobs" -version = "2.1.3" +version = "2.1.4" dependencies = [ "reqwest 0.12.5", "schemars", diff --git a/charts/databricks-kube-operator/Chart.yaml b/charts/databricks-kube-operator/Chart.yaml index 7186c1f..4035c24 100644 --- a/charts/databricks-kube-operator/Chart.yaml +++ b/charts/databricks-kube-operator/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 -appVersion: 0.8.3 +appVersion: 0.8.4 name: databricks-kube-operator description: A kube-rs operator for managing Databricks API resources -version: 0.9.4 +version: 0.9.5 home: https://github.com/mach-kernel/databricks-kube-operator sources: diff --git a/databricks-rust-jobs/Cargo.toml b/databricks-rust-jobs/Cargo.toml index 8be438c..237f3fe 100644 --- a/databricks-rust-jobs/Cargo.toml +++ b/databricks-rust-jobs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "databricks_rust_jobs" -version = "2.1.3" +version = "2.1.4" authors = ["OpenAPI Generator team and contributors"] description = "The Jobs API allows you to create, edit, and delete jobs. You should never hard code secrets or store them in plain text. Use the [Secrets API](https://docs.databricks.com/dev-tools/api/latest/secrets.html) to manage secrets in the [Databricks CLI](https://docs.databricks.com/dev-tools/cli/index.html). Use the [Secrets utility](https://docs.databricks.com/dev-tools/databricks-utils.html#dbutils-secrets) to reference secrets in notebooks and jobs." # Override this license by providing a License Object in the OpenAPI. diff --git a/databricks-rust-jobs/docs/JobsRunsGet200Response.md b/databricks-rust-jobs/docs/JobsRunsGet200Response.md index 84dee0e..0ab3588 100644 --- a/databricks-rust-jobs/docs/JobsRunsGet200Response.md +++ b/databricks-rust-jobs/docs/JobsRunsGet200Response.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **execution_duration** | Option<**i64**> | The time in milliseconds it took to execute the commands in the JAR or notebook until they completed, failed, timed out, were cancelled, or encountered an unexpected error. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. The `execution_duration` field is set to 0 for multitask job runs. The total duration of a multitask job run is the value of the `run_duration` field. | [optional] **cleanup_duration** | Option<**i64**> | The time in milliseconds it took to terminate the cluster and clean up any associated artifacts. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. The `cleanup_duration` field is set to 0 for multitask job runs. The total duration of a multitask job run is the value of the `run_duration` field. | [optional] **end_time** | Option<**i64**> | The time at which this run ended in epoch milliseconds (milliseconds since 1/1/1970 UTC). This field is set to 0 if the job is still running. | [optional] -**run_duration** | Option<**i32**> | The time in milliseconds it took the job run and all of its repairs to finish. This field is only set for multitask job runs and not task runs. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. | [optional] +**run_duration** | Option<**i64**> | The time in milliseconds it took the job run and all of its repairs to finish. This field is only set for multitask job runs and not task runs. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. | [optional] **trigger** | Option<[**crate::models::TriggerType**](TriggerType.md)> | | [optional] **run_name** | Option<**String**> | An optional name for the run. The maximum allowed length is 4096 bytes in UTF-8 encoding. | [optional][default to Untitled] **run_page_url** | Option<**String**> | The URL to the detail page of the run. | [optional] diff --git a/databricks-rust-jobs/docs/Run.md b/databricks-rust-jobs/docs/Run.md index 62d1686..3bd07de 100644 --- a/databricks-rust-jobs/docs/Run.md +++ b/databricks-rust-jobs/docs/Run.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **execution_duration** | Option<**i64**> | The time in milliseconds it took to execute the commands in the JAR or notebook until they completed, failed, timed out, were cancelled, or encountered an unexpected error. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. The `execution_duration` field is set to 0 for multitask job runs. The total duration of a multitask job run is the value of the `run_duration` field. | [optional] **cleanup_duration** | Option<**i64**> | The time in milliseconds it took to terminate the cluster and clean up any associated artifacts. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. The `cleanup_duration` field is set to 0 for multitask job runs. The total duration of a multitask job run is the value of the `run_duration` field. | [optional] **end_time** | Option<**i64**> | The time at which this run ended in epoch milliseconds (milliseconds since 1/1/1970 UTC). This field is set to 0 if the job is still running. | [optional] -**run_duration** | Option<**i32**> | The time in milliseconds it took the job run and all of its repairs to finish. This field is only set for multitask job runs and not task runs. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. | [optional] +**run_duration** | Option<**i64**> | The time in milliseconds it took the job run and all of its repairs to finish. This field is only set for multitask job runs and not task runs. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. | [optional] **trigger** | Option<[**crate::models::TriggerType**](TriggerType.md)> | | [optional] **run_name** | Option<**String**> | An optional name for the run. The maximum allowed length is 4096 bytes in UTF-8 encoding. | [optional][default to Untitled] **run_page_url** | Option<**String**> | The URL to the detail page of the run. | [optional] diff --git a/databricks-rust-jobs/src/models/jobs_runs_get_200_response.rs b/databricks-rust-jobs/src/models/jobs_runs_get_200_response.rs index 7d2478e..6a65a97 100644 --- a/databricks-rust-jobs/src/models/jobs_runs_get_200_response.rs +++ b/databricks-rust-jobs/src/models/jobs_runs_get_200_response.rs @@ -66,7 +66,7 @@ pub struct JobsRunsGet200Response { pub end_time: Option, /// The time in milliseconds it took the job run and all of its repairs to finish. This field is only set for multitask job runs and not task runs. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. #[serde(rename = "run_duration", skip_serializing_if = "Option::is_none")] - pub run_duration: Option, + pub run_duration: Option, #[serde(rename = "trigger", skip_serializing_if = "Option::is_none")] pub trigger: Option, /// An optional name for the run. The maximum allowed length is 4096 bytes in UTF-8 encoding. diff --git a/databricks-rust-jobs/src/models/run.rs b/databricks-rust-jobs/src/models/run.rs index 000f760..b813056 100644 --- a/databricks-rust-jobs/src/models/run.rs +++ b/databricks-rust-jobs/src/models/run.rs @@ -66,7 +66,7 @@ pub struct Run { pub end_time: Option, /// The time in milliseconds it took the job run and all of its repairs to finish. This field is only set for multitask job runs and not task runs. The duration of a task run is the sum of the `setup_duration`, `execution_duration`, and the `cleanup_duration`. #[serde(rename = "run_duration", skip_serializing_if = "Option::is_none")] - pub run_duration: Option, + pub run_duration: Option, #[serde(rename = "trigger", skip_serializing_if = "Option::is_none")] pub trigger: Option, /// An optional name for the run. The maximum allowed length is 4096 bytes in UTF-8 encoding. From 970e5294abc19e06bef93b091960b2c381874c92 Mon Sep 17 00:00:00 2001 From: David Stancu Date: Wed, 4 Sep 2024 15:37:48 -0400 Subject: [PATCH 2/2] read HEAD tag and apply in docker/metadata-action --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 162f0d6..ae2279e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -50,6 +50,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - id: tag + name: Read HEAD tag + run: echo "tag=$(git tag --points-at HEAD | head -1)" >> $GITHUB_OUTPUT - name: Docker meta id: meta uses: docker/metadata-action@v5 @@ -58,6 +61,7 @@ jobs: tags: | type=raw,value=latest type=raw,value=${{ github.ref_name }} + type=raw,value=${{ steps.tag.outputs.tag }} - uses: actions/download-artifact@v4 with: name: crd_gen