CI priority jobs dispatch - #327
Open
varun-jaiswal17 wants to merge 6 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Score-driven CI priority dispatch for 5.x PRs
opencv/opencv'sPR-5.x.yamlcalls one reusable workflow per platform. Each gated reusable workflow gets a lightweightpriority-gatejob (onubuntu-latest); the heavy self-hosted jobsneeds:it:The scarce runner is never held while waiting — only the cheap gate job waits.
(head_branch, platform)— opencv PRs are forkpull_requestruns with no PR number. Factors:failed_on_prev_run(×10),flake_penalty(×2),short_job_first(×1),branch_stability(×1). Acancelledrun is not treated as a failure.(run_id, pool)— onePR:5.xrun fans out to many platform jobs that share arun_id, and platforms sharing self-hosted runners must contend in one queue.ci-priority-databranch (clone → append → push-retry).ci_priority/seed/runs.ndjson) makes initial scoring base; the store then self-updates from each run's release job (no separate ingest).Safety
PRIORITY_GATE_RUNNERvariable unset, every gate runs on GitHub-hostedubuntu-latestand fails open, so CI behaves exactly as today. Merging is a no-op until it's enabled — safe to review in the wild first. Noopencv/opencvchange is required.Current state & follow-up
This PR runs the gate on GitHub-hosted
ubuntu-latest— no physical/self-hosted runner. As shipped:(The workflows carry a
PRIORITY_GATE_RUNNERvariable hook that defaults toubuntu-latest; it's unused for now and exists only so the follow-up needs no code change.)