This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 3b3494c16d Upgrade yarn stack in pre-commits (#37048)
3b3494c16d is described below

commit 3b3494c16d8987489fdd2b8d5fdf685346e6afe1
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Jan 28 08:38:49 2024 +0100

    Upgrade yarn stack in pre-commits (#37048)
    
    The openapi-typescripts 6.7.4 generates slightly different
    typescript output and fails pre-commit. Using that opportunity to
    upgrade the environment for typescript/www compilation. Upgrading
    yarn to latest version and adding openapi-typescript to the
    dependencies will trigger re-creation of pre-commit venvs and make
    it the same for everyone
---
 .pre-commit-config.yaml                      | 6 +++---
 airflow/www/static/js/types/api-generated.ts | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0ead7f7359..b44dea782f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -781,7 +781,7 @@ repos:
         files: ^airflow/www/
         entry: ./scripts/ci/pre_commit/pre_commit_compile_www_assets.py
         pass_filenames: false
-        additional_dependencies: ['[email protected]']
+        additional_dependencies: ['[email protected]']
       - id: compile-www-assets-dev
         name: Compile www assets in dev mode (manual)
         language: node
@@ -790,7 +790,7 @@ repos:
         files: ^airflow/www/
         entry: ./scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py
         pass_filenames: false
-        additional_dependencies: ['[email protected]']
+        additional_dependencies: ['[email protected]']
       - id: check-providers-init-file-missing
         name: Provider init file is missing
         pass_filenames: false
@@ -1040,7 +1040,7 @@ repos:
         'types_or': [javascript, ts, tsx, yaml, css, json]
         files: ^airflow/www/static/js/|^airflow/api_connexion/openapi/v1\.yaml$
         entry: ./scripts/ci/pre_commit/pre_commit_www_lint.py
-        additional_dependencies: ['[email protected]']
+        additional_dependencies: ['[email protected]', "openapi-typescript@>=6.7.4"]
         pass_filenames: false
       - id: check-tests-unittest-testcase
         name: Check that unit tests do not inherit from unittest.TestCase
diff --git a/airflow/www/static/js/types/api-generated.ts 
b/airflow/www/static/js/types/api-generated.ts
index d9e1816bbd..e8d2684765 100644
--- a/airflow/www/static/js/types/api-generated.ts
+++ b/airflow/www/static/js/types/api-generated.ts
@@ -1376,6 +1376,7 @@ export interface components {
       priority_weight?: number | null;
       /** @description *Changed in version 2.1.1*&#58; Field becomes nullable. 
*/
       operator?: string | null;
+      /** @description The datetime that the task enter the state QUEUE, also 
known as queue_at */
       queued_when?: string | null;
       pid?: number | null;
       executor_config?: string;

Reply via email to