Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Fix Rainfall tests for travis #1589

Merged
merged 2 commits into from Mar 3, 2015

Conversation

pfirsichbluete
Copy link
Contributor

Recently Travis started to fail Rainfall tests.
Those two commits make them pass again.

The first commit is just whitespace fixup.

The second commit has the acutal fix.

The issue is that some variants of the country data report Bolivia as

Bolivia, Plurinational State of

(comma after 'Bolivia') while others use

Bolivia (Plurinational State of)

(space and opening paren after 'Bolivia').

This difference recently made made travis tests fail. We now split
country names at both comma and ' (' to identify the main country name
for both variants. Thereby, tests pass again in travis.

Some variants of the country data report Bolivia as

  Bolivia, Plurinational State of

(comma after 'Bolivia') while others use

  Bolivia (Plurinational State of)

(space and opening paren after 'Bolivia').

This difference recently made made travis tests fail [1]. We now split
country names at both comma and ' (' to identify the main country name
for both variants. Thereby, tests pass again in travis.

[1] https://travis-ci.org/duckduckgo/zeroclickinfo-spice/jobs/52748092#L1663
@pfirsichbluete
Copy link
Contributor Author

Travis is all green again :-)

@moollaza
Copy link
Member

moollaza commented Mar 3, 2015

@pfirsichbluete thanks for this! We'll review shortly.

/cc @MrChrisW thought you'd be interested in this :)

@pfirsichbluete
Copy link
Contributor Author

Just for reference ...

Last good build I found was https://travis-ci.org/duckduckgo/zeroclickinfo-spice/builds/51509283
(which used Locale-Codes-3.33 on Perl 5.14)

First bad build I found was https://travis-ci.org/duckduckgo/zeroclickinfo-spice/builds/52748091
(which used Locale-Codes-3.34 on Perl 5.14)

@moollaza
Copy link
Member

moollaza commented Mar 3, 2015

LGTM 👍

@pfirsichbluete thanks a lot!

moollaza added a commit that referenced this pull request Mar 3, 2015
@moollaza moollaza merged commit a6d4246 into duckduckgo:master Mar 3, 2015
@pfirsichbluete pfirsichbluete deleted the rainfall-test-fix branch March 3, 2015 20:59
@MrChrisW
Copy link
Collaborator

MrChrisW commented Mar 7, 2015

@moollaza Thanks for the ping on this! Interesting to see an upstream package update break my code 😃

Thanks for the fix @pfirsichbluete

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants