Skip to content

Commit 1d02e64

Browse files
update: add support for excluding jobs from build status checks (#56)
1 parent 756307d commit 1d02e64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

update.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def get_eval(eval_id, skip_existing_tag = false)
6868
"installerScript",
6969
]
7070
extra_prefixes = ["build.", "buildStatic.", "tests.", "installTests.", "installerTests."]
71+
exclude_jobs = ["tests.setuid.i686-linux"]
7172

7273
downloads = []
7374

@@ -77,7 +78,7 @@ def get_eval(eval_id, skip_existing_tag = false)
7778
data = fetch_json("https://hydra.nixos.org/build/#{build_id}")
7879
job = data["job"]
7980

80-
if dist_jobs.none?(job) and extra_prefixes.none? { |prefix| job.start_with? prefix }
81+
if dist_jobs.none?(job) and extra_prefixes.none? { |prefix| job.start_with? prefix } or exclude_jobs.include?(job)
8182
next
8283
end
8384

0 commit comments

Comments
 (0)