Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ jobs:
shell: bash

- id: versions-matrix
# Only run for pull requests if the base repo is different from the head repo, not for workflow_dispatch if not requested, always run for other events
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository) && (github.event_name != 'workflow_dispatch' || inputs.versions-matrix)
# Only run for:
# - pull requests if the base repo is different from the head repo and the branch name does not start with "cran-"
# Do not run for:
# - workflow_dispatch if not requested
# Always run for other events.
Comment on lines +137 to +140

Copilot AI Jan 13, 2026

Copy link

Choose a reason for hiding this comment

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

The comment incorrectly describes the condition. It states "pull requests if the base repo is different from the head repo and the branch name does not start with 'cran-'", but the logic uses OR, not AND. The step actually runs for pull requests when EITHER the repos are different (external PR) OR the branch starts with 'cran-' (internal or external). The comment should be updated to accurately reflect that for pull requests, the step runs when: (1) it's an external PR from any branch, OR (2) the branch name starts with 'cran-' regardless of whether it's internal or external.

Suggested change
# - pull requests if the base repo is different from the head repo and the branch name does not start with "cran-"
# Do not run for:
# - workflow_dispatch if not requested
# Always run for other events.
# - pull requests if either the base repo is different from the head repo (external PR) or the branch name starts with "cran-" (internal or external)
# Do not run for:
# - workflow_dispatch if not requested
# Always run for other non-pull_request events.

Copilot uses AI. Check for mistakes.
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository || startsWith(github.head_ref, 'cran-')) && (github.event_name != 'workflow_dispatch' || inputs.versions-matrix)
uses: ./.github/workflows/versions-matrix

- id: dep-suggests-matrix
Expand Down Expand Up @@ -285,7 +289,7 @@ jobs:

runs-on: ${{ matrix.os }}

if: ${{ needs.rcc-smoke.outputs.versions-matrix != '' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.run-rcc-full)) }}
if: ${{ needs.rcc-smoke.outputs.versions-matrix != '' }}

Copilot AI Jan 13, 2026

Copy link

Choose a reason for hiding this comment

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

The removal of the condition restricting rcc-full to only run on 'schedule' and 'workflow_dispatch' events means this job will now run in many more scenarios (e.g., on push events to branches like cran-*, and on pull requests from branches starting with cran-). This significantly expands when the full test matrix runs. Verify this is the intended behavior, as it may substantially increase CI resource usage and runtime for events that previously only ran the smoke test.

Suggested change
if: ${{ needs.rcc-smoke.outputs.versions-matrix != '' }}
if: ${{ needs.rcc-smoke.outputs.versions-matrix != '' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.run-rcc-full)) }}

Copilot uses AI. Check for mistakes.

name: 'rcc: ${{ matrix.os }} (${{ matrix.r }}) ${{ matrix.desc }}'

Expand Down
Loading