Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #310 from mozilla-services/309-fix-nightly-test_pa…
Browse files Browse the repository at this point in the history
…ckages

Fix test_packages regexp to avoid confusion with build metadata (fixes #295, #309)
  • Loading branch information
leplatrem authored Nov 30, 2017
2 parents 0dbe3f4 + 9a12040 commit dca532c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jobs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This document describes changes between each past release.
1.2.0 (unreleased)
------------------

- Nothing changed yet.
- Fix test_packages regexp to avoid confusion with build metadata (fixes #295, #309)

1.1.0 (2017-11-03)
------------------
Expand Down
2 changes: 1 addition & 1 deletion jobs/buildhub/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def is_nightly_build_metadata(product, url):
if product == 'mobile':
product = 'fennec'
# Exlude alias folder, and other metadata.
re_exclude = re.compile('.+latest-mozilla-central|test_packages')
re_exclude = re.compile('.+(latest-mozilla-central|test_packages)')
if re_exclude.match(url):
return False
# Note: devedition has no nightly.
Expand Down
4 changes: 3 additions & 1 deletion jobs/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,9 @@ def test_is_nightly_build_metadata(product, url):
('firefox', 'pub/firefox/candidates/56.0b1-candidates/build4/linux-x86_64/en-US/'
'firefox-56.0b1.json'),
('firefox', 'pub/firefox/nightly/latest-mozilla-central/firefox-58.0a1.en-US.'
'win64.test_packages.json')
'win64.test_packages.json'),
('firefox', 'pub/firefox/nightly/2017/11/2017-11-29-11-10-30-mozilla-central/'
'firefox-59.0a1.en-US.win32.test_packages.json')
]


Expand Down

0 comments on commit dca532c

Please sign in to comment.