From 74ef4a371a78d671f4e9960ee3dd82a379d7d905 Mon Sep 17 00:00:00 2001 From: Jun Aishima Date: Tue, 25 Feb 2025 17:18:38 -0500 Subject: [PATCH 1/4] remove not-useful and resource-hungry task * after issues seen around 2025-02-25 with heavy access of Tiled by the LiX end-of-run workflow --- end_of_run_workflow.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/end_of_run_workflow.py b/end_of_run_workflow.py index fa4eae4..d4af3e3 100644 --- a/end_of_run_workflow.py +++ b/end_of_run_workflow.py @@ -1,6 +1,5 @@ import prefect from prefect import flow, task, get_run_logger -from data_validation import general_data_validation @task def log_completion(): @@ -11,5 +10,4 @@ def log_completion(): def end_of_run_workflow(stop_doc): uid = stop_doc["run_start"] - general_data_validation(beamline_acronym="lix", uid=uid) log_completion() From 426d1eddd6164a3da779f993bbf8cc4e0b06d902 Mon Sep 17 00:00:00 2001 From: Jun Aishima Date: Tue, 25 Feb 2025 17:41:33 -0500 Subject: [PATCH 2/4] update github workflow actions --- .github/workflows/linting.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 9035d06..65947d3 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -9,6 +9,6 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.1 From 0a4ce2e4ae597f1d2783c383f8e9da06a82f6fb0 Mon Sep 17 00:00:00 2001 From: Jun Aishima Date: Tue, 25 Feb 2025 17:46:17 -0500 Subject: [PATCH 3/4] fix URL of flake8 repo * as shown in a sample .pre-commit-config.yaml file at https://github.com/PyCQA/flake8/blob/main/.pre-commit-config.yaml --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6796401..4472416 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,8 +13,8 @@ repos: - id: check-yaml - id: debug-statements -- repo: https://gitlab.com/pycqa/flake8 - rev: 4.0.1 +- repo: https://github.com/PyCQA/flake8 + rev: 7.0.0 hooks: - id: flake8 From cceee5d4ebe407117e54fc190b3ba7125c656377 Mon Sep 17 00:00:00 2001 From: Jun Aishima Date: Tue, 25 Feb 2025 18:01:26 -0500 Subject: [PATCH 4/4] set isort version * solution mentioned several times in https://github.com/PyCQA/isort/issues/2077 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4472416..d9be6d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: flake8 - repo: https://github.com/timothycrosley/isort - rev: 5.9.3 + rev: 5.12.0 hooks: - id: isort