Skip to content

chore: enable Dependabot cooldown - #555

Merged
openshift-merge-bot[bot] merged 1 commit into
mainfrom
dhaiduce-main-common-file-sync
Jul 10, 2026
Merged

chore: enable Dependabot cooldown#555
openshift-merge-bot[bot] merged 1 commit into
mainfrom
dhaiduce-main-common-file-sync

Conversation

@dhaiducek

@dhaiducek dhaiducek commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Adjusted automated dependency update settings to better control update timing and grouping.
    • Added scheduled updates for Go dependencies, with broader grouping and selective exclusions for certain Kubernetes-related major/minor updates.
    • Updated update rules for GitHub Actions to include cooldown periods before some dependency updates are proposed.

Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

This change modifies .github/dependabot.yml to add cooldown policies to the existing github-actions update configuration and introduces a new gomod ecosystem update entry for the root directory with grouping, allow, and ignore rules targeting k8s.io dependencies.

Changes

Dependabot Configuration Update

Layer / File(s) Summary
Cooldown policy and gomod ecosystem entry
.github/dependabot.yml
Adds cooldown settings (default, semver-major, semver-minor days) to the github-actions entry, and adds a new gomod update entry with cron schedule, cooldown, wildcard grouping, an allow-all rule, and ignore rules skipping semver-major/minor updates for k8s.io/* and .k8s.io/ dependencies.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: enabling Dependabot cooldown settings in configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dhaiduce-main-common-file-sync

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/dependabot.yml (1)

33-41: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Consider allowing semver-minor updates for k8s.io dependencies.

The ignore rules block both semver-major and semver-minor updates for k8s.io/* and *.k8s.io/*, meaning only patch updates will be applied. This is quite restrictive — k8s.io minor releases often include new features and improvements that are compatible within the same major version. Blocking minor updates could cause the project to fall behind on important non-breaking changes.

If this is intentional to tightly control Kubernetes version compatibility, consider documenting the rationale. Otherwise, consider removing the version-update:semver-minor entries to allow minor updates through.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/dependabot.yml around lines 33 - 41, The Dependabot ignore rules are
blocking both semver-major and semver-minor updates for the Kubernetes
dependency patterns, leaving only patch updates. Update the ignore entries under
the `ignore` section so that `k8s.io/*` and `*.k8s.io/*` no longer exclude
`version-update:semver-minor`, or add a clear rationale if this strict version
pinning is intentional.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/dependabot.yml:
- Around line 17-41: The gomod Dependabot entry is pointing at a location
without a go.mod, so Dependabot cannot scan it. Update the directory in the
gomod block to the actual module root that contains go.mod, or remove the gomod
block entirely if this repo does not use Go modules. Use the existing gomod
entry and its schedule/groups/allow/ignore settings as the place to make the
change.

---

Nitpick comments:
In @.github/dependabot.yml:
- Around line 33-41: The Dependabot ignore rules are blocking both semver-major
and semver-minor updates for the Kubernetes dependency patterns, leaving only
patch updates. Update the ignore entries under the `ignore` section so that
`k8s.io/*` and `*.k8s.io/*` no longer exclude `version-update:semver-minor`, or
add a clear rationale if this strict version pinning is intentional.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 24d3de99-c1cd-4e56-ae4e-d6577ffafd66

📥 Commits

Reviewing files that changed from the base of the PR and between e38c610 and a13b4e7.

📒 Files selected for processing (1)
  • .github/dependabot.yml

Comment thread .github/dependabot.yml
Comment on lines +17 to +41
- package-ecosystem: gomod
directory: /
schedule:
interval: cron
cronjob: "0 7 * * MON#1"
timezone: America/New_York
cooldown:
default-days: 7
semver-major-days: 14
semver-minor-days: 14
groups:
gomod:
patterns:
- "*"
allow:
- dependency-type: all
ignore:
- dependency-name: "k8s.io/*"
update-types:
- version-update:semver-major
- version-update:semver-minor
- dependency-name: "*.k8s.io/*"
update-types:
- version-update:semver-major
- version-update:semver-minor

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check for go.mod at the repository root
fd -t f 'go.mod' --max-depth 1

Repository: open-cluster-management-io/policy-collection

Length of output: 182


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Root-level go.mod:"
git ls-files 'go.mod' || true

echo
echo "Top-level go.mod files:"
fd -t f 'go.mod' . --max-depth 2

echo
echo "Dependabot config excerpt:"
sed -n '1,120p' .github/dependabot.yml

Repository: open-cluster-management-io/policy-collection

Length of output: 1214


Point the gomod entry at a directory that contains go.mod
directory: / has no root go.mod here, so Dependabot can’t process this ecosystem entry. Update it to the actual module path or remove the block.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/dependabot.yml around lines 17 - 41, The gomod Dependabot entry is
pointing at a location without a go.mod, so Dependabot cannot scan it. Update
the directory in the gomod block to the actual module root that contains go.mod,
or remove the gomod block entirely if this repo does not use Go modules. Use the
existing gomod entry and its schedule/groups/allow/ignore settings as the place
to make the change.

@openshift-ci

openshift-ci Bot commented Jul 10, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhaiducek, jan-law

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit 27db6cc into main Jul 10, 2026
6 checks passed
@openshift-merge-bot
openshift-merge-bot Bot deleted the dhaiduce-main-common-file-sync branch July 10, 2026 16:03
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.

2 participants