Skip to content

chore: disable scheduled CI; run workflows on demand#5996

Merged
wmadden merged 2 commits into
devfrom
will/disable-scheduled-ci
May 15, 2026
Merged

chore: disable scheduled CI; run workflows on demand#5996
wmadden merged 2 commits into
devfrom
will/disable-scheduled-ci

Conversation

@wmadden

@wmadden wmadden commented May 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Disables the schedule: triggers on three workflows in this repo so they stop spending CI minutes while ORM iteration is paused. They remain runnable on demand via workflow_dispatch (Actions tab or gh workflow run).

Workflows affected:

  • .github/workflows/check-for-update.yaml (was */5 * * * * — by far the biggest spend in this repo).
  • .github/workflows/cleanup-clouds.yaml (was weekly Mon).
  • .github/workflows/failing-weekly.yaml (was weekly Sun).

The schedule: blocks are commented out rather than deleted so re-enabling is a one-PR uncomment when ORM iteration resumes.

The README's CI status badge table is also removed. Without the check-for-update cron pushing new commits to dev/latest/patch-dev/integration, the test workflow effectively stops running on those branches; their badges would freeze at whatever colour they had on disable day, which risks an indefinite stale-red signal on the repo home page. Replaced with a single sentence pointing to the Actions tab.

Context

Part of a coordinated effort across the Prisma ORM repos. Other PRs in flight:

  • prisma/action-status-check#10 — pauses the daily Slack digest first so this change doesn't trigger a noisy false-alarm.
  • prisma/prisma (next) — disables daily-test.yml, daily-buildpulse.yml, and removes the cross-repo Ecosystem Tests Status badge from the README.
  • prisma/language-tools (next) — disables 1_check_for_updates.yml, e2e_check_for_new_published_vsix.yml, update-api-types.yml, and removes the e2e-vsix badge from the README.

Full project spec: projects/disable-scheduled-ci/spec.md in prisma/prisma (transient — will be deleted at close-out).

Verification

  • No workflow files are deleted; every modified workflow retains workflow_dispatch:.
  • README diff is limited to removing the badge block; surrounding sections are untouched.

To re-enable later

For any individual workflow, uncomment its schedule: block. To restore the README badge table, revert the README hunk of this commit.

Acceptance criteria covered (from project spec)

  • AC2: no schedule: triggers remain on the three in-scope workflow files.
  • AC4: each modified workflow still has workflow_dispatch:.
  • AC6: the prisma/ecosystem-tests README no longer contains the CI Status badge table.
  • AC10: diff is limited to schedule: removal and the listed badge block.
  • AC11: README sentence explains how to trigger workflows on demand.

ORM iteration has slowed enough that the high-frequency `check-for-update`
poller (every 5 minutes) and the weekly cleanup / known-failing replays are
no longer worth the CI spend. All three lose their `schedule:` triggers;
`workflow_dispatch` is preserved so anyone can still run them manually
from the Actions tab. The `schedule:` blocks are commented out (not
deleted) so re-enabling is a one-PR uncomment when ORM iteration resumes.

The README's CI status badge table previously embedded badges for `test`
on four branches plus `check-for-update`. Without the schedule those
badges would freeze at whatever colour they had on disable day, which
risks broadcasting a stale-red status indefinitely. Replaced with a
single sentence pointing to the Actions tab.

Context: projects/disable-scheduled-ci/spec.md in prisma/prisma.
@wmadden
wmadden requested a review from a team as a code owner May 14, 2026 09:53
@coderabbitai

coderabbitai Bot commented May 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: a10e13c4-89b5-45fe-b9a8-610e03d7ac22

📥 Commits

Reviewing files that changed from the base of the PR and between bfc277d and 1c373a8.

📒 Files selected for processing (1)
  • README.md

Summary by CodeRabbit

  • Chores
    • Disabled automated scheduled CI workflow triggers; affected workflows now run on-demand via manual triggering.
  • Documentation
    • Updated README guidance to reflect CI runs on demand and direct users to the Actions tab or CLI to trigger workflows.

Walkthrough

Three CI workflows (check-for-update, cleanup-clouds, failing-weekly) have their scheduled cron triggers commented out; manual workflow_dispatch remains. README text was updated to state CI runs on demand and to point to the Actions tab or gh workflow run.

Changes

On-Demand CI Execution

Layer / File(s) Summary
Disable scheduled workflow triggers
.github/workflows/check-for-update.yaml, .github/workflows/cleanup-clouds.yaml, .github/workflows/failing-weekly.yaml
Schedule cron triggers are commented out in all three workflows. The five-minute polling, weekly Monday cleanup, and weekly failing-test runs are disabled, while manual triggering via workflow_dispatch remains available.
Update documentation for on-demand CI
README.md
CI badge/status table and workflow cron descriptions are replaced with a note directing users to the Actions tab and documenting manual workflow triggering via gh workflow run, including an update to the Prisma check-for-update description.

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title clearly and accurately summarizes the main change: disabling scheduled CI triggers and enabling on-demand workflow execution.
Description check ✅ Passed The pull request description is comprehensive and directly related to the changeset, explaining the motivation, specific workflows affected, and verification steps.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch will/disable-scheduled-ci
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch will/disable-scheduled-ci

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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

Inline comments:
In `@README.md`:
- Line 5: Update README.md to remove the contradictory “cron-based every 5
minutes” language and instead state that the check-for-update.yaml workflow is
triggered manually/on-demand; locate the section referencing
check-for-update.yaml (the paragraph around "check-for-update.yaml") and replace
the cron wording with instructions that workflows are triggered from the Actions
tab or via `gh workflow run`, and ensure the README consistently says CI runs
are manual/on-demand across both the earlier CI statement and the
check-for-update.yaml description.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2300b971-c51c-4194-b1a4-ba5b692c8142

📥 Commits

Reviewing files that changed from the base of the PR and between 9404a4f and bfc277d.

📒 Files selected for processing (4)
  • .github/workflows/check-for-update.yaml
  • .github/workflows/cleanup-clouds.yaml
  • .github/workflows/failing-weekly.yaml
  • README.md

Comment thread README.md
Earlier in this PR the badge table was removed and the CI Status section
gained an on-demand note, but the "Updates → Prisma" paragraph still
described `check-for-update.yaml` as a 5-minute cron job. Rewrite that
paragraph so it matches the rest of the README: the workflow runs on
demand from the Actions tab or via `gh workflow run`.
wmadden added a commit to prisma/prisma that referenced this pull request May 15, 2026
## Summary

Disables the `schedule:` triggers on the two scheduled test workflows in
this repo so they stop spending CI minutes while ORM iteration is
paused. They remain runnable on demand via `workflow_dispatch`. Also
removes the cross-repo `Ecosystem Tests Status` badge from the README so
it can't go stale-red after the corresponding schedule is disabled in
`prisma/ecosystem-tests`.

Workflows affected:

- `.github/workflows/daily-test.yml` (was `0 4 * * 1-5`).
- `.github/workflows/daily-buildpulse.yml` (was `*/30 3-4 * * *`).

Not touched (intentionally):

- `test.yml` — push/PR-driven; keeps running normally on `main`.
- `codeql-analysis.yml` — security scans are cheap and stay.
- `auto-close-github-discussions.yml`, `label-stale-issues.yml` —
community housekeeping; negligible spend, stays.

The `schedule:` blocks are commented out rather than deleted so
re-enabling is a one-PR uncomment when ORM iteration resumes.

## Context

Part of a coordinated effort across the Prisma ORM repos. Other PRs in
flight:

- `prisma/action-status-check#10` — pauses the daily Slack digest
(deploys after merge).
- `prisma/ecosystem-tests#5996` — disables `check-for-update`,
`cleanup-clouds`, `failing-weekly`; removes the CI status badge table.
- `prisma/language-tools` (next) — disables `1_check_for_updates`,
`e2e_check_for_new_published_vsix`, `update-api-types`; removes the
`e2e-vsix` badge.

`prisma/prisma-engines` and `prisma/engines-wrapper` have no scheduled
workflows.

Full project spec: `projects/disable-scheduled-ci/spec.md` in this repo
(transient — will be deleted at close-out).

## Verification

- No workflow files are deleted; both modified workflows retain
`workflow_dispatch:`.
- README diff is limited to the two badge lines.

## To re-enable later

For each workflow, uncomment its `schedule:` block. To restore the
README badge, revert the README hunk of this commit.

## Acceptance criteria covered (from project spec)

- AC1: no `schedule:` triggers remain on `daily-test.yml` or
`daily-buildpulse.yml`.
- AC4: each modified workflow still has `workflow_dispatch:`.
- AC5: README no longer carries the `Ecosystem Tests Status` badge;
`Prisma Tests Status` remains.
- AC10: diff is limited to `schedule:` removal and the listed badge.
- AC11: README sentence explains that scheduled CI is disabled and how
it still runs.
@wmadden
wmadden merged commit c7decf4 into dev May 15, 2026
29 of 34 checks passed
@wmadden
wmadden deleted the will/disable-scheduled-ci branch May 15, 2026 08:23
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