Skip to content

ci: disable scheduled stale issue and PR closing#2866

Merged
ajf merged 3 commits into
NVIDIA:mainfrom
ajf:to-pr/disable-stale-action
Jun 30, 2026
Merged

ci: disable scheduled stale issue and PR closing#2866
ajf merged 3 commits into
NVIDIA:mainfrom
ajf:to-pr/disable-stale-action

Conversation

@ajf

@ajf ajf commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Removes the daily cron schedule from .github/workflows/stale-check.yml so the workflow no longer automatically marks issues and PRs as stale or closes them. The workflow_dispatch trigger is preserved so the check can still be triggered manually when needed.

Related issues

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Breaking Changes

  • This PR contains breaking changes

Testing

  • No testing required (docs, internal refactor, etc.)

Additional Notes

The stale workflow can still be run on-demand via the GitHub Actions UI using the workflow_dispatch trigger.

Remove the daily cron schedule from the stale-check workflow so it no
longer automatically marks or closes issues and PRs. The workflow_dispatch
trigger is kept so it can still be run manually if needed.
@ajf ajf requested a review from a team as a code owner June 25, 2026 00:04
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Summary by CodeRabbit

  • Chores
    • Updated the stale-check workflow to run only on manual trigger (removed the automatic scheduled execution).
    • Renamed the workflow to reflect the PR-focused stale handling.
    • Disabled the “issue stale” behavior in the stale-check configuration while keeping existing PR stale/close settings unchanged.

Walkthrough

The stale-check workflow now runs only by manual dispatch. It also disables issue stale processing while keeping the PR stale and close thresholds unchanged.

Changes

Workflow trigger change

Layer / File(s) Summary
Manual trigger and issue staling
.github/workflows/stale-check.yml
The workflow removes its scheduled cron trigger, keeps workflow_dispatch, and sets days-before-issue-stale to -1 while leaving the PR thresholds unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main workflow change, though it slightly overstates the impact on PR closing.
Description check ✅ Passed The description is related to the stale workflow update, even though it misstates the PR auto-close behavior.
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

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

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

🔍 Container Scan Summary

Service Total Critical High Medium Low Other
boot-artifacts-aarch64 3 0 0 3 0 0
boot-artifacts-x86_64 3 0 0 3 0 0
forge-admin-cli-x86_64 285 6 26 102 7 144
machine-validation-runner 744 32 188 267 36 221
machine_validation 744 32 188 267 36 221
machine_validation-aarch64 744 32 188 267 36 221
nvmetal-carbide 744 32 188 267 36 221
TOTAL 3267 134 778 1176 151 1028

Per-CVE detail lives in the per-service grype-* artifacts (JSON + SARIF). Severity counts only — no CVE IDs published here.

@ianderson-nvidia

Copy link
Copy Markdown
Contributor

FWIW, this is the wrong approach. I understand not marking issues as stale, but PR's should be automatically marked as stale and closed after 60 days. 60 days is more than enough time for a contributor to fix their PR.

@ajf

ajf commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

60 days is more than enough time for a contributor to fix their PR.

Yes, I see the value in PR closing. Issues shouldn't be closed (doesn't make them not issues). Let me see if I can twiddle this for just issues.

Set days-before-issue-stale to -1 to disable stale marking for issues
and remove the issue stale message. PRs continue to be marked stale
after 30 days of inactivity and closed after 7 more days.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/stale-check.yml (1)

1-13: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Restore a schedule if PRs should still close automatically.

With on.schedule removed, this workflow now runs only via workflow_dispatch, so the 30/7 stale-close thresholds are never enforced unless someone triggers it manually. That breaks the stated goal of disabling issue staling while keeping automatic PR stale handling.

Suggested fix
 on:
+  schedule:
+    - cron: '0 9 * * *'
   workflow_dispatch:

As per path instructions, workflow trigger correctness must be validated; based on PR objectives, PRs are still expected to be marked stale and closed automatically.

🤖 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/workflows/stale-check.yml around lines 1 - 13, The workflow trigger
in stale-check.yml currently only supports manual runs, so automatic PR stale
handling is disabled. Restore an on.schedule trigger for the Stale PRs workflow
in addition to workflow_dispatch, and keep the stale-close job configuration in
stale-check.yml so the existing stale and close thresholds continue to run
automatically without affecting issue staling.

Source: Path instructions

🧹 Nitpick comments (1)
.github/workflows/stale-check.yml (1)

12-31: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Serialize runs to avoid duplicate stale mutations.

This job mutates PR state across the whole repository. Without a concurrency group, two manual dispatches can race and leave duplicate comments/labels or overlapping close attempts.

Suggested fix
   stale:
     name: Mark stale PRs
+    concurrency:
+      group: stale-prs
+      cancel-in-progress: false
     runs-on: linux-amd64-cpu4

As per path instructions, GitHub Actions workflows should be reviewed for concurrency behavior.

🤖 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/workflows/stale-check.yml around lines 12 - 31, Add a workflow-level
concurrency guard to the stale-check job so only one stale mutation run can
execute at a time. Update the stale job in the workflow to use a unique
concurrency group tied to the workflow/ref and disable cancel-in-progress if
needed, so overlapping manual or scheduled runs don’t duplicate comments,
labels, or close attempts. Use the stale job entry in the workflow as the
location to apply this fix.

Source: Path instructions

🤖 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.

Outside diff comments:
In @.github/workflows/stale-check.yml:
- Around line 1-13: The workflow trigger in stale-check.yml currently only
supports manual runs, so automatic PR stale handling is disabled. Restore an
on.schedule trigger for the Stale PRs workflow in addition to workflow_dispatch,
and keep the stale-close job configuration in stale-check.yml so the existing
stale and close thresholds continue to run automatically without affecting issue
staling.

---

Nitpick comments:
In @.github/workflows/stale-check.yml:
- Around line 12-31: Add a workflow-level concurrency guard to the stale-check
job so only one stale mutation run can execute at a time. Update the stale job
in the workflow to use a unique concurrency group tied to the workflow/ref and
disable cancel-in-progress if needed, so overlapping manual or scheduled runs
don’t duplicate comments, labels, or close attempts. Use the stale job entry in
the workflow as the location to apply this fix.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 378cd4fd-a55e-4876-a6fc-70f827346ffe

📥 Commits

Reviewing files that changed from the base of the PR and between aadd87a and 802f5ff.

📒 Files selected for processing (1)
  • .github/workflows/stale-check.yml

Restore the daily cron trigger so PRs are automatically marked stale
and closed without manual intervention. Add a concurrency group to
prevent duplicate mutations from overlapping runs.
@ajf ajf merged commit f606ce6 into NVIDIA:main Jun 30, 2026
56 of 57 checks passed
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.

3 participants