Skip to content

Commit

Permalink
update: add support for excluding jobs from build status checks (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyinstarlight committed Jan 3, 2024
1 parent 756307d commit 1d02e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def get_eval(eval_id, skip_existing_tag = false)
"installerScript",
]
extra_prefixes = ["build.", "buildStatic.", "tests.", "installTests.", "installerTests."]
exclude_jobs = ["tests.setuid.i686-linux"]

downloads = []

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

if dist_jobs.none?(job) and extra_prefixes.none? { |prefix| job.start_with? prefix }
if dist_jobs.none?(job) and extra_prefixes.none? { |prefix| job.start_with? prefix } or exclude_jobs.include?(job)
next
end

Expand Down

0 comments on commit 1d02e64

Please sign in to comment.