diff --git a/.github/workflows/hourly-nvidia-nim-review-repair.yml b/.github/workflows/hourly-nvidia-nim-review-repair.yml index d87a5f3987..01ccafe0fb 100644 --- a/.github/workflows/hourly-nvidia-nim-review-repair.yml +++ b/.github/workflows/hourly-nvidia-nim-review-repair.yml @@ -66,6 +66,7 @@ on: - docs/doctoring/contextual-orchestrator-hourly-review-caller.md - docs/doctoring/afipc-hourly-review-caller.md push: + branches: [main] paths: - .github/workflows/pr-review-fix-scheduler.yml - scripts/ci/pr_review_fix_scheduler.py diff --git a/tests/test_hourly_scheduler_runtime_budget.py b/tests/test_hourly_scheduler_runtime_budget.py index d7888d4583..fb59a5fb24 100644 --- a/tests/test_hourly_scheduler_runtime_budget.py +++ b/tests/test_hourly_scheduler_runtime_budget.py @@ -71,6 +71,17 @@ def test_quality_gate_close_event_retires_prior_pr_run_without_runner() -> None: ) +def test_quality_gate_push_runs_only_on_the_default_branch() -> None: + """PR branch pushes rely on pull_request; push validates merged main.""" + quality = _read(QUALITY) + push_trigger = quality.split(" push:\n", maxsplit=1)[1].split( + "\nconcurrency:\n", maxsplit=1 + )[0] + + assert push_trigger.startswith(" branches: [main]\n") + assert push_trigger.count("branches:") == 1 + + def test_review_repair_quality_workflow_has_truthful_identity() -> None: """Keep the stable workflow ID while retiring its direct-NIM identity.""" assert QUALITY.is_file()