kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Consolidate scheduled dependency updates into a single workflow

Open rtibbles opened this issue 8 months ago • 1 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Consolidate scheduled dependency update workflows into a single workflow with multiple jobs. Currently update_h5p.yml runs on its own schedule; Dependabot handles pip and GitHub Actions updates monthly. Pre-commit hook versions (.pre-commit-config.yaml) aren't covered by either.

Complexity: Low Target branch: develop

The Change

Refactor update_h5p.yml into a general dependency_updates.yml workflow running on a monthly schedule at 00:00 UTC (matching Dependabot on develop). Structure it as independent jobs:

  • H5P update job — the existing H5P update logic, moved as-is
  • Pre-commit hook update job — runs prek autoupdate, commits the changes to .pre-commit-config.yaml, then runs prek run --all-files and commits any resulting formatting changes as a separate commit. Opens a PR via peter-evans/create-pull-request using the LE_BOT app token

Each job opens its own PR with a descriptive branch name and message, following the same pattern as the existing H5P job.

Out of Scope

  • Changing the Dependabot configuration or schedule
  • Updating pre-commit hook versions (that's what the workflow will do automatically)

Acceptance Criteria

  • [ ] update_h5p.yml renamed/refactored into a general dependency_updates.yml
  • [ ] Existing H5P update logic preserved as its own job
  • [ ] New pre-commit hook update job runs prek autoupdate and commits the result
  • [ ] Pre-commit hook update job runs prek run --all-files after updating and commits any formatting changes separately
  • [ ] Both jobs open PRs via peter-evans/create-pull-request using the LE_BOT app token
  • [ ] Workflow runs monthly at 00:00 UTC
  • [ ] workflow_dispatch supported for manual triggering
  • [ ] Jobs are independent — one failing does not block the other

References

  • https://github.com/learningequality/kolibri/pull/14457 — uv migration PR that adds yamlfmt and actionlint to pre-commit config

AI usage

This issue was drafted collaboratively with Claude Code based on a discussion about automating pre-commit hook updates to complement Dependabot.

rtibbles avatar Mar 29 '26 20:03 rtibbles

Plan: Replace update_h5p.yml with a consolidated dependency_updates.yml that runs both the existing H5P update and a new pre-commit hook update job on a monthly schedule.

  • [ ] Create dependency_updates.yml with the H5P job
  • [ ] Add update-precommit-hooks job
  • [ ] Delete update_h5p.yml

status


@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly

How was this generated?
  • Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
  • Ran the project's full test suite and linter before committing
  • For UI changes: captured live screenshots to verify rendering
  • For backend changes: verified with example API/CLI output

rtibblesbot avatar Jun 30 '26 03:06 rtibblesbot