parity: a host's exclude list also holds on its own CI runner
playhorizon's runner fails remote_fireball and remote_fireworks even alone and
at bare main (3b19c386c: 2 of 2 runs and the retry), while the Mac mini passes
them; every fork PR whose parity lands there stopped on them. The host's
exclude list only kept harnesses off workers sent there, not off the runner's
own jobs: platform_skips now adds the local host's exclude, skipped with its
reason unless named. The two harnesses join playhorizon's list; the Mac
mini's runner and the nightly audit (macOS) keep running them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+8
-6
@@ -1454,11 +1454,13 @@ def affected_harnesses(found, records, changed, reach=True, base=None):
|
||||
return affected
|
||||
|
||||
|
||||
def platform_skips(config):
|
||||
"""Harnesses tools/parity_hosts.json marks as giving different results on this platform: {name: reason}."""
|
||||
if sys.platform == "linux":
|
||||
return {}
|
||||
return dict(config.get("linux_only", {}))
|
||||
def platform_skips(config, host=None):
|
||||
"""Harnesses tools/parity_hosts.json marks as giving different results on this platform, and those this host's
|
||||
entry excludes (playhorizon's CI runner runs its own pull request jobs here, not only workers sent to it):
|
||||
{name: reason}."""
|
||||
skips = {} if sys.platform == "linux" else dict(config.get("linux_only", {}))
|
||||
skips.update(config.get("hosts", {}).get(HOST if host is None else host, {}).get("exclude", {}))
|
||||
return skips
|
||||
|
||||
|
||||
def known_flaky(config):
|
||||
@@ -1593,7 +1595,7 @@ def main():
|
||||
chosen = [name for name in found if stale(name, state, hasher, environment)]
|
||||
skips = platform_skips(host_config())
|
||||
for name in [name for name in chosen if base_name(name) in skips and not args.names]:
|
||||
print(f"skipped on {sys.platform}: {name}: {skips[base_name(name)]}", flush=True)
|
||||
print(f"skipped on {HOST} ({sys.platform}): {name}: {skips[base_name(name)]}", flush=True)
|
||||
chosen.remove(name)
|
||||
manual = {} if args.names or args.all else named_only(host_config())
|
||||
for name in [name for name in chosen if base_name(name) in manual]:
|
||||
|
||||
Reference in New Issue
Block a user