From 5ed212921578f7eab9f8d8df46580d412ad8a467 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sat, 28 Nov 2026 08:04:09 +0100 Subject: [PATCH] Fix red CI: install kuhy_credit, format, date MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug-class-check: none — CI repair, no new bug class (kuhy 2026-11-27) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWZDq7ef5JyQd7Rx3Ju --- .github/workflows/app-errors-tests.yml | 2 +- .github/workflows/freedays-tests.yml | 2 +- .github/workflows/sickdays-tests.yml | 2 +- earned_time/earned_time/tests/test_tutor.py | 2 +- gatelock/gatelock/tests/test_error_spool.py | 4 +++- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/app-errors-tests.yml b/.github/workflows/app-errors-tests.yml index f50878a..5b83474 100644 --- a/.github/workflows/app-errors-tests.yml +++ b/.github/workflows/app-errors-tests.yml @@ -28,7 +28,7 @@ jobs: cache-dependency-path: app_errors/requirements.txt - name: Install dependencies - run: pip install -r requirements.txt && pip install --no-deps -e . + run: pip install --no-deps ../kuhy_credit && pip install -r requirements.txt && pip install --no-deps -e . - name: Run tests run: python -m pytest -v diff --git a/.github/workflows/freedays-tests.yml b/.github/workflows/freedays-tests.yml index ab1459b..f9d9a35 100644 --- a/.github/workflows/freedays-tests.yml +++ b/.github/workflows/freedays-tests.yml @@ -36,7 +36,7 @@ jobs: run: pip install ../crdt-sync - name: Install dependencies - run: pip install -r requirements.txt && pip install --no-deps -e . + run: pip install --no-deps ../kuhy_credit && pip install -r requirements.txt && pip install --no-deps -e . # No display needed: freedays draws nothing. It is policy, a JSON file # and a CLI. diff --git a/.github/workflows/sickdays-tests.yml b/.github/workflows/sickdays-tests.yml index 47539df..40791cf 100644 --- a/.github/workflows/sickdays-tests.yml +++ b/.github/workflows/sickdays-tests.yml @@ -33,7 +33,7 @@ jobs: # importing it pulls in tkinter, and this job has no display precisely # because sickdays must work without one. - name: Install the sibling packages - run: pip install ../crdt-sync && pip install --no-deps ../freedays + run: pip install ../crdt-sync && pip install --no-deps ../freedays ../kuhy_credit - name: Install dependencies run: pip install -r requirements.txt && pip install --no-deps -e . diff --git a/earned_time/earned_time/tests/test_tutor.py b/earned_time/earned_time/tests/test_tutor.py index 1f6e6fb..6d47616 100644 --- a/earned_time/earned_time/tests/test_tutor.py +++ b/earned_time/earned_time/tests/test_tutor.py @@ -49,7 +49,7 @@ def test_tutor_from_is_the_day_after_the_deploy() -> None: def test_registry_switches_on_tutor_from() -> None: assert earners_for(EVE) is not TUTOR_EARNERS # the waiver (ANKI_WAIVED_FROM) - assert earners_for(None) is earners_for(datetime.now().astimezone().date()) + assert earners_for(None) == earners_for(datetime.now().astimezone().date()) assert earners_for(TUTOR_FROM) is TUTOR_EARNERS assert "anki" not in {e.name for e in TUTOR_EARNERS} assert ladder_for(EVE) is None # the eve is pre-ladder diff --git a/gatelock/gatelock/tests/test_error_spool.py b/gatelock/gatelock/tests/test_error_spool.py index 04f4ef4..1e1976d 100644 --- a/gatelock/gatelock/tests/test_error_spool.py +++ b/gatelock/gatelock/tests/test_error_spool.py @@ -105,7 +105,9 @@ def test_slow_wait_over_threshold_is_written( def test_slow_wait_measures_monotonic_time(tmp_path: Path) -> None: wall, mono = Clock(), Clock() - rep = Reporter(app="leetcode-guard", repo="r", spool=tmp_path, clock=wall, monotonic=mono) + rep = Reporter( + app="leetcode-guard", repo="r", spool=tmp_path, clock=wall, monotonic=mono + ) with rep.wait("op"): wall.t += 1.5 # a clock step, not a wait mono.t += 0.2