Skip to content

CI: Modernize CI workflow triggers and PR comment formatting.#163

Open
brycelelbach wants to merge 2 commits intomainfrom
feature/modernize-ci-workflows
Open

CI: Modernize CI workflow triggers and PR comment formatting.#163
brycelelbach wants to merge 2 commits intomainfrom
feature/modernize-ci-workflows

Conversation

@brycelelbach
Copy link
Collaborator

Summary

  • Add merge_group trigger for GitHub merge queue support.
  • Replace pull_request trigger with push to all branches (excluding gh-readonly-queue/** merge queue branches) to avoid redundant duplicate runs while still triggering CI on every push, even before a PR exists. Fork PRs are handled via NVIDIA's copy-pr-bot which copies code to pull-request/N branches.
  • Add concurrency groups (matching the CCCL pattern) to cancel superseded runs on the same branch.
  • Use nv-gha-runners/get-pr-info to resolve PR numbers on copy-pr-bot branches, with workflow_run.pull_requests as fallback for same-repo PRs.
  • Capture specific failure output (lychee report, notebook format errors, yamllint errors) and include in PR comments via collapsible <details> blocks.
  • Unify artifact upload/download pattern across all test and PR comment workflow pairs.
  • Normalize PR comment headings, section levels, doc links, and markdown formatting.
  • Fix comment body indentation that caused markdown rendering issues (headings/lists rendered as code blocks due to 12+ leading spaces in template literals).

Note: The workflow_run-triggered PR comment workflows always run from the default branch, not the PR branch. This means:

  • Testable on this PR: test workflow triggers, concurrency groups, artifact uploads, get-pr-info integration.
  • Only testable after merging to main: PR failure comments (new formatting, <details> blocks, specific error output). The first PR that fails a check after this merges will exercise the comment workflows.
  • Only testable after enabling merge queue: the merge_group trigger.

- Add `merge_group` trigger for GitHub merge queue support.
- Replace `pull_request` trigger with `push` to all branches (excluding
  merge queue branches) to avoid redundant runs while still triggering
  CI on every push, even before a PR exists. Fork PRs are handled via
  NVIDIA's copy-pr-bot which copies code to `pull-request/N` branches.
- Add concurrency groups to cancel superseded runs on the same branch.
- Use `nv-gha-runners/get-pr-info` to resolve PR numbers on copy-pr-bot
  branches, with `workflow_run.pull_requests` as fallback for same-repo
  PRs.
- Capture specific failure output (lychee report, notebook format errors,
  yamllint errors) and include in PR comments via collapsible details.
- Unify artifact upload/download pattern across all test and PR comment
  workflow pairs.
- Fix invalid YAML caused by unindented template literal content in
  script blocks; use .replace().trim() to dedent at runtime.
- Normalize comment headings: "YAML Lint Check" → "YAML Check",
  "Commit Signature Check" → "Git Signature Check".
- Unify section heading levels (all ### for "How to fix").
- Add missing external doc links to notebook-format and git-lfs comments.
- Wrap git-lfs and git-signatures error details in collapsible <details>
  blocks, matching the pattern used by the other three comment workflows.
@brycelelbach brycelelbach force-pushed the feature/modernize-ci-workflows branch from 3324dc8 to 7334181 Compare March 12, 2026 13:12
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