From a12fae96665e5959b3d1c88dd44e6f4ead48c665 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Thu, 19 Nov 2026 18:13:02 +0100 Subject: [PATCH] =?UTF-8?q?get=20rid=20of=20github=20ci/cd=20version=20che?= =?UTF-8?q?ck=20of=20package=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Todo: 2556952d --- .dep-freshness-no-workflow | 2 + .github/workflows/dependency-freshness.yml | 62 ---------------------- .github/workflows/pre-commit.yml | 2 +- requirements.txt | 2 +- scripts/check_dependency_freshness.sh | 2 +- 5 files changed, 5 insertions(+), 65 deletions(-) create mode 100644 .dep-freshness-no-workflow delete mode 100644 .github/workflows/dependency-freshness.yml diff --git a/.dep-freshness-no-workflow b/.dep-freshness-no-workflow new file mode 100644 index 0000000..8a3ff7e --- /dev/null +++ b/.dep-freshness-no-workflow @@ -0,0 +1,2 @@ +# Dependency freshness runs locally only (pre-commit hook); no GitHub Actions +# workflow. This marker stops the fleet installer from re-adding it. diff --git a/.github/workflows/dependency-freshness.yml b/.github/workflows/dependency-freshness.yml deleted file mode 100644 index 23a0a73..0000000 --- a/.github/workflows/dependency-freshness.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: dependency freshness - -# Every dependency on its ecosystem's newest STABLE release, enforced on push -# as well as at commit time. The local pre-commit hook only sees the manifests -# in a commit and can be skipped entirely by a fresh clone that never ran -# `pre-commit install`; this runs `--all` over the whole repo. -# -# `--strict` is CI-only. Offline the gate degrades to its cached answer and -# passes, because `--no-verify` is banned locally and a hook that hard-failed -# on a flaky connection would leave no way to commit. A runner is always -# online, so here an undeterminable answer is a real failure. -# -# Expect this to go red for reasons this repo's commit did not cause: an -# upstream release overnight is enough. That is the chosen behaviour -- the -# alternative is a gate that only notices staleness when someone remembers to -# look. - -on: - push: - branches: [main] - pull_request: - workflow_dispatch: - -jobs: - dependency-freshness: - name: dependencies on newest stable - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - # The gate lives in the shared utils repo so every repo resolves the - # same "latest stable" the same way. Checking it out beats vendoring a - # copy, which is exactly how a gate and its survey start disagreeing. - - name: Check out the shared gate - uses: actions/checkout@v4 - with: - repository: kuhyx/utils - path: .utils - - # "3.x", never a pinned minor: the Python target IS the interpreter the - # gate runs under (registries/toolchain.python_installed), so a runner - # held a release behind this machine reports a repo's `requires-python` - # as excluding "latest" while the same check passes locally. flax-docs-mcp - # hit exactly that -- `>=3.14` green here, red on a 3.13 runner. - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - - name: Install the gate's two runtime dependencies - run: python -m pip install --upgrade pyyaml packaging - - - name: Cache registry lookups - uses: actions/cache@v4 - with: - path: ~/.cache/dep-freshness - key: dep-freshness-${{ hashFiles('**/pubspec.yaml', '**/pyproject.toml', - '**/requirements*.txt', '**/package.json', '**/Cargo.toml', '**/go.mod') }} - restore-keys: dep-freshness- - - - name: Every dependency is on newest stable - run: bash .utils/scripts/check_dependency_freshness.sh --all --strict diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e0b020d..88ffa14 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -27,7 +27,7 @@ jobs: # fail-open. - group: rest hooks: "" - skip: mypy,pylint,free-days-interop + skip: mypy,pylint,free-days-interop,dependency-freshness name: pre-commit (${{ matrix.group }}) steps: - uses: actions/checkout@v4 diff --git a/requirements.txt b/requirements.txt index 77ab2db..648a413 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,5 +16,5 @@ pytest-cov==7.1.0 pytest-randomly==5.1.0 pytest-sugar==1.1.1 pytest-xdist==3.8.0 -ruff==0.17.5 +ruff==0.17.6 sickdays @ git+https://github.com/kuhyx/utils@sickdays-v0.5.5#subdirectory=sickdays diff --git a/scripts/check_dependency_freshness.sh b/scripts/check_dependency_freshness.sh index 7715d3c..617e0c0 100755 --- a/scripts/check_dependency_freshness.sh +++ b/scripts/check_dependency_freshness.sh @@ -11,7 +11,7 @@ # # Usage: # scripts/check_dependency_freshness.sh [ ...] # pre-commit -# scripts/check_dependency_freshness.sh --all --strict # CI +# scripts/check_dependency_freshness.sh --all --strict # full local sweep # # Exit: 0 current | 1 behind | 2 allowlist wrong | 3 undeterminable (offline) # ============================================================================