Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-controller/src/review_classifier
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris cffe8895df review classifier: the most classifications a run carries is a setting
The limit was a constant of ten in swarm-wire, so a repo with eleven rules
could not be reviewed and nothing short of a rebuild changed it. It is now
`max_classifications` in the classifier settings, beside
`max_concurrent_reviews`: 1 to 1000, ten until set, and a document stored
before the field decodes with the default. The classifier settings form in
the swarm UI gets a "rules per review" field, and the try-out's add button
stops at the saved limit instead of a hard-coded ten.

The controller checks a try-out, and a requested review's rules file, against
the setting where the run starts. The rules file itself may hold up to the
1000 the setting allows, so raising the limit needs no change to a repo.
A review whose rules exceed the limit posts a no-verdict comment saying so.

A run's reply deadline was a constant that covered ten classifications, a
minute plus three each. It is now computed from the run's own size, so a
bigger run waits as long as it needs and a default-sized one still waits 31
minutes. The classifier's answer window in the queue permissions covers the
biggest run the setting allows.
2026-11-07 11:32:04 +01:00
..
metrics.rs review-classifier: a requested review runs even on a draft pr 2026-11-02 18:45:36 +01:00
open_pr.rs review classifier: the most classifications a run carries is a setting 2026-11-07 11:32:04 +01:00
review.rs review classifier: the most classifications a run carries is a setting 2026-11-07 11:32:04 +01:00
runs.rs review classifier: queued review requests survive a restart and are never refused 2026-10-24 03:22:44 +02:00
settings.rs review classifier: the most classifications a run carries is a setting 2026-11-07 11:32:04 +01:00