Skip to content

Commit

Permalink
Display less build IDs for nightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Oct 12, 2017
1 parent a290d9b commit 76f8a66
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pollbot/tasks/buildhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,15 @@ async def buildhub(product, version):
missing_message = 'Buildhub does not contain any information about this release yet.'

if status:
exists_message = exists_message.format(', '.join(build_ids))

if channel is Channel.NIGHTLY:
last_expected_nightly = yesterday(formating='%Y%m%d')
if build_ids[0][:8] < last_expected_nightly:
status = Status.INCOMPLETE
build_ids = build_ids[:3]
else:
build_ids = [bid for bid in build_ids if bid > last_expected_nightly]

exists_message = exists_message.format(', '.join(build_ids))

url = ("https://mozilla-services.github.io/buildhub/"
"?versions[0]={}&products[0]={}&channel[0]={}")
Expand Down

0 comments on commit 76f8a66

Please sign in to comment.