Skip to content

ci: prune old nightly tags and restrict upstream workflows - #1497

Merged
willkill07 merged 2 commits into
NVIDIA:mainfrom
willkill07:codex/nightly-retention-upstream-workflows
Oct 25, 2026
Merged

willkill07 merged 2 commits into
NVIDIA:mainfrom
willkill07:codex/nightly-retention-upstream-workflows

Conversation

@willkill07

@willkill07 willkill07 commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Overview

Delete nightly alpha tags older than 30 days and restrict the top-level workflows to NVIDIA/NeMo-Relay so fork repositories skip their jobs.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

  • Add a single nightly cleanup job with contents: write, using the built-in GitHub token. Collect all tag pages before deleting matching <version>-alpha.YYYYMMDD refs across release lines. Use the embedded UTC date, retain the exact 30-day boundary, and skip invalid dates and other tag formats.
  • Add repository guards to CI, NVSkills CI requests, Fern docs, PR labeling, stale issue handling, and nightly alpha jobs. Preserve existing job conditions and leave reusable workflows unchanged. Fork PRs targeting upstream remain eligible.
  • Document nightly retention and workflow eligibility. No breaking changes.
  • Keep retention and repository guards in separate signed-off commits, rebased onto upstream main.

Validation:

  • Actionlint, YAML validation, copyright and file hygiene checks passed.
  • Local cleanup fixtures passed for old tags across versions, boundary/newer/future dates, invalid dates, other tag formats, empty lists, and API failures. No live tags were deleted.
  • Verified all 26 top-level jobs have repository guards and preserve upstream conditions, including the Google ADK integration check.
  • The full pre-commit run passed dependency audits and other applicable hooks. The docs link checker failed on an unrelated existing URL returning HTTP 503: https://hermes-agent.nousresearch.com/docs/developer-guide/relay-shared-metrics.
  • Language test suites were not run because these changes affect workflows and documentation only.

Where should the reviewer start?

Start with .github/workflows/nightly-alpha-tag.yaml for retention matching, UTC cutoff, pagination, and deletion permissions. Then review the repository guards in .github/workflows/ci.yaml and the other top-level workflows.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • Relates to: none

Summary by CodeRabbit

  • Chores
    • CI, documentation publishing, pull request labeling, stale-item handling, and other repository automation now run only in the primary repository.
    • Nightly cleanup removes alpha-version tags dated more than 30 days ago; tags exactly 30 days old or newer are retained.
  • Documentation
    • Contributor guidance explains how these workflows behave in forks, including eligibility for fork-originated pull requests.
    • Release guidance documents the nightly alpha-tag cleanup policy.

@willkill07
willkill07 requested a review from a team as a code owner October 24, 2026 15:21
@github-actions github-actions Bot added size:S PR is small Maintenance CI or Build or general repository maintenance labels Oct 24, 2026
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between bb8f766 and ba0f879.

Files selected for processing: 8
  • .github/workflows/ci.yaml
  • .github/workflows/fern-docs.yml
  • .github/workflows/nightly-alpha-tag.yaml
  • .github/workflows/pr-labels.yaml
  • .github/workflows/request-nvskills-ci.yml
  • .github/workflows/stale.yaml
  • CONTRIBUTING.md
  • RELEASING.md

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Recent review details
Context from checks skipped due to timeout: 2
  • GitHub Check: Preview docs
  • GitHub Check: Changes / Detect
Additional context used
Code guidelines: 2
.agents/skills/contribute-docs/SKILL.md — configured
AGENTS.md — configured
Path-based instructions: 4
Review automation changes for reproducibility, pinned versions where appropriate, secret handling, and consistency with the documented validation matrix.

CodeRabbit configuration file

Files:

  • .github/workflows/pr-labels.yaml
  • .github/workflows/stale.yaml
  • .github/workflows/request-nvskills-ci.yml
  • .github/workflows/nightly-alpha-tag.yaml
  • .github/workflows/fern-docs.yml
  • .github/workflows/ci.yaml
Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.

CodeRabbit configuration file

Files:

  • CONTRIBUTING.md
  • RELEASING.md
Source excerpt: Keep release-process and release-notes guidance in repo-maintainer docs such as `RELEASING.md`, not as user-facing docs pages or `CHANGELOG.md`

CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Files:

  • RELEASING.md
Source excerpt: Keep release-process policy in maintainer sources such as `RELEASING.md` and complete release history in GitHub Releases.

CodeRabbit inference engine (AGENTS.md)

Files:

  • RELEASING.md
Learnings: 1
Common learnings
Learnt from: CR
Repo: NVIDIA/NeMo-Relay PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-10-19T23:46:28.573Z
Learning: Source excerpt:
# NeMo Relay Repository Guidance

## Validation

Documentation, comments, mechanical metadata, and other reversible low-impact
changes do not require language test suites unless they alter executable
examples, generated output, packaging, or build behavior. Report what was
validated and any relevant checks not run.
zizmor (1.30.1)
.github/workflows/pr-labels.yaml

[warning] 4-193: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

.github/workflows/stale.yaml

[warning] 4-31: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

.github/workflows/request-nvskills-ci.yml

[warning] 4-35: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

.github/workflows/nightly-alpha-tag.yaml

[warning] 4-136: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

[warning] 111-111: permissions without explanatory comments (undocumented-permissions): needs an explanatory comment

(undocumented-permissions)

.github/workflows/fern-docs.yml

[warning] 4-548: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

.github/workflows/ci.yaml

[warning] 4-590: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

Additional comments: 8
.github/workflows/ci.yaml: 1

28-34: LGTM!

Also applies to: 43-43, 107-107, 121-121, 137-141, 154-154, 166-166, 176-176, 193-196, 198-200, 222-222, 280-280, 375-375, 452-452, 514-514

.github/workflows/fern-docs.yml: 1

30-30: LGTM!

Also applies to: 56-60, 189-194, 246-246, 248-252, 382-386, 399-407

.github/workflows/pr-labels.yaml: 1

25-25: LGTM!

.github/workflows/request-nvskills-ci.yml: 1

15-27: LGTM!

.github/workflows/stale.yaml: 1

12-12: LGTM!

CONTRIBUTING.md: 1

270-274: LGTM!

.github/workflows/nightly-alpha-tag.yaml: 1

18-18: LGTM!

Also applies to: 39-39, 106-135

RELEASING.md: 1

129-131: LGTM!

Walkthrough

Workflow jobs now run only in NVIDIA/NeMo-Relay. The nightly alpha workflow also removes valid dated alpha tags older than 30 days, and the release instructions describe this retention rule.

Changes

Workflow scope and alpha tag lifecycle

Layer / File(s) Summary
Scope CI and publishing jobs
.github/workflows/ci.yaml
CI, release artifact, and package publishing jobs now require the NVIDIA/NeMo-Relay repository. Existing job conditions remain in place.
Scope docs and maintenance workflows
.github/workflows/fern-docs.yml, .github/workflows/request-nvskills-ci.yml, .github/workflows/pr-labels.yaml, .github/workflows/stale.yaml, CONTRIBUTING.md
Documentation, NVSkills CI request, PR labeling, and stale issue jobs now include repository scope checks. Contributor guidance describes workflow behavior in forks and upstream pull requests.
Clean up dated alpha tags
.github/workflows/nightly-alpha-tag.yaml, RELEASING.md
The nightly workflow deletes valid dated alpha tags older than 30 days by UTC date. Release instructions describe the retention rule.

Priority: Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Merge Risk: Minimal · up to ba0f8

The workflow restrictions and nightly tag-retention boundary show no identified issue that needs resolution before merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title uses the allowed lowercase type ci, stays within 72 characters, uses an imperative summary, and accurately describes the workflow restrictions and nightly tag cleanup.
Description check Passed The description includes the required Overview, Details, reviewer guidance, and Related Issues sections. It explains the changes, validation results, known unrelated link-check failure, and unrun lang…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Full details: Description check

Explanation

The description includes the required Overview, Details, reviewer guidance, and Related Issues sections. It explains the changes, validation results, known unrelated link-check failure, and unrun language tests.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (8 skipped: 8 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

Copy link
Copy Markdown

@willkill07 willkill07 added this to the 0.11 milestone Oct 24, 2026
@willkill07 willkill07 self-assigned this Oct 24, 2026
@willkill07
willkill07 merged commit 4ce3a87 into NVIDIA:main Oct 25, 2026
177 of 180 checks passed
@willkill07
willkill07 deleted the codex/nightly-retention-upstream-workflows branch October 30, 2026 14:46
@coderabbitai coderabbitai Bot mentioned this pull request Nov 5, 2026
2 tasks done

This branch was previously deployed

1 inactive deployment
fern — ba0f8792 Deployed Oct 25, 2026 by willkill07 via Clean up docs preview #6528
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI or Build or general repository maintenance size:S PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants