Skip to content

Commit

Permalink
Merge pull request #2323 from cms-sw/no-file-limit-root
Browse files Browse the repository at this point in the history
[RFC] Disable checking for number of modified files in non-cmssw repos
  • Loading branch information
iarspider authored Sep 3, 2024
2 parents be041ba + 1e79a02 commit 9fa672d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion process_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,7 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F
pr.changed_files >= TOO_MANY_FILES_WARN_THRESHOLD
and (not warned_too_many_files)
and (not ok_too_many_files)
and cmssw_repo
):
if pr.changed_files < TOO_MANY_FILES_FAIL_THRESHOLD:
if not dryRun:
Expand All @@ -1650,7 +1651,11 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F

return

if pr.changed_files >= TOO_MANY_FILES_WARN_THRESHOLD and not ok_too_many_files:
if (
pr.changed_files >= TOO_MANY_FILES_WARN_THRESHOLD
and not ok_too_many_files
and cmssw_repo
):
print("Changed file count reached and not overridden, quitting")
return

Expand Down

0 comments on commit 9fa672d

Please sign in to comment.