Skip to content

[CI] Run scheduled main workflow daily, skip after recent commits - #2082

Merged
mergify[bot] merged 1 commit into
Shamrock-code:mainfrom
tdavidcl:cursor/daily-scheduled-ci-skip-9279
Aug 17, 2026
Merged

[CI] Run scheduled main workflow daily, skip after recent commits#2082
mergify[bot] merged 1 commit into
Shamrock-code:mainfrom
tdavidcl:cursor/daily-scheduled-ci-skip-9279

Conversation

@tdavidcl

Copy link
Copy Markdown
Member

Run On Schedule every day at 02:00 UTC instead of Monday/Wednesday/Friday. Skip the CI jobs when a commit already landed on main in the last 24 hours, since On Push already covered that change. Manual workflow_dispatch still always runs.

Run On Schedule every day at 02:00 UTC instead of Monday/Wednesday/Friday.
Skip the CI jobs when a commit already landed on main in the last 24 hours,
since On Push already covered that change. Manual workflow_dispatch still
always runs.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks @tdavidcl for opening this PR!

You can do multiple things directly here:
1 - Comment pre-commit.ci run to run pre-commit checks.
2 - Comment pre-commit.ci autofix to apply fixes.
3 - Add label autofix.ci to fix authorship & pre-commit for every commit made.
4 - Add label full-ci to run the full test suite (default is light CI; full CI also runs on Mergify merge-queue branches).
5 - Add label trigger-ci to create an empty commit to trigger the CI.

Once the workflow completes a message will appear displaying informations related to the run.

Also the PR gets automatically reviewed by gemini, you can:
1 - Comment /gemini review to trigger a review
2 - Comment /gemini summary for a summary
3 - Tag it using @gemini-code-assist either in the PR or in review comments on files

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: fa16215d-0c71-49d4-a0f3-a193a1ded4be

📥 Commits

Reviewing files that changed from the base of the PR and between 2034ba3 and f396426.

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

Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The scheduled workflow now runs daily at 02:00 UTC. A should_run job skips scheduled CI when the latest commit is less than 24 hours old. The Codecov check and main workflow run only when run_ci is true.

Changes

Scheduled CI gating

Layer / File(s) Summary
Scheduled run decision
.github/workflows/on_schedule_main.yml
The workflow runs daily and adds a should_run job. Scheduled runs use the latest commit age. Other events enable CI.
Conditional downstream execution
.github/workflows/on_schedule_main.yml
The Codecov secret check and main workflow invocation depend on should_run and require run_ci to be true.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: 🔵 Low · up to f3964

The workflow may occasionally rerun CI unnecessarily or skip scheduled CI longer than intended because it uses commit timestamp rather than landing time for the 24-hour check. The change is mergeable with explicit owner awareness or follow-up to confirm that this timestamp is an acceptable proxy.

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActionsScheduler
  participant should_run
  participant CodecovSecretCheck
  participant MainWorkflow
  GitHubActionsScheduler->>should_run: Start daily scheduled workflow
  should_run->>should_run: Check latest commit age
  should_run-->>CodecovSecretCheck: Set run_ci
  should_run-->>MainWorkflow: Set run_ci
  CodecovSecretCheck->>CodecovSecretCheck: Run when run_ci is true
  MainWorkflow->>MainWorkflow: Invoke when run_ci is true
Loading

Possibly related PRs

Suggested labels: light-ci

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the daily schedule and recent-commit skip behavior.
Description check ✅ Passed The description accurately explains the schedule change, skip condition, and manual workflow 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

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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.

@github-actions

Copy link
Copy Markdown
Contributor

Workflow report

workflow report corresponding to commit f396426
Commiter email is [email protected]

Light CI is enabled (the default for pull requests). This will only run the basic tests and not the full tests.
Full CI runs if the full-ci label is set, or automatically on Mergify merge-queue branches (mergify/merge-queue/*).
The merge gate job "on PR / all" is skipped in this case. Queue entry uses "on PR / all_light"; full CI runs in the merge queue.

Pre-commit check report

Pre-commit check: ✅

trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check for merge conflicts................................................Passed
check that executables have shebangs.....................................Passed
check that scripts with shebangs are executable..........................Passed
check for added large files..............................................Passed
check for case conflicts.................................................Passed
check for broken symlinks................................................Passed
check yaml...............................................................Passed
detect private key.......................................................Passed
No-tabs checker..........................................................Passed
Tabs remover.............................................................Passed
cmake-format.............................................................Passed
Validate GitHub Workflows................................................Passed
clang-format.............................................................Passed
ruff check...............................................................Passed
ruff format..............................................................Passed
Check doxygen headers....................................................Passed
Check license headers....................................................Passed
Check #pragma once.......................................................Passed
Check SYCL #include......................................................Passed
No ssh in git submodules remote..........................................Passed
No UTF-8 in files (except for authors)...................................Passed

Test pipeline can run.

Clang-tidy diff report

No relevant changes found.
Well done!

You should now go back to your normal life and enjoy a hopefully sunny day while waiting for the review.

Doxygen diff with main

Removed warnings : 0
New warnings : 0
Warnings count : 8183 → 8183 (0.0%)

Detailed changes :

@mergify

mergify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Queued — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Merge Queue Status

This pull request spent 2 hours 3 minutes 46 seconds in the queue, including 1 hour 51 minutes 6 seconds running CI.

Required conditions to merge
  • check-success = all

@mergify mergify Bot added the queued label Aug 17, 2026
@mergify
mergify Bot merged commit a5b5e5e into Shamrock-code:main Aug 17, 2026
38 checks passed
@mergify mergify Bot removed the queued label Aug 17, 2026
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.

2 participants