Nightly parity audit on the Mac mini, with an issue per regressed harness
nightly.yml runs every harness from scratch on main at 03:00 Paris time on the Mac mini's runner, after preparing the resources again if the preparer changed. tools/ci/parity_issues.py compares the results with the previous audit: a harness that passed and now fails gets one issue labelled parity-regression (an open one is commented on), and an issue closes when its harness passes again. The bugs session picks them up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import unittest
|
||||
|
||||
from tools.ci import parity_issues as issues
|
||||
|
||||
|
||||
class ParityIssuesTests(unittest.TestCase):
|
||||
def test_results_merge_shards_and_skip_earlier_runs(self):
|
||||
state = {"harnesses": {
|
||||
"food": {"status": "pass", "finished": "2026-10-15T03:10:00"},
|
||||
"datafix#1": {"status": "pass", "finished": "2026-10-15T03:20:00"},
|
||||
"datafix#2": {"status": "fail", "finished": "2026-10-15T03:21:00"},
|
||||
"light": {"status": "fail", "finished": "2026-10-14T03:30:00"},
|
||||
"copied": {"status": "pass", "finished": "2026-10-15T03:30:00", "shared": True},
|
||||
}}
|
||||
self.assertEqual(issues.results(state, "2026-10-15T03:00:00"), {"food": "pass", "datafix": "fail"})
|
||||
|
||||
def test_plan_opens_comments_and_closes(self):
|
||||
now = {"a": "fail", "b": "fail", "c": "pass", "d": "fail", "e": "pass"}
|
||||
previous = {"a": "pass", "b": "fail", "c": "fail", "e": "pass"}
|
||||
self.assertEqual(issues.plan(now, previous, {"b": 7, "c": 8}),
|
||||
[("open", "a"), ("comment", "b"), ("close", "c")])
|
||||
# A harness that never passed in an audit (d) gets no issue; one that keeps passing (e) nothing.
|
||||
self.assertEqual(issues.plan(now, {}, {}), [])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user