Skip to content

ci: security-only Dependabot for pip + weekly poetry.lock update job - #467

Merged
blink1073 merged 1 commit into
Calysto:mainfrom
blink1073:poetry-lock-upgrade
Aug 3, 2026
Merged

ci: security-only Dependabot for pip + weekly poetry.lock update job#467
blink1073 merged 1 commit into
Calysto:mainfrom
blink1073:poetry-lock-upgrade

Conversation

@blink1073

Copy link
Copy Markdown
Contributor

References

None

Description

Splits dependency updates into two lanes: Dependabot now only opens PRs for pip security fixes (routine version bumps are disabled via open-pull-requests-limit: 0), while a new weekly cron workflow batches routine version bumps into a single poetry.lock update PR using calysto/maintainer_tools's poetry-lock-update composite action (with a 7-day minimum release-age cooldown).

Changes

  • .github/dependabot.yml: add open-pull-requests-limit: 0 to the pip entry so only security-update PRs are opened automatically.
  • .github/workflows/lock-update.yml: new weekly (Monday 6am) cron workflow that runs poetry update --lock via calysto/maintainer_tools/actions/poetry-lock-update@v1 and opens a batched, maintenance-labeled PR when the lock file changes. Modeled on the existing pre-commit-autoupdate.yml pattern (pinned checkout, persist-credentials: false, environment: release, fork-safety guard).
  • pyproject.toml / poetry.lock: split [dependency-groups] arrays (dev, test-all, coverage, typing) that mixed plain strings with include-group tables into homogeneous arrays. Mixed arrays crash Dependabot's Poetry (toml-rb) resolver. No dependency resolution changes — poetry.lock diff is group-membership metadata only.

Backwards-incompatible changes

None

Testing

  • just typing — passes
  • just pre-commit — all hooks pass, including poetry-check/poetry-lock/actionlint
  • just test — 487 passed, 68 skipped
  • Verified poetry.lock resolves identically (no version changes) after the dependency-groups split
  • New workflow YAML validated via actionlint (pre-commit) and checked against zizmor for parity with the existing pre-commit-autoupdate.yml workflow

AI usage

  • Some or all of the content of this PR was generated by AI.
  • The human author has carefully reviewed this PR and run this code.
  • AI tools and models used: Claude Code (Sonnet 5)

Split dependency updates into two lanes: Dependabot now only opens
PRs for security fixes on pip, while a new weekly cron workflow
batches routine version bumps into a single poetry.lock update PR
via calysto/maintainer_tools' poetry-lock-update action.

Also splits dependency-groups arrays that mixed plain strings with
include-group tables, which crashes Dependabot's Poetry resolver.
@blink1073
blink1073 enabled auto-merge (squash) August 3, 2026 02:47
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.54%. Comparing base (c7d512f) to head (c62742d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #467   +/-   ##
=======================================
  Coverage   93.54%   93.54%           
=======================================
  Files          51       51           
  Lines        2974     2974           
  Branches      416      416           
=======================================
  Hits         2782     2782           
  Misses        131      131           
  Partials       61       61           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@blink1073
blink1073 merged commit 11a067b into Calysto:main Aug 3, 2026
27 checks passed
@blink1073
blink1073 deleted the poetry-lock-upgrade branch August 3, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant