Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/hourly-nvidia-nim-review-repair.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions tests/test_hourly_scheduler_runtime_budget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading