Skip to content

Commit

Permalink
Update min_revision so that progression task can progress without err…
Browse files Browse the repository at this point in the history
…ors (#4634)

If the min_revision (based on last_tested_crash_revision or
known_crash_revision) no longer exists, then use the first revision in
the list so that progression does not error out with "Build not found"
  • Loading branch information
svasudevprasad authored Feb 5, 2025
1 parent 11d25c3 commit b5e7a55
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,15 @@ def find_fixed_range(uworker_input):
known_crash_revision = last_tested_revision or testcase.crash_revision
if not min_revision:
min_revision = known_crash_revision
# If the min_revision (based on last_tested_crash_revision or
# known_crash_revision) no longer exists, then use the first
# revision in the list so that progression does not error out with
# "Build not found"
min_revision_in_list = revisions.get_first_revision_in_list(revision_list)
if min_revision < min_revision_in_list:
logs.info(f'Build {min_revision} might not exist in the list. Hence '
f'updating the min_revision to {min_revision_in_list}')
min_revision = min_revision_in_list
if not max_revision:
max_revision = revisions.get_last_revision_in_list(revision_list)

Expand Down

0 comments on commit b5e7a55

Please sign in to comment.