Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created tests for ReleaseCandidateScraper (#160) #165

Closed
wants to merge 7 commits into from

Conversation

Nebelhom
Copy link
Collaborator

This PR addresses issue #160

Tests for the ReleaseCandidateScraper :)

@Nebelhom
Copy link
Collaborator Author

@whimboo @davehunt

please review :)

# -t candidate -p win32 -v 21.0
{'args': {'platform': 'win32',
'version': '21.0'},
'target': 'firefox-21.0-build3.en-US.win32.exe'},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the release scraper tests, we should get ´-t candidate´ moved out to a separate test given that it's not used here.

@whimboo
Copy link
Contributor

whimboo commented Sep 25, 2013

Otherwise it looks great! Lets get it updated and we can land it. Yay!

@Nebelhom
Copy link
Collaborator Author

Ok, @whimboo done :)

Another review of these changes please. Thanks a lot!

@whimboo
Copy link
Contributor

whimboo commented Sep 30, 2013

This pull cannot be merged anymore since the tests for the release scraper have been added. Please fix the merge issues.

# -p win32 -v 21.0
{'args': {'platform': 'win32',
'version': '21.0'},
'target': 'firefox-21.0-build3.en-US.win32.exe'},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need tests for the target_url too, which I missed before.

@Nebelhom
Copy link
Collaborator Author

Nebelhom commented Oct 2, 2013

@whimboo

Thanks for the feedback and taking the time to go through this rather large PR.

I updated the pull now and added the target_url key to the dicts and test for it like in the release_scraper.

tests = firefox_tests + thunderbird_tests


class ReleaseScraperTest(mhttpd.MozHttpdBaseTest):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ReleaseScraper? This is ReleaseCandidateScraper.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a copy/paste error that I overlooked. Sorry

@whimboo
Copy link
Contributor

whimboo commented Oct 8, 2013

With the patch I get a lot of INFO output written to the console:

Testing various download scenarios for ReleaseScraper ... INFO | Retrieving list of candidate builds from http://127.0.0.1:8080/data/firefox/nightly/21.0-candidates/
INFO | Found 2 builds: build1, build3
INFO | Retrieving list of candidate builds from http://127.0.0.1:8080/data/firefox/nightly/21.0-candidates/
INFO | Found 2 builds: build1, build3

Can we hide that?

@Nebelhom
Copy link
Collaborator Author

Nebelhom commented Oct 8, 2013

@whimboo

I spoke with @davehunt about this last weekend. This has something to do with the logger settings. We thought it best to open a new issue for this once all the tests have been implemented.

It is best if during the tests there is only ERROR output, so also no progressbar. I am sure we can tie the progressbar to the information level of the logger. What do you think?

@whimboo
Copy link
Contributor

whimboo commented Oct 9, 2013

Ok, lets get a new issue filed to hide this logger output. Otherwise lets see how important it would be, and if this additional information wouldn't give us some helpful details while running the tests.

@Nebelhom
Copy link
Collaborator Author

Ok, lets get a new issue filed to hide this logger output.

Please see: #175

@Nebelhom
Copy link
Collaborator Author

Otherwise lets see how important it would be, and if this additional information wouldn't give us some helpful details while running the tests.

It should be easy enough to increase the logger output level. In that token, if there is an error in some of the tests, you can still increase the output and re-run when debugging.

@Nebelhom
Copy link
Collaborator Author

@whimboo:

The minor nit pick was changed now and a new issue opened for the output. Hopefully that is it now :)

Thanks for reviewing

@whimboo
Copy link
Contributor

whimboo commented Oct 22, 2013

@Nebelhom sorry but we need another update of the pull. It has been bitrotted most likely due to the landing of the daily scraper tests. :/

@Nebelhom
Copy link
Collaborator Author

@whimboo

Don't worry about it. I will now wait until this one is merged before I look at the other tests. That way, we will hopefully avoid the constant bitrotting.

@whimboo
Copy link
Contributor

whimboo commented Oct 24, 2013

I cannot run this tests due to a version conflict with mozinfo. Can we get issue #177 fixed first please?

@@ -1,4 +1,5 @@
[include:base_scraper/manifest.ini]
[include:candidate_scraper/manifest.ini]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just something I found. Can we please rename this to release_candidate_scraper and reorder?

@Nebelhom
Copy link
Collaborator Author

@whimboo

ok, fixed. thanks for the reviews :)

@whimboo
Copy link
Contributor

whimboo commented Oct 25, 2013

Merged as 565d5fa

@whimboo whimboo closed this Oct 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants