Skip to content

CI: Dependabot checks Actions and Cargo dependencies weekly - #272

Open
sombraSoft wants to merge 2 commits into
ivall:mainfrom
sombraSoft:ci/dependabot
Open

sombraSoft wants to merge 2 commits into
ivall:mainfrom
sombraSoft:ci/dependabot

Conversation

@sombraSoft

@sombraSoft sombraSoft commented Nov 23, 2026 •

Copy link
Copy Markdown

Adds Dependabot for the GitHub Actions the workflows use and for the Cargo workspace. It also makes PR checks skip Dependabot's own PRs: their generated bodies cannot have the Tested / Not tested / AI use sections, so without the second commit every Dependabot PR would fail the required check and could never merge.

Part of #265

What is in it

  • .github/dependabot.yml: weekly github-actions and cargo updates (directory /), at most 5 open PRs each. Minor and patch updates come as one grouped PR per ecosystem; a major update is its own PR. Commit prefixes CI and Dependencies follow the repo's <Area>: ... style.
  • .github/workflows/pr-check.yml: the description job gets if: github.event.pull_request.user.login != 'dependabot[bot]'. A skipped job passes the required check; PRs by anyone else are checked as before.

CI time

  • 0: no job is added or changed for normal PRs. The PR checks skip only applies to Dependabot's own PRs.

Tested

  • CI-only change; no Rust code touched. Both YAML files parse.
  • Fork CI on a throwaway PR: Build and test (Windows, no GPU) pass, PR description pass: https://github.com/sombraSoft/xcl/actions/runs/45276265580
  • Full suite on main (9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug: scripts/test.ps1 → 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.

Regression run

  • Not needed: no crates/xcl/src change.

Not tested

  • Dependabot's behaviour (grouping, title prefixes, the skip on a real Dependabot PR) can only be seen once the files are on main.
  • The if: skip was not exercised with a dependabot[bot] author; on the fork PR the job ran, as it should for a human author.

AI use

  • Claude Code (Claude Sonnet 5.5) wrote the config; Claude Code (Claude Opus 5.5) reviewed it and wrote this description; I read the diff.

@sombraSoft
sombraSoft marked this pull request as ready for review November 23, 2026 22:18
The workflows pin third-party actions and the workspace has a tracked
Cargo.lock, and nothing tells us when either goes stale or gets a
security fix.

Minor and patch updates of each ecosystem come as one PR so a week of
bumps is one review; a major update stays its own PR. At most 5 PRs per
ecosystem are open at once. Titles use the repo's "Scope: outcome" style
("CI: Bump ...", "Dependencies: Bump ...").
A Dependabot PR body is generated and has no Tested / Not tested / AI use
sections, so with Dependabot enabled every one of its PRs would fail the
required PR checks and could never merge. The job is skipped when the PR
author is dependabot[bot]; a skipped job counts as passed for a required
check. PRs by anyone else are checked as before.
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