Skip to content

chore(ci): disable automated data/ops workflows; keep CI-only triggers#187

Merged
shaypal5 merged 1 commit into
mainfrom
codex/disable-ops-workflows
Jun 10, 2026
Merged

chore(ci): disable automated data/ops workflows; keep CI-only triggers#187
shaypal5 merged 1 commit into
mainfrom
codex/disable-ops-workflows

Conversation

@shaypal5

Copy link
Copy Markdown
Member

Summary

Removes all automatic triggers (cron schedules, workflow_run events, PR review hooks) from the 10 data/operational workflows. They are now workflow_dispatch-only — safe to keep in the repo for reference and manual use, but won't consume Actions minutes or fire unexpectedly.

The 3 pure-CI workflows are unchanged:

  • ci-test.yml — runs on push/PR ✅
  • codecov-yaml-validate.yml — runs on PR ✅
  • pyproject-validate.yml — runs on PR ✅

Disabled (workflow_dispatch only from now):

  • daily-state-run — was 0 4 * * *
  • weekly-state-run — was 30 4 * * 0
  • news-items-discover — was 0 3 * * *
  • news-items-release — was 15 4 * * 0
  • news-items-backup — was 45 4 * * 0
  • news-items-monthly-report — was 15 5 1 * *
  • news-items-backfill-discover — was workflow_dispatch only (kept)
  • news-items-backfill-scrape — was workflow_dispatch only (kept)
  • news-items-daily-review — was workflow_run + workflow_dispatch
  • pr-agent-context-refresh — was schedule + pull_request_review + check_run

Original triggers are preserved in git history for easy restoration.

🤖 Generated with Claude Code

All ten data/operational workflows are now workflow_dispatch-only (no
schedule, no event triggers). They will no longer fire automatically.
The three pure-CI workflows (ci-test, codecov-yaml-validate,
pyproject-validate) are unchanged and still run on push/PR.

Disabled workflows (original triggers preserved in git history):
  - daily-state-run        (schedule: 0 4 * * *)
  - weekly-state-run       (schedule: 30 4 * * 0)
  - news-items-discover    (schedule: 0 3 * * *)
  - news-items-release     (schedule: 15 4 * * 0)
  - news-items-backup      (schedule: 45 4 * * 0)
  - news-items-monthly-report (schedule: 15 5 1 * *)
  - news-items-backfill-discover (workflow_dispatch)
  - news-items-backfill-scrape   (workflow_dispatch)
  - news-items-daily-review      (workflow_run + workflow_dispatch)
  - pr-agent-context-refresh     (schedule + pull_request_review + check_run)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 09:47
@shaypal5 shaypal5 merged commit af187eb into main Jun 10, 2026
@shaypal5 shaypal5 deleted the codex/disable-ops-workflows branch June 10, 2026 09:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR disables all automatic triggers (cron schedules, workflow_run events, PR review hooks, etc.) for the repository’s data/operational GitHub Actions workflows, leaving them workflow_dispatch-only so they can be run manually without consuming Actions minutes unexpectedly.

Changes:

  • Removed schedule / workflow_run / PR-event triggers from data/ops workflows, leaving only workflow_dispatch.
  • Added consistent “Disabled” inline comments in the on: blocks pointing to git history for restoring triggers.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
.github/workflows/daily-state-run.yml Removes daily cron trigger; keeps manual dispatch.
.github/workflows/weekly-state-run.yml Removes weekly cron trigger; keeps manual dispatch.
.github/workflows/news-items-discover.yml Removes daily cron trigger; keeps manual dispatch.
.github/workflows/news-items-release.yml Removes weekly cron trigger; keeps manual dispatch.
.github/workflows/news-items-backup.yml Removes weekly cron trigger; keeps manual dispatch.
.github/workflows/news-items-monthly-report.yml Removes monthly cron trigger; keeps manual dispatch.
.github/workflows/news-items-backfill-discover.yml Keeps workflow dispatch only; updates on: block to disable automation.
.github/workflows/news-items-backfill-scrape.yml Keeps workflow dispatch only; updates on: block to disable automation.
.github/workflows/news-items-daily-review.yml Removes workflow_run trigger; keeps manual dispatch.
.github/workflows/pr-agent-context-refresh.yml Removes PR/check/schedule triggers; keeps manual dispatch.

Comment on lines 26 to 30
on:
pull_request_review:
types: [submitted, edited, dismissed]
pull_request_review_comment:
types: [created, edited, deleted]
check_run:
types: [completed]
# Some external providers still surface late results as commit statuses rather than check runs.
status:
# Disabled — automated data/ops jobs are run locally or triggered manually.
# To re-enable restore the original schedule/event triggers from git history.
workflow_dispatch:
inputs:
pull_request_number:
description: Pull request number to refresh explicitly.
required: true
type: string
pull_request_base_sha:
description: Base SHA for the explicit refresh target.
required: true
type: string
pull_request_head_sha:
description: Head SHA for the explicit refresh target.
required: true
type: string
trigger_event_name:
description: Synthetic trigger event name used in rendered metadata.
required: false
default: workflow_dispatch
type: string
trigger_event_action:
description: Synthetic trigger event action used in rendered metadata.
required: false
default: ""
type: string
schedule:
- cron: "*/15 * * * *"

Comment on lines 3 to 7
on:
schedule:
- cron: "15 5 1 * *"
# Disabled — automated data/ops jobs are run locally or triggered manually.
# To re-enable restore the original schedule/event triggers from git history.
workflow_dispatch:
inputs:
month:
description: "Optional report month in YYYY-MM; defaults to previous UTC month"
required: false
type: string

Comment on lines 3 to 7
on:
# Disabled — automated data/ops jobs are run locally or triggered manually.
# To re-enable restore the original schedule/event triggers from git history.
workflow_dispatch:
inputs:
date_from:
description: "Required ISO timestamp for the batch start window"
required: true
type: string
date_to:
description: "Required ISO timestamp for the batch end window"
required: true
type: string
batch_id:
description: "Optional durable batch id override"
required: false
type: string

Comment on lines 3 to 6
on:
# Disabled — automated data/ops jobs are run locally or triggered manually.
# To re-enable restore the original schedule/event triggers from git history.
workflow_dispatch:
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.22%. Comparing base (52d1b78) to head (84fa256).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #187   +/-   ##
=======================================
  Coverage   93.22%   93.22%           
=======================================
  Files          78       78           
  Lines       11786    11786           
=======================================
  Hits        10987    10987           
  Misses        799      799           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown

pr-agent-context report:

This run includes unresolved review comments and a failing check on PR #187.

For each unresolved review comment, recommend one of: resolve as irrelevant, accept and implement
the recommended solution, open a separate issue and resolve as out-of-scope for this PR, accept and
implement a different solution, or resolve as already treated by the code.

After I reply with my decision per item, implement the accepted actions, resolve the corresponding
PR comments, fix the failing checks below, and push all of these changes in a single commit.

# Copilot Comments

## COPILOT-1
Location: .github/workflows/pr-agent-context-refresh.yml:30
URL: https://github.com/DataHackIL/tfht_enforce_idx/pull/187#discussion_r3387214549
Root author: copilot-pull-request-reviewer

Comment:
    `workflow_dispatch` input definitions were removed, but this workflow still relies heavily on `github.event.inputs.*` (run-name/concurrency) and the `pr-agent-context-refresh` job explicitly requires the three SHA/PR inputs to be non-empty. With no declared inputs, manual dispatches from the UI/API cannot supply these values and the main job will be skipped (and concurrency grouping can collapse to the same empty key). Restore the `workflow_dispatch.inputs` block while keeping the other triggers disabled.

## COPILOT-2
Location: .github/workflows/news-items-monthly-report.yml:7
URL: https://github.com/DataHackIL/tfht_enforce_idx/pull/187#discussion_r3387214590
Root author: copilot-pull-request-reviewer

Comment:
    The `month` workflow_dispatch input was removed, but the job still reads `github.event.inputs.month` to populate `DENBUST_MONTHLY_REPORT_MONTH`. Without a declared input, the dispatch UI cannot provide a value, making the workflow harder/impossible to run for a specific month. Restore the `month` input definition under `workflow_dispatch`.

## COPILOT-3
Location: .github/workflows/news-items-backfill-discover.yml:7
URL: https://github.com/DataHackIL/tfht_enforce_idx/pull/187#discussion_r3387214628
Root author: copilot-pull-request-reviewer

Comment:
    `workflow_dispatch` inputs (`date_from`, `date_to`, `batch_id`) were removed, but the workflow still exports `DENBUST_BACKFILL_DATE_FROM/TO` and `DENBUST_BACKFILL_BATCH_ID` from `inputs.*`. With no declared inputs, manual dispatch can't provide the required date window, so runs will either fail or execute with empty constraints. Restore the input definitions under `workflow_dispatch`.

## COPILOT-4
Location: .github/workflows/news-items-backfill-scrape.yml:6
URL: https://github.com/DataHackIL/tfht_enforce_idx/pull/187#discussion_r3387214669
Root author: copilot-pull-request-reviewer

Comment:
    The `batch_id` workflow_dispatch input was removed, but the workflow still sets `DENBUST_BACKFILL_BATCH_ID: ${{ inputs.batch_id }}`. Without a declared input, manual dispatch can't provide a batch id (and the value will always be empty), making this workflow less usable. Restore the `batch_id` input under `workflow_dispatch`.

# Failing Checks

## FAIL-1
Type: Commit status
Context: pre-commit.ci - pr
Status: error
URL: https://results.pre-commit.ci/run/github/1159993403/1781084871.89IpRHNvTTOy7w8Ed82PCw

Summary:
    error during mergeable check

Run metadata:

Tool ref: v4.0.19
Tool version: 4.0.19
Trigger: pull request opened
Workflow run: 27267883273 attempt 1
Comment timestamp: 2026-06-10T09:51:12.217937+00:00
PR head commit: 84fa2561748181335b28478ac6835749413cc99c

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