Skip to content

chore: update from templates and dependencies to latest - #83

Merged
ovsds merged 5 commits into
mainfrom
chore/iac-36-github-watcher
Oct 22, 2026
Merged

ovsds merged 5 commits into
mainfrom
chore/iac-36-github-watcher

Conversation

@ovsds

@ovsds ovsds commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

🤖 AI-generated description

https://github.com/ovsds/github-watcher/pull/83 update from both templates, move to mise and every dependency to latest. [L, code +2984/−3248, tests +37/−3]

Re-applies template-repository to the root and template-service-python to backend/, which replaces every Taskfile with mise tasks, and moves the tooling, Python dependencies and images to the latest releases, clearing the open Dependabot alerts (aiohttp, anyio, black and the npm dev baseline). Commands are mise run ... instead of task ...; the backend and its image run Python 3.15 on Debian trixie without pip (one Python for the whole repository); gql 4, aiostream 0.8 and cron-converter 2 required code changes; queue error messages show topics as Topic(task_jobs) instead of Topic(JobTopic.TASK).

Changes

  • Update from template-repository (services='backend', scripts, with_python, with_build, with_trivy, with_zizmor, python_version='3.15.0'): root and .scripts on mise (secret-transfer 0.5), CI and release workflows on jdx/mise-action, actions pinned by SHA; Taskfiles, .nvmrc, .python-version, .poetry-version removed. Kept: README sections, .scripts secrets entries, environment_activate's GITHUB_TOKEN export, the container test step in check-pr (it needs the integration secrets), ci-image-push / ci-image-scan as one-line root tasks.
  • backend/ from template-service-python (json utils, trivy, python_version='3.15.0'): backend/mise.toml with the template's tasks, Poetry 2 [project] metadata; the service's own code, settings, GITHUB_WATCHER_SETTINGS_YAML env name and .settings mount in image-run (github-watcher-action relies on it), OCI annotations kept.
  • Dependencies to latest: aiohttp 3.14.5, gql 4.4 (tenacity instead of backoff), graphql-core 3.3, aiostream 0.8.1, cron-converter 2.0.2, pydantic 2.14.1, pydantic-settings 2.16.1, orjson 3.13; ruff 0.17, black 26, pytest 9, pyright 1.1.414; commitlint 21, lint-staged 17, prettier 3.9; trivy 0.76, zizmor 1.31; python:3.15.0-trixie images.
  • Fixes for the upgrades: gql 4 requests built from GraphQLRequest with each query parsed once; aiostream 0.8 merges iterated inside their stream context, through one shared helper; Generator / AsyncGenerator annotations for context managers; ruff 0.17 findings (StrEnum topics and modes, simplified returns), and a test that asserted awaited_once_with instead of assert_awaited_once_with.

Testing

  • mise run init, lint-fix (no changes), lint (prettier, Poetry checks, deptry, black, toml-sort, sort-all, ruff, pyright, zizmor) - pass; npm audit 0, npm outdated empty.
  • mise run test with a real GitHub token - 39 of 40 pass, including the GraphQL and REST integration tests against the live API; the Telegram send test needs a real bot token.
  • check-pr on GitHub CI, all 40 tests including Telegram's, after TELEGRAM_TOKEN and TELEGRAM_CHAT_ID came from iac (ovsds/iac#122) - pass
  • bin.main end to end against python/cpython: triggers produce events, Telegram actions fail as expected with a dummy token.
  • mise install --monorepo --dry-run with mise 2026.10.15 from an empty data dir plans one Python, 3.15.0.
  • Not verified locally (no Docker): image builds, test-container, CI image push and scan; CI runs the container tests.

Related

ovsds added 5 commits October 20, 2026 20:56
Each GraphQL request class now holds its query as a DOCUMENT class
constant parsed at import, and _request builds a single GraphQLRequest
from it with the variables, instead of re-parsing the query on every
property access.

The four copies of the aiostream merge-and-reyield block in the GitHub
trigger use the new lib.utils.asyncio.merge_async_iterables helper.
@ovsds
ovsds marked this pull request as ready for review October 22, 2026 03:59
@ovsds
ovsds merged commit ab7dd27 into main Oct 22, 2026
5 of 8 checks passed
@ovsds
ovsds deleted the chore/iac-36-github-watcher branch October 22, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant