Skip to content

Commit

Permalink
fix: exit 0 when old data set
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Jan 7, 2025
1 parent 12bf33b commit 800c413
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion util/syncCheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,22 @@
puts "RUN #{runnum} #{found_issue_in_run ? "has issues (see stderr)" : "is okay"}"
end

exit 1 if found_issue_anywhere
if found_issue_anywhere
if [ # datasets which used DST 5-files as QA bins
"pass1/rga_fa18_inbending",
"pass1/rga_fa18_outbending",
"pass1/rga_sp19",
"pass1/rgb_fa19",
"pass1/rgb_sp19",
"pass1/rgb_wi20",
"pass1/rgk_fa18_6.5GeV",
"pass1/rgk_fa18_7.5GeV",
"pass1/rgm_fa21",
].include? dataset
$stderr.puts "WARNING: this dataset was done using DST 5-files as QA bins, which inherently causes SYNC ERRORS; now exitting with 0"
exit 0
else
$stderr.puts "ERROR: this dataset should not have any errors"
exit 1
end
end

0 comments on commit 800c413

Please sign in to comment.